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

Events encoder for BLE SoftDevice. More...

Functions

void ser_conn_ble_event_encoder (void *p_event_data, uint16_t event_size)
 A function for encoding a ble_evt_t. The function passes the serialized byte stream to the transport layer after encoding. More...
 

Detailed Description

Events encoder for BLE SoftDevice.

This file contains declaration of common function used for serializing BLE SoftDevice events.

Function Documentation

void ser_conn_ble_event_encoder ( void *  p_event_data,
uint16_t  event_size 
)

A function for encoding a ble_evt_t. The function passes the serialized byte stream to the transport layer after encoding.

The function is called by the application scheduler to process an event previously pulled from BLE SoftDevice. The function creates a new packet, calls an appropriate event encoder and sends the packet to an Application Chip.

Parameters
[in]p_event_dataPointer to event data of type ble_evt_t.
[in]event_sizeEvent data size.