nRF Connect SDK API 0.1.0
Loading...
Searching...
No Matches
enocean.h File Reference
#include <zephyr/bluetooth/bluetooth.h>

Go to the source code of this file.

Data Structures

struct  bt_enocean_sensor_data
 
struct  bt_enocean_device
 
struct  bt_enocean_callbacks
 

Macros

#define BT_ENOCEAN_SWITCH_OA   BIT(0)
 
#define BT_ENOCEAN_SWITCH_IA   BIT(1)
 
#define BT_ENOCEAN_SWITCH_OB   BIT(2)
 
#define BT_ENOCEAN_SWITCH_IB   BIT(3)
 
#define BT_ENOCEAN_SWITCH_O   BT_ENOCEAN_SWITCH_OB
 
#define BT_ENOCEAN_SWITCH_I   BT_ENOCEAN_SWITCH_IB
 

Typedefs

typedef void(* bt_enocean_foreach_cb_t) (struct bt_enocean_device *dev, void *user_data)
 Visitor callback for bt_enocean_foreach.
 

Enumerations

enum  bt_enocean_button_action { BT_ENOCEAN_BUTTON_RELEASE , BT_ENOCEAN_BUTTON_PRESS }
 

Functions

void bt_enocean_init (const struct bt_enocean_callbacks *cb)
 Initialize the EnOcean subsystem.
 
void bt_enocean_commissioning_enable (void)
 Enable automatic commissioning.
 
void bt_enocean_commissioning_disable (void)
 Disable automatic commissioning.
 
int bt_enocean_commission (const bt_addr_le_t *addr, const uint8_t key[16], uint32_t seq)
 Manually commission an EnOcean device.
 
void bt_enocean_decommission (struct bt_enocean_device *dev)
 Forget an EnOcean device.
 
uint32_t bt_enocean_foreach (bt_enocean_foreach_cb_t cb, void *user_data)
 Call the given callback for each commissioned EnOcean device.