1 #ifndef EVE_BLE_H_INCLUDED 2 #define EVE_BLE_H_INCLUDED 43 #include <sys/event-base.h> 44 #include <lib/assert.h> 45 #include <ble_types.h> 46 #include <ble_advdata.h> 59 #define BLE_DEVICE_MANAGER_FLASH_RESERVED (10 * 0x1000) 62 #define BLE_BOND_DB_SIZE (0x08) 65 #define BLE_NO_BOND (0xFF) 79 extern bool eve_svc_push(uint8_t toc_id);
80 extern bool eve_svc_pull(uint8_t toc_id);
82 extern void eve_dm_sys_event_handler(uint32_t evt);
83 extern void eve_connection_on_ble_evt(
const ble_evt_t *p_ble_evt);
84 extern void eve_svc_on_ble_evt(
const ble_evt_t *p_ble_evt);
85 extern bool eve_disc_on_ble_evt(
const ble_evt_t *p_ble_evt);
127 #define BLE_AUTO_LOCK() SWINT_AUTO_LOCK() 129 #define BLE_PULL(Id) { \ 134 #define BLE_PUSH(Id) { \ 139 #define BLE_SYNC(pt, evt, data) \ 144 if (evt == EVENT_BLE_SYNCED) \ 146 if (evt == EVENT_BLE_INITIALIZED \ 147 || evt == EVENT_BLE_ERROR) \ 148 goto BleReset_Handler; \ 149 process_post(PROCESS_CURRENT(), evt, data); \ 155 EVENT_BLE_SYNCED = EVENT_BASE_BLE_START,
159 CTASSERT(EVENT_BLE__LAST <= EVENT_BASE_BLE_END + 1);
uint8_t BleGetBondId(void)
Header file for BLE subsystem interface.
uint32_t eve_svc_init(const eve_svc_init_t *eve_svc_init)
void BleDeleteAllBonds(void)
Header file for the EVE work scheduling.
void BleDeleteBond(uint8_t BondId)
#define PROCESS_NAME(name)
void BleWaitForFlashOpCompletion(void)
void BleSetOobAuthKey(const ble_advdata_tk_value_t *AuthKey)