nRF51 SDK
|
Encoder for serialized commands from Application Chip. More...
Data Structures | |
struct | cmd_response_t |
Command response type. More... | |
Functions | |
uint32_t | ble_rpc_cmd_encoder_init (void) |
Function for initializing the BLE S110 RPC Command Encoder module. More... | |
uint32_t | ble_rpc_cmd_resp_wait (uint8_t op_code) |
Function for blocking in a loop, using WFE to allow low power mode, while awaiting a response from the connectivity chip. More... | |
void | ble_rpc_cmd_rsp_pkt_received (uint8_t *p_packet, uint16_t packet_length) |
Function for handling the command response packet. More... | |
Encoder for serialized commands from Application Chip.
This file contains the declaration of the functions that encode serialized commands from Application Chip.
uint32_t ble_rpc_cmd_encoder_init | ( | void | ) |
Function for initializing the BLE S110 RPC Command Encoder module.
This function uses the HCI Transport module, HCI Transport and executes hci_transport_tx_done_register and hci_transport_tx_alloc . All errors returned by those functions are passed on by this function.
NRF_SUCCESS | Upon success |
uint32_t ble_rpc_cmd_resp_wait | ( | uint8_t | op_code | ) |
Function for blocking in a loop, using WFE to allow low power mode, while awaiting a response from the connectivity chip.
[in] | op_code | The Operation Code for which a response message is expected. |
void ble_rpc_cmd_rsp_pkt_received | ( | uint8_t * | p_packet, |
uint16_t | packet_length | ||
) |
Function for handling the command response packet.
This function will be called when a command response is received in the transport layer. The response is decoded and returned to the waiting caller.
[in] | p_packet | The packet from the transport layer. |
[in] | packet_length | The length of the packet. |