Helper library API for BLE adapter message handling in BLE Manager.
More...
|
| file | ble_mgr_ad_msg.h |
| | Helper library API for BLE adapter message handling in BLE Manager.
|
| |
Helper library API for BLE adapter message handling in BLE Manager.
◆ ble_ad_msg_wqueue_cb_t
| typedef void(* ble_ad_msg_wqueue_cb_t) (ad_ble_msg_t *ad_msg, void *param) |
◆ ble_ad_msg_alloc()
| void* ble_ad_msg_alloc |
( |
ad_ble_operation_t |
operation, |
|
|
uint16_t |
len |
|
) |
| |
Allocate buffer for a BLE adapter message.
Message will be set with passed operation code.
- Parameters
-
| [in] | operation | BLE adapter operation code |
| [in] | len | message length |
- Returns
- message pointer
◆ ble_ad_msg_send()
| __STATIC_INLINE void ble_ad_msg_send |
( |
void * |
msg | ) |
|
Send BLE adapter message to adapter.
- Parameters
-
◆ ble_ad_msg_waitqueue_match()
Match BLE adapter message against waitqueue
On positive match, this will remove element from waitqueue and fire associated callback.
- Parameters
-
| [in] | ad_msg | BLE adapter message pointer |
- Returns
- true if matches, false otherwise
◆ ble_ad_msg_wqueue_add()
| void ble_ad_msg_wqueue_add |
( |
ad_ble_operation_t |
rsp_op, |
|
|
ad_ble_operation_t |
cmd_op, |
|
|
ble_ad_msg_wqueue_cb_t |
cb, |
|
|
void * |
param |
|
) |
| |
Add callback to waitqueue.
This adds callback for waitqueue associated with specific combination of response's operation code and command's operation code.
- Parameters
-
| [in] | rsp_op | |
| [in] | cmd_op | |
| [in] | cb | |
| [in] | param | |
◆ ble_adapter_cmp_evt_init()
| void ble_adapter_cmp_evt_init |
( |
ad_ble_msg_t * |
ad_msg, |
|
|
void * |
param |
|
) |
| |
Follow-up action on reception of a BLE_ADAPTER_CMP_EVT from the BLE adapter
- Parameters
-
| [in] | ad_msg | BLE adapter message pointer |
| [in] | param | Pointer to passing parameter |