BLE temperature profile using digital DS1820 or analog LM35 sensors
GAP Command Decoder
Decoder for serialized GAP commands from Application Chip. More...
Functions | |
uint32_t | ble_rpc_cmd_gap_decode (uint8_t *p_command, uint8_t op_code, uint32_t command_len) |
Function for processing the encoded GAP command from Application Chip. |
Detailed Description
Decoder for serialized GAP commands from Application Chip.
This file contains the declaration of the function that decodes the serialized GAP commands from Application Chip and calls the appropriate BLE stack API.
Function Documentation
uint32_t ble_rpc_cmd_gap_decode | ( | uint8_t * | p_command, |
uint8_t | op_code, | ||
uint32_t | command_len | ||
) |
Function for processing the encoded GAP command from Application Chip.
This function will decode the encoded command and call the appropriate BLE Stack API. It will then create a Command Response packet with the return value from the stack API encoded in it and will send it to the transport layer for transmission to the application controller chip.
- Parameters:
-
[in] p_command The encoded command. [in] op_code Operation code of the command. [in] command_len Length of the encoded command.
- Return values:
-
NRF_SUCCESS If the decoding of the command was successful, the soft device API was called, and the command response was sent to peer, otherwise an error code. If the transport layer returns an error code while sending the Command Response, the same error code will be returned by this function (see hci_transport_pkt_write for the list of error codes).
Generated on Tue Jul 12 2022 15:07:14 by 1.7.2