nRF51 SDK
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
0x6B - sd_ble_gap_ppcp_get

Function packet format

Frame format encoding of the sd_ble_gap_ppcp_get packet.

Operation Code = 0x6B (107) for sd_ble_gap_ppcp_get, see BLE_GAP_SVCS.

The parameters provided as input to sd_ble_gap_ppcp_get are encoded in the following order:

- 1 byte: Operation Code, Value = 0x6B (107)
- 1 byte: Peripheral Preferred Connection Parameters field present
0x00 Field not present
0x01 Field present


gap_ppcp_get_request.png
Figure 1: Packet format for sd_ble_gap_ppcp_get function.


Response packet format

Frame format encoding of the sd_ble_gap_ppcp_get response packet.

In case of an error, the following data is encoded:

- 1 byte:Operation Code, Value = 0x6B (107)
- 4 byte:nRF Error Code


default_error_response_packet.png
Figure 2: Packet format for sd_ble_gap_ppcp_get error response.

In case of a successful command, i.e. 'nRF Error Code' = NRF_SUCCESS, the following data is encoded:

- 1 byte: Operation Code, Value = 0x6B (107)
- 4 bytes: nRF Error code
- 8 bytes: ble_gap_conn_params_t Connection Params


gap_ppcp_get_response.png
Figure 3: Packet format for sd_ble_gap_ppcp_get response.