BLE temperature profile using digital DS1820 or analog LM35 sensors

Dependencies:   DS1820

Embed: (wiki syntax)

« Back to documentation index

GAP Event Decoder

GAP Event Decoder

Decoder for serialized GAP events from nRF51822. More...

Functions

void ble_rpc_gap_evt_length_decode (uint8_t event_id, uint16_t *p_event_length)
 Function for decoding the length of a BLE GAP event.
void ble_rpc_gap_evt_packet_decode (ble_evt_t *p_ble_evt, uint8_t const *const p_packet)
 Function for decoding a BLE GAP event.

Detailed Description

Decoder for serialized GAP events from nRF51822.

This file contains declarations of functions used for decoding GAP event packets received from the Connectivity Chip.


Function Documentation

void ble_rpc_gap_evt_length_decode ( uint8_t  event_id,
uint16_t *  p_event_length 
)

Function for decoding the length of a BLE GAP event.

Parameters:
[in]event_idEvent Id for the event to length decode.
[out]p_event_lengthThe pointer for storing the decoded event length.
void ble_rpc_gap_evt_packet_decode ( ble_evt_t p_ble_evt,
uint8_t const *const   p_packet 
)

Function for decoding a BLE GAP event.

Parameters:
[out]p_ble_evtThe pointer for storing the decoded event.
[in]p_packetThe pointer to the encoded event.