nRF51 SDK: GATTS Event Decoder

| nRF51 SDK

- Home
- Related Pages
- API Reference
- Data Structures

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

Decoder for serialized GATT Server events from nRF51822. More...

## Functions

void | ble_rpc_gatts_evt_length_decode (uint8_t event_id, uint16_t *p_event_length, uint8_t const *const p_packet)
| Function for decoding the length of a BLE GATTS event. The decoded BLE GATTS event length will be returned in p_event_length. More...
void | ble_rpc_gatts_evt_packet_decode (ble_evt_t *p_ble_evt, uint8_t const *const p_packet)
| Function for decoding a BLE GATTS event. The decoded BLE GATTS event will be returned in the memory pointed to by p_ble_evt. More...

## Detailed Description

Decoder for serialized GATT Server events from nRF51822.

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

## Function Documentation

void ble_rpc_gatts_evt_length_decode | ( | uint8_t | event_id,
|  | uint16_t * | p_event_length,
|  | uint8_t const *const | p_packet
| ) |  |

Function for decoding the length of a BLE GATTS event. The decoded BLE GATTS event length will be returned in p_event_length.

Parameters

  [in] | event_id | Event Id of the event, whose length is to be decoded.
  [out] | p_event_length | The pointer for storing the decoded event length.
  [in] | p_packet | The pointer to the encoded event.

void ble_rpc_gatts_evt_packet_decode | ( | ble_evt_t * | p_ble_evt,
|  | uint8_t const *const | p_packet
| ) |  |

Function for decoding a BLE GATTS event. The decoded BLE GATTS event will be returned in the memory pointed to by p_ble_evt.

Parameters

  [out] | p_ble_evt | The pointer for storing the decoded event.
  [in] | p_packet | The pointer to the encoded event.