nRF51 SDK - S120 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Events handlers in the connectivity chip

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

Macros

#define SER_CONN_SCHED_QUEUE_SIZE   16u
 
#define SER_CONN_SCHED_MAX_EVENT_DATA_SIZE
 

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_evtA 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]eventHAL 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_SUCCESSOperation success.
NRF_ERROR_NULLOperation failure. NULL pointer supplied.
NRF_ERROR_INTERNALOperation failure. Internal error ocurred.