This group includes APIs which are not belong to any task.
Functions | |
at_ble_status_t | at_ble_enable_sleep (bool en_sleep) |
Enable/disable deep sleep. More... | |
at_ble_status_t | at_ble_event_get (at_ble_events_t *event, void *params, uint32_t timeout) |
extracts the next event form the event queue More... | |
at_ble_status_t | at_ble_event_user_defined_post (void *params) |
Posts a user defined custom event into the event queue, allowing the user code to process other events in the same event handling loop. More... | |
at_ble_status_t at_ble_enable_sleep | ( | bool | en_sleep | ) |
Enable/disable deep sleep.
Sleep is enabled by default.
[in] | en_sleep | true to enable deep sleep or false to disable it |
at_ble_status_t at_ble_event_get | ( | at_ble_events_t * | event, |
void * | params, | ||
uint32_t | timeout | ||
) |
extracts the next event form the event queue
[out] | event | The received event |
[out] | params | Received event data |
[in] | timeout | Time in millisecond this function will block waiting of an event (0xFFFFFFFF to block indefinitely) in this case, if the user wishes to unblock the function at_ble_event_user_defined_post can be used |
[out] | event | The received event |
[out] | params | Received event data |
[in] | timeout | Time in millisecond this function will block waiting of an event (0xFFFFFFFF to block indefinitely) in this case, if the user wishes to unblock the function at_ble_event_user_defined_post can be used |
References AT_BLE_CUSTOM_EVENT, AT_BLE_SUCCESS, data, event_get(), handle_ble_event(), event::msg_id, NULL, event::src_id, and status.
at_ble_status_t at_ble_event_user_defined_post | ( | void * | params | ) |
Posts a user defined custom event into the event queue, allowing the user code to process other events in the same event handling loop.
Events will be received with the as AT_BLE_CUSTOM_EVENT
[in] | params | Parameters sent to the custom event |
Events will be received with the as AT_BLE_CUSTOM_EVENT
[in] | params | Parameters sent to the custom event |
References AT_BLE_SUCCESS, and event_post().