Events handlers used to process high level events in the connectivity application.
More...
Events handlers used to process high level events in the connectivity application.
This file contains functions: processing the HAL Transport layer events, processing BLE SoftDevice events, starting processing received packets.
#define SER_CONN_SCHED_MAX_EVENT_DATA_SIZE |
Value:
), \
sizeof(uint32_t))) * \
sizeof(uint32_t))
Maximum size of events data in the application scheduler queue aligned to 32 bits - this is size of the buffer created in the SOFTDEVICE_HANDLER_INIT macro, which stores events pulled from the SoftDevice.
#define SER_CONN_SCHED_QUEUE_SIZE 16u |
Maximum number of events in the application scheduler queue.
void ser_conn_ble_event_handle |
( |
ble_evt_t * |
p_ble_evt | ) |
|
A function for processing BLE SoftDevice events.
BLE events are put into application scheduler queue to be processed at a later time.
- Parameters
-
[in] | p_ble_evt | A pointer to a BLE event. |
A function for processing the HAL Transport layer events.
- Parameters
-
[in] | event | HAL Transport layer event. |
uint32_t ser_conn_rx_process |
( |
void |
| ) |
|
A function to call the function to process a packet when it is fully received.
- Return values
-
NRF_SUCCESS | Operation success. |
NRF_ERROR_NULL | Operation failure. NULL pointer supplied. |
NRF_ERROR_INTERNAL | Operation failure. Internal error ocurred. |