|
SmartSnippets DA1459x SDK
|
Go to the documentation of this file.
41 #ifndef BLE_MGR_GTL_H_
42 #define BLE_MGR_GTL_H_
48 #define TASK_2_CONNIDX(T) (T >> 8)
79 void *
ble_gtl_alloc(uint16_t msg_id, uint16_t dest_id, uint16_t len);
96 uint16_t conn_idx, uint16_t len)
98 return ble_gtl_alloc(msg_id, conn_idx << 8 | (dest_id & 0xFF), len);
void * ble_hci_alloc(uint8_t hci_msg_type, uint16_t len)
Alloc stack API HCI message.
void(* ble_gtl_waitqueue_cb_t)(ble_gtl_msg_t *gtl, void *param)
Waitqueue callback.
Definition: ble_mgr_gtl.h:54
OS_BASE_TYPE ad_ble_command_queue_send(const void *item, OS_TICK_TIME wait_ticks)
Send a message to the BLE adapter command queue.
void * ble_gtl_alloc(uint16_t msg_id, uint16_t dest_id, uint16_t len)
Alloc stack API GTL message.
__STATIC_INLINE void ble_gtl_send(void *msg)
Send stack API GTL message to adapter.
Definition: ble_mgr_gtl.h:107
bool ble_gtl_waitqueue_match(ble_gtl_msg_t *gtl)
void ble_gtl_waitqueue_flush_all(void)
__STATIC_INLINE void * ble_gtl_alloc_with_conn(uint16_t msg_id, uint16_t dest_id, uint16_t conn_idx, uint16_t len)
Alloc stack API GTL message (with connection index)
Definition: ble_mgr_gtl.h:95
bool ble_gtl_handle_event(ble_gtl_msg_t *gtl)
void ble_gtl_waitqueue_add(uint16_t conn_idx, uint16_t msg_id, uint16_t ext_id, ble_gtl_waitqueue_cb_t cb, void *param)
Add callback to waitqueue.
void ble_gtl_waitqueue_flush(uint16_t conn_idx)
Structure for messages with id, type, data.
Definition: msg_queues.h:144