nRF51 SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages

Decoder for serialized events from nRF51822. More...

Functions

uint32_t ble_rpc_event_pkt_received (uint8_t *p_event_packet, uint16_t event_packet_length)
 Function for pushing an encoded packet in the event decoder. More...
 

Detailed Description

Decoder for serialized events from nRF51822.

This file contains the declaration of the function that initializes the event decoder module and processes received events.

Function Documentation

uint32_t ble_rpc_event_pkt_received ( uint8_t *  p_event_packet,
uint16_t  event_packet_length 
)

Function for pushing an encoded packet in the event decoder.

Warning
This function is not reentrant safe and should always be called from the same interrupt context.
Parameters
[in]p_event_packetPointer to the encoded event received.
[in]event_packet_lengthLength of received packet.
Return values
NRF_SUCCESSUpon success.
NRF_ERROR_NO_MEMUpon receive queue full.