nRF51 SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
Commands Encoder

Encoder for serialized commands

The Commands Encoder is providing serialization for the BLE S110 SoftDevice.

The commands encoder serializes the BLE S110 SoftDevice call and pass the serielized command to the transport layer for transmission to the connectivity chip.

When a Command Response is received from the BLE S110 Connectivity chip, it will be received in the transport layer and forwarded to the Command Encoder. The command encoder will then decode the response and pass the BLE S110 SoftDevice Global Error Codes value to the calling application.

Note
The current Command Encoder implementation will block the calling application when a SoftDevice function is executed until the return value from the BLE S110 Connectivity Chip is received and decoded.
encoder_serialization.png
Overview of the relation between Application - SoftDevice API - Command Encoder and Transport Layer

The encoder is capable of serializing SVCALL functions found in the following interfaces:

The format of each supported command can be seen in nrf51_func_format_serialization.

An overview of operation codes for currently supported commands can be seen in rpc_op_codes.