BLE temperature profile using digital DS1820 or analog LM35 sensors
Embed:
(wiki syntax)
Show/hide line numbers
ble_rpc_cmd_decoder_gatts.h
Go to the documentation of this file.
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_cmd_decoder_gatts GATTS Command Decoder 00016 * @{ 00017 * @ingroup ble_sdk_lib_serialization 00018 * 00019 * @brief Decoder for serialized GATTS commands from Application Chip. 00020 * 00021 * @details This file contains the declaration of the function that decodes the serialized GATTS 00022 * commands from Application Chip and calls the appropriate BLE stack API. 00023 */ 00024 00025 #ifndef BLE_RPC_CMD_DECODER_GATTS_H__ 00026 #define BLE_RPC_CMD_DECODER_GATTS_H__ 00027 00028 #include <stdint.h> 00029 00030 /**@brief Function for processing the encoded GATTS command from application chip. 00031 * 00032 * @details This function will decode the encoded command and call the appropriate BLE Stack 00033 * API. It will then create a Command Response packet with the return value from the 00034 * stack API encoded in it and will send it to the transport layer for transmission to 00035 * the application controller chip. 00036 00037 * @param[in] p_command The encoded command. 00038 * @param[in] op_code Operation code of the command. 00039 * @param[in] command_len Length of the encoded command. 00040 * 00041 * @retval NRF_SUCCESS If the decoding of the command was successful, the soft device API 00042 * was called, and the command response was sent to peer, otherwise an 00043 * error code. 00044 * If the transport layer returns an error code while sending 00045 * the Command Response, the same error code will be returned by this 00046 * function (see @ref hci_transport_pkt_write for the list of 00047 * error codes). 00048 */ 00049 uint32_t ble_rpc_cmd_gatts_decode(uint8_t * p_command, uint8_t op_code, uint32_t command_len); 00050 00051 #endif // BLE_RPC_CMD_DECODER_GATTS_H__ 00052 00053 /** @} */
Generated on Tue Jul 12 2022 15:07:12 by 1.7.2