SmartSnippets DA1459x SDK
ble_mgr_helper.h
Go to the documentation of this file.
1 
41 #ifndef BLE_MGR_HELPER_H_
42 #define BLE_MGR_HELPER_H_
43 
44 #include <stdbool.h>
45 #include "osal.h"
46 #include "ble_mgr_cmd.h"
47 
57 void *alloc_ble_msg(uint16_t op_code, uint16_t size);
58 
71 void *ble_msg_init(uint16_t op_code, uint16_t size);
72 
84 void *ble_evt_init(uint16_t evt_code, uint16_t size);
85 
92 void ble_msg_free(void *msg);
93 
110 bool ble_cmd_execute(void *cmd, void **rsp, ble_mgr_cmd_handler_t handler);
111 
112 #endif /* BLE_MGR_HELPER_H_ */
113 
ble_evt_init
void * ble_evt_init(uint16_t evt_code, uint16_t size)
Initialize BLE event.
ble_mgr_cmd.h
BLE manager command definitions.
ble_msg_free
void ble_msg_free(void *msg)
Free BLE message buffer.
ble_msg_init
void * ble_msg_init(uint16_t op_code, uint16_t size)
Initialize BLE message.
alloc_ble_msg
void * alloc_ble_msg(uint16_t op_code, uint16_t size)
Allocates new BLE message.
osal.h
OS abstraction layer API.
ble_cmd_execute
bool ble_cmd_execute(void *cmd, void **rsp, ble_mgr_cmd_handler_t handler)
Execute BLE command.
msg
Structure for messages with id, type, data.
Definition: msg_queues.h:144