nRF51 SDK - S120 SoftDevice
|
Frame format encoding of the sd_ble_gattc_primary_services_discover packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x90, see BLE_GATTC_SVCS |
2 bytes | Connection Handle | see sd_ble_gattc_primary_services_discover |
2 bytes | Start Handle | see sd_ble_gattc_primary_services_discover |
1 byte | Service UUID Information Present | 0x00 Field not present, 0x01 Field present |
3 bytes | Conditional: UUID | see ble_uuid_t |
As can also be seen inside Figure 1 the 3 bytes inside ble_uuid_t are encoded as:
Length | Parameter | Value |
---|---|---|
2 bytes | UUID Value | see ble_uuid_t::uuid |
1 byte | UUID Type | see ble_uuid_t::type |
Frame format encoding of the sd_ble_gattc_primary_services_discover response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x90, see BLE_GATTC_SVCS |
4 bytes | nRF Error Code | see sd_ble_gattc_primary_services_discover |
Frame format encoding of the sd_ble_gattc_relationships_discover packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x91, see BLE_GATTC_SVCS |
2 bytes | Connection Handle | see sd_ble_gattc_primary_services_discover |
1 byte | Handle Range Present | 0x00 Field not present, 0x01 Field present |
4 bytes | Conditional: Handle Range | see ble_gattc_handle_range_t |
As can also be seen inside Figure 1 the 4 bytes inside ble_gattc_handle_range_t are encoded as:
Length | Parameter | Value |
---|---|---|
2 bytes | Start handle | see ble_gattc_handle_range_t::start_handle |
2 bytes | End handle | see ble_gattc_handle_range_t::end_handle |
Frame format encoding of the sd_ble_gattc_relationships_discover response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x91, see BLE_GATTC_SVCS |
4 bytes | nRF Error Code | see sd_ble_gattc_relationships_discover |
Frame format encoding of the sd_ble_gattc_characteristics_discover packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x92, see BLE_GATTC_SVCS |
2 bytes | Connection Handle | see sd_ble_gattc_characteristics_discover |
1 byte | Handle Range Present | 0x00 Field not present, 0x01 Field present |
4 bytes | Conditional: Handle Range | see ble_gattc_handle_range_t |
As can also be seen inside Figure 1 the 4 bytes inside ble_gattc_handle_range_t are encoded as:
Length | Parameter | Value |
---|---|---|
2 bytes | Start handle | see ble_gattc_handle_range_t::start_handle |
2 bytes | End handle | see ble_gattc_handle_range_t::end_handle |
Frame format encoding of the sd_ble_gattc_characteristics_discover response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x92, see BLE_GATTC_SVCS |
4 bytes | nRF Error Code | see sd_ble_gattc_characteristics_discover |
Frame format encoding of the sd_ble_gattc_descriptors_discover packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x93, see BLE_GATTC_SVCS |
2 bytes | Connection Handle | see sd_ble_gattc_descriptors_discover |
1 byte | Handle range Present | 0x00 - Not Present, 0x01 - Present |
4 bytes | Conditional: Handle range | see sd_ble_gattc_descriptors_discover |
As can also be seen inside Figure 1 ble_gattc_handle_range_t is encoded as:
Length | Parameter | Value |
---|---|---|
2 bytes | Start handle | see ble_gattc_handle_range_t::start_handle |
2 bytes | End handle | see ble_gattc_handle_range_t::end_handle |
Frame format encoding of the sd_ble_gattc_descriptors_discover response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x93, see BLE_GATTC_SVCS |
4 bytes | nRF Error Code | see sd_ble_gattc_descriptors_discover |
Frame format encoding of the sd_ble_gattc_char_value_by_uuid_read packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x94 |
2 bytes | Connection Handle | see sd_ble_gattc_char_value_by_uuid_read |
1 byte | UUID Present | 0x00 - Not Present, 0x01 - Present |
3 bytes | Conditional: UUID | see sd_ble_gattc_char_value_by_uuid_read |
1 byte | Handle range Present | 0x00 - Not Present, 0x01 - Present |
4 bytes | Conditional: Handle range | see sd_ble_gattc_char_value_by_uuid_read |
ble_uuid_t is encoded in the following order:
Length | Parameter | Value |
---|---|---|
2 bytes | UUID | see ble_uuid_t::uuid |
1 byte | Type | see ble_uuid_t::type |
ble_gattc_handle_range_t is encoded in the following order:
Length | Parameter | Value |
---|---|---|
2 bytes | Start handle | see ble_gattc_handle_range_t::start_handle |
2 bytes | End handle | see ble_gattc_handle_range_t::end_handle |
Frame format encoding of the sd_ble_gattc_char_value_by_uuid_read response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x94 |
4 bytes | nRF Error Code | see sd_ble_gattc_char_value_by_uuid_read |
Frame format encoding of the sd_ble_gattc_read packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x95, see BLE_GATTC_SVCS |
2 bytes | Connection Handle | see sd_ble_gattc_read |
2 bytes | Handle | see sd_ble_gattc_read |
2 bytes | Offset | see sd_ble_gattc_read |
Frame format encoding of the sd_ble_gattc_read response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x95, see BLE_GATTC_SVCS |
4 bytes | nRF Error Code | see sd_ble_gattc_read |
Frame format encoding of the sd_ble_gattc_char_values_read packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x96, see BLE_GATTC_SVCS |
2 bytes | Connection Handle | see sd_ble_gattc_char_values_read |
2 bytes | Handle Count | see sd_ble_gattc_char_values_read |
1 byte | Handles Present | 0x00 Field not present, 0x01 Field present |
2 bytes x Handle Count | Conditional:Handles | Handles values |
Frame format encoding of the sd_ble_gattc_char_values_read response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x96, see BLE_GATTC_SVCS |
4 bytes | nRF Error Code | see sd_ble_gattc_char_values_read |
Frame format encoding of the sd_ble_gattc_write packet.
The parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x97, see BLE_GATTC_SVCS |
2 bytes | Connection Handle | see sd_ble_gattc_write |
1 byte | Write Parameters Present | 0x00 Field not present, 0x01 Field present |
9..n bytes | Conditional: GATTC Write Parameters | see sd_ble_gattc_write |
GATTC Write parameters are encoded in the following order:
Length | Parameter | Value |
---|---|---|
1 byte | Write operation | see ble_gattc_write_params_t::write_op |
1 bytes | Write flags | see ble_gattc_write_params_t::flags |
2 bytes | Handle | see ble_gattc_write_params_t::handle |
2 bytes | Offset | see ble_gattc_write_params_t::offset |
2 bytes | Value length | see ble_gattc_write_params_t::len |
1 byte | Value present | 0x00 Field not present, 0x01 Field present |
n bytes | Conditional: Value | see ble_gattc_write_params_t::p_value |
Frame format encoding of the sd_ble_gattc_write response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x97, see BLE_GATTC_SVCS |
4 bytes | nRF Error Code | see sd_ble_gattc_write |
Frame format encoding of the sd_ble_gattc_hv_confirm packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x98, see BLE_GATTC_SVCS |
2 bytes | Connection Handle | see sd_ble_gattc_hv_confirm |
2 bytes | Handle | see sd_ble_gattc_hv_confirm |
Frame format encoding of the sd_ble_gattc_hv_confirm response packet:
Length | Parameter | Value |
---|---|---|
1 byte | Operation Code | 0x98, see BLE_GATTC_SVCS |
4 bytes | nRF Error Code | see sd_ble_gattc_hv_confirm |