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_gap.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_gap GAP Event Decoder 00016 * @{ 00017 * @ingroup ble_sdk_lib_serialization 00018 * 00019 * @brief Decoder for serialized GAP events from nRF51822. 00020 * 00021 * @details This file contains declarations of functions used for decoding GAP event packets 00022 * received from the Connectivity Chip. 00023 * 00024 */ 00025 00026 #ifndef BLE_RPC_EVENT_DECODER_GAP_H__ 00027 #define BLE_RPC_EVENT_DECODER_GAP_H__ 00028 00029 #include <stdint.h> 00030 #include "ble.h" 00031 00032 /** @brief Function for decoding the length of a BLE GAP event. 00033 * 00034 * @param[in] event_id Event Id for the event to length decode. 00035 * @param[out] p_event_length The pointer for storing the decoded event length. 00036 */ 00037 void ble_rpc_gap_evt_length_decode(uint8_t event_id, uint16_t * p_event_length); 00038 00039 /** @brief Function for decoding a BLE GAP event. 00040 * 00041 * @param[out] p_ble_evt The pointer for storing the decoded event. 00042 * @param[in] p_packet The pointer to the encoded event. 00043 */ 00044 void ble_rpc_gap_evt_packet_decode(ble_evt_t * p_ble_evt, 00045 uint8_t const * const p_packet); 00046 00047 #endif // BLE_RPC_EVENT_DECODER_GAP_H__ 00048 00049 /** @} **/
Generated on Tue Jul 12 2022 18:44:25 by
1.7.2
