Events handlers in the Connectivity Chip

nRF5 SDK v12.2.0

Events handlers used to process high level events in the connectivity application. More...

Functions

void ser_conn_hal_transport_event_handle ( ser_hal_transport_evt_t event)
A function for processing the HAL Transport layer events. More...
uint32_t ser_conn_rx_process (void)
A function to call the function to process a packet when it is fully received. More...
void ser_conn_ble_event_handle ( ble_evt_t *p_ble_evt)
A function for processing BLE SoftDevice events. More...

Detailed Description

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.

Macro Definition Documentation

#define SER_CONN_SCHED_MAX_EVENT_DATA_SIZE
Value:
(( CEIL_DIV (MAX( \
), \
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.

Function Documentation

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.
void ser_conn_hal_transport_event_handle ( ser_hal_transport_evt_t 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.