Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of nRF51822 by
nordic/nrf-sdk/ble/rpc/ble_rpc_event_decoder_gatts.h@0:eff01767de02, 2014-03-26 (annotated)
- Committer:
- bogdanm
- Date:
- Wed Mar 26 14:38:17 2014 +0000
- Revision:
- 0:eff01767de02
Initial import of the nRF51822 code
Who changed what in which revision?
| User | Revision | Line number | New contents of line |
|---|---|---|---|
| bogdanm | 0:eff01767de02 | 1 | /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved. |
| bogdanm | 0:eff01767de02 | 2 | * |
| bogdanm | 0:eff01767de02 | 3 | * The information contained herein is property of Nordic Semiconductor ASA. |
| bogdanm | 0:eff01767de02 | 4 | * Terms and conditions of usage are described in detail in NORDIC |
| bogdanm | 0:eff01767de02 | 5 | * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. |
| bogdanm | 0:eff01767de02 | 6 | * |
| bogdanm | 0:eff01767de02 | 7 | * Licensees are granted free, non-transferable use of the information. NO |
| bogdanm | 0:eff01767de02 | 8 | * WARRANTY of ANY KIND is provided. This heading must NOT be removed from |
| bogdanm | 0:eff01767de02 | 9 | * the file. |
| bogdanm | 0:eff01767de02 | 10 | * |
| bogdanm | 0:eff01767de02 | 11 | */ |
| bogdanm | 0:eff01767de02 | 12 | |
| bogdanm | 0:eff01767de02 | 13 | /** @file |
| bogdanm | 0:eff01767de02 | 14 | * |
| bogdanm | 0:eff01767de02 | 15 | * @defgroup ble_rpc_evt_decoder_gatts GATTS Event Decoder |
| bogdanm | 0:eff01767de02 | 16 | * @{ |
| bogdanm | 0:eff01767de02 | 17 | * @ingroup ble_sdk_lib_serialization |
| bogdanm | 0:eff01767de02 | 18 | * |
| bogdanm | 0:eff01767de02 | 19 | * @brief Decoder for serialized GATT Server events from nRF51822. |
| bogdanm | 0:eff01767de02 | 20 | * |
| bogdanm | 0:eff01767de02 | 21 | * @details This file contains declarations of functions used for decoding GATTS event packets |
| bogdanm | 0:eff01767de02 | 22 | * received from the Connectivity Chip. |
| bogdanm | 0:eff01767de02 | 23 | * |
| bogdanm | 0:eff01767de02 | 24 | */ |
| bogdanm | 0:eff01767de02 | 25 | |
| bogdanm | 0:eff01767de02 | 26 | #ifndef BLE_RPC_EVENT_DECODER_GATTS_H__ |
| bogdanm | 0:eff01767de02 | 27 | #define BLE_RPC_EVENT_DECODER_GATTS_H__ |
| bogdanm | 0:eff01767de02 | 28 | |
| bogdanm | 0:eff01767de02 | 29 | #include <stdint.h> |
| bogdanm | 0:eff01767de02 | 30 | #include "ble.h" |
| bogdanm | 0:eff01767de02 | 31 | #include "ble_gatts.h" |
| bogdanm | 0:eff01767de02 | 32 | |
| bogdanm | 0:eff01767de02 | 33 | /** @brief Function for decoding the length of a BLE GATTS event. The decoded BLE GATTS event |
| bogdanm | 0:eff01767de02 | 34 | * length will be returned in p_event_length. |
| bogdanm | 0:eff01767de02 | 35 | * |
| bogdanm | 0:eff01767de02 | 36 | * @param[in] event_id Event Id of the event, whose length is to be decoded. |
| bogdanm | 0:eff01767de02 | 37 | * @param[out] p_event_length The pointer for storing the decoded event length. |
| bogdanm | 0:eff01767de02 | 38 | * @param[in] p_packet The pointer to the encoded event. |
| bogdanm | 0:eff01767de02 | 39 | */ |
| bogdanm | 0:eff01767de02 | 40 | void ble_rpc_gatts_evt_length_decode(uint8_t event_id, |
| bogdanm | 0:eff01767de02 | 41 | uint16_t * p_event_length, |
| bogdanm | 0:eff01767de02 | 42 | uint8_t const * const p_packet); |
| bogdanm | 0:eff01767de02 | 43 | |
| bogdanm | 0:eff01767de02 | 44 | /** @brief Function for decoding a BLE GATTS event. The decoded BLE GATTS event will be returned in |
| bogdanm | 0:eff01767de02 | 45 | * the memory pointed to by p_ble_evt. |
| bogdanm | 0:eff01767de02 | 46 | * |
| bogdanm | 0:eff01767de02 | 47 | * @param[out] p_ble_evt The pointer for storing the decoded event. |
| bogdanm | 0:eff01767de02 | 48 | * @param[in] p_packet The pointer to the encoded event. |
| bogdanm | 0:eff01767de02 | 49 | */ |
| bogdanm | 0:eff01767de02 | 50 | void ble_rpc_gatts_evt_packet_decode(ble_evt_t * p_ble_evt, |
| bogdanm | 0:eff01767de02 | 51 | uint8_t const * const p_packet); |
| bogdanm | 0:eff01767de02 | 52 | |
| bogdanm | 0:eff01767de02 | 53 | #endif // BLE_RPC_EVENT_DECODER_GATTS_H__ |
| bogdanm | 0:eff01767de02 | 54 | |
| bogdanm | 0:eff01767de02 | 55 | /** @} **/ |
