nRF51 SDK: Event Decoder

| nRF51 SDK

- Home
- Related Pages
- API Reference
- Data Structures

All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Functions
Event Decoder
BLE Serialization Libraries

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_packet | Pointer to the encoded event received.
  [in] | event_packet_length | Length of received packet.

Return values

  NRF_SUCCESS | Upon success.
  NRF_ERROR_NO_MEM | Upon receive queue full.