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
ble_rpc_event_decoder_gatts.h
00001 /* Copyright (c) 2013 Nordic Semiconductor. All Rights Reserved. 00002 * 00003 * The information contained herein is property of Nordic Semiconductor ASA. 00004 * Terms and conditions of usage are described in detail in NORDIC 00005 * SEMICONDUCTOR STANDARD SOFTWARE LICENSE AGREEMENT. 00006 * 00007 * Licensees are granted free, non-transferable use of the information. NO 00008 * WARRANTY of ANY KIND is provided. This heading must NOT be removed from 00009 * the file. 00010 * 00011 */ 00012 00013 /** @file 00014 * 00015 * @defgroup ble_rpc_evt_decoder_gatts GATTS Event Decoder 00016 * @{ 00017 * @ingroup ble_sdk_lib_serialization 00018 * 00019 * @brief Decoder for serialized GATT Server events from nRF51822. 00020 * 00021 * @details This file contains declarations of functions used for decoding GATTS event packets 00022 * received from the Connectivity Chip. 00023 * 00024 */ 00025 00026 #ifndef BLE_RPC_EVENT_DECODER_GATTS_H__ 00027 #define BLE_RPC_EVENT_DECODER_GATTS_H__ 00028 00029 #include <stdint.h> 00030 #include "ble.h" 00031 #include "ble_gatts.h" 00032 00033 /** @brief Function for decoding the length of a BLE GATTS event. The decoded BLE GATTS event 00034 * length will be returned in p_event_length. 00035 * 00036 * @param[in] event_id Event Id of the event, whose length is to be decoded. 00037 * @param[out] p_event_length The pointer for storing the decoded event length. 00038 * @param[in] p_packet The pointer to the encoded event. 00039 */ 00040 void ble_rpc_gatts_evt_length_decode(uint8_t event_id, 00041 uint16_t * p_event_length, 00042 uint8_t const * const p_packet); 00043 00044 /** @brief Function for decoding a BLE GATTS event. The decoded BLE GATTS event will be returned in 00045 * the memory pointed to by p_ble_evt. 00046 * 00047 * @param[out] p_ble_evt The pointer for storing the decoded event. 00048 * @param[in] p_packet The pointer to the encoded event. 00049 */ 00050 void ble_rpc_gatts_evt_packet_decode(ble_evt_t * p_ble_evt, 00051 uint8_t const * const p_packet); 00052 00053 #endif // BLE_RPC_EVENT_DECODER_GATTS_H__ 00054 00055 /** @} **/
Generated on Tue Jul 12 2022 18:44:25 by
1.7.2
