nRF51 SDK - S110 SoftDevice
|
Frame format encoding of the sd_power_system_off packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x31 |
There is no response for this command.
Frame format encoding of the sd_temp_get packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x4F |
1 byte | Temperature Present | 0x00 Field not present, 0x01 Field present |
Frame format encoding of the sd_temp_get response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x4F |
4 bytes | nRF Error Code | see sd_temp_get |
4 bytes | Measured Temperature Value | see sd_temp_get |
Frame format encoding of the sd_ble_tx_buffer_count_get packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x61, see BLE_COMMON_SVCS |
1 byte | Tx Buffer Count Present | 0x00 Field not present, 0x01 Field present |
In case of a successful command, i.e. 'nRF Error Code' = NRF_SUCCESS
nRF Error Code is followed by conditional data.
Frame format encoding of the sd_ble_tx_buffer_count_get response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x61, see BLE_COMMON_SVCS |
4 bytes | nRF Error Code | see sd_ble_tx_buffer_count_get |
1 byte | Conditional: Tx Buffer Count Present | 0x00 Field not present, 0x01 Field present |
1 byte | Conditional: Tx Buffer Count | see sd_ble_tx_buffer_count_get |
Frame format encoding of the sd_ble_uuid_vs_add packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x62, see BLE_COMMON_SVCS |
1 byte | UUID Present | 0x00 Field not present, 0x01 Field present |
16 bytes | Conditional: Vendor Specific UUID | see ble_uuid128_t |
1 byte | UUID type Present | 0x00 Field not present, 0x01 Field present |
In case of a successful command, i.e. 'nRF Error Code' = NRF_SUCCESS
nRF Error Code is followed by conditional data.
Frame format encoding of the sd_ble_uuid_vs_add response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x62, see BLE_COMMON_SVCS |
4 bytes | nRF Error Code | see sd_ble_uuid_vs_add |
1 byte | UUID Type Present | 0x00 Field not present, 0x01 Field present |
1 byte | Conditional: UUID Type | index to Vendor Specific UUID |
Frame format encoding of the sd_ble_uuid_decode packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x63, see BLE_COMMON_SVCS |
1 byte | Length of Raw UUID | Shall be 2 or 16 bytes |
1 byte | Raw UUID Present | 0x00 Field not present, 0x01 Field present |
2 or 16 bytes | Raw UUID | Raw UUID to be decoded |
1 byte | UUID Result Struct Present | 0x00 Field not present, 0x01 Field present |
In case of a successful command, i.e. 'nRF Error Code' = NRF_SUCCESS
nRF Error Code is followed by conditional data.
Frame format encoding of the sd_ble_uuid_decode response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x63, see BLE_COMMON_SVCS |
4 bytes | nRF Error Code | see sd_ble_uuid_decode |
1 byte | Conditional: ble_uuid_t Present | 0x00 Field not present, 0x01 Field present |
3 bytes | Conditional: Encoded UUID | Raw UUID decoded to ble_uuid_t |
ble_uuid_t is encoded in the following order:
Length | Parameter | Value |
---|---|---|
2 bytes | UUID | UUID Value |
1 byte | Type | UUID Type |
Frame format encoding of the sd_ble_uuid_encode packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x64, see BLE_COMMON_SVCS |
1 byte | UUID Present | 0x00 Field not present, 0x01 Field present |
3 bytes | Conditional: UUID | see ble_uuid_t |
1 byte | Length Present | 0x00 Field not present, 0x01 Field present |
1 byte | UUID Result Buffer Present | 0x00 Field not present, 0x01 Field present |
As can also be seen inside Figure 1 the 3 bytes inside ble_uuid_t are encoded as:
Length | Parameter | Value |
---|---|---|
2 bytes | UUID | UUID Value |
1 byte | Type | UUID Type |
In case of a successful command, i.e. 'nRF Error Code' = NRF_SUCCESS
nRF Error Code is followed by conditional data.
Frame format encoding of the sd_ble_uuid_encode response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x64, see BLE_COMMON_SVCS |
4 bytes | nRF Error Code | see sd_ble_uuid_encode |
1 byte | Conditional: Length of encoded UUID | 2 or 16 |
2 or 16 bytes | Conditional: Encoded UUID | UUID Value |
Frame format encoding of the sd_ble_version_get packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x65, see BLE_COMMON_SVCS |
1 byte | Version Present | 0x00 Field not present, 0x01 Field present |
In case of a successful command, i.e. 'nRF Error Code' = NRF_SUCCESS
nRF Error Code is followed by conditional data.
Frame format encoding of the sd_ble_version_get response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x65, see BLE_COMMON_SVCS |
4 bytes | nRF Error Code | see sd_ble_version_get |
1 byte | Conditional: Version Number | see ble_version_t::version_number |
2 bytes | Conditional: Company ID | see ble_version_t::company_id |
2 bytes | Conditional: Subversion Number | see ble_version_t::subversion_number |
Frame format encoding of the sd_ble_enable packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x60, see BLE_COMMON_SVCS |
1 byte | Enable Params Present | 0x00 Field not present, 0x01 Field present |
1 byte | Enable Params | see ble_enable_params_t |
Frame format encoding of the sd_ble_enable response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x60, see BLE_COMMON_SVCS |
4 bytes | nRF Error Code | see sd_ble_enable |