nRF51 SDK - S110 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
GAP Connectivity command request decoders and command response encoders

GAP Connectivity command request decoders and command response encoders. More...

Functions

uint32_t ble_gap_address_get_req_dec (uint8_t const *const p_buf, uint16_t packet_len, ble_gap_addr_t **const pp_address)
 Decodes sd_ble_gap_address_get command request. More...
 
uint32_t ble_gap_address_get_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len, ble_gap_addr_t const *const p_address)
 Encodes sd_ble_gap_address_get command response. More...
 
uint32_t ble_gap_authenticate_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint16_t *const p_conn_handle, ble_gap_sec_params_t **const pp_sec_params)
 Decodes sd_ble_gap_authenticate command request. More...
 
uint32_t ble_gap_authenticate_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_authenticate command response. More...
 
uint32_t ble_gap_address_set_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint8_t *const p_addr_cycle_mode, ble_gap_addr_t **const pp_addr)
 Decodes sd_ble_gap_address_set command request. More...
 
uint32_t ble_gap_address_set_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_address_set command response. More...
 
uint32_t ble_gap_adv_data_set_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint8_t **const pp_data, uint8_t *p_dlen, uint8_t **const pp_sr_data, uint8_t *p_srdlen)
 Decodes sd_ble_gap_adv_data_set command request. More...
 
uint32_t ble_gap_adv_data_set_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_adv_data_set command response. More...
 
uint32_t ble_gap_adv_start_req_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_gap_adv_params_t **const pp_adv_params)
 Decodes sd_ble_gap_adv_start command request. More...
 
uint32_t ble_gap_adv_start_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_adv_start command response. More...
 
uint32_t ble_gap_device_name_get_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint8_t **pp_dev_name, uint16_t **pp_dev_name_len)
 Decodes sd_ble_gap_device_name_get command request. More...
 
uint32_t ble_gap_device_name_get_rsp_enc (uint32_t return_code, uint8_t const *const p_dev_name, uint16_t dev_name_len, uint8_t *const p_buf, uint32_t *const p_buflen)
 Encodes sd_ble_gap_device_name_get command response. More...
 
uint32_t ble_gap_conn_param_update_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint16_t *p_conn_handle, ble_gap_conn_params_t **const pp_conn_params)
 Decodes sd_ble_gap_conn_param_update command request. More...
 
uint32_t ble_gap_conn_param_update_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_conn_param_update command response. More...
 
uint32_t ble_gap_disconnect_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint16_t *const p_conn_handle, uint8_t *const p_hci_status)
 Decodes sd_ble_gap_disconnect command request. More...
 
uint32_t ble_gap_disconnect_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_disconnect command response. More...
 
uint32_t ble_gap_tx_power_set_req_dec (uint8_t const *const p_buf, uint32_t packet_len, int8_t *tx_power)
 Decodes sd_ble_gap_tx_power_set command request. More...
 
uint32_t ble_gap_tx_power_set_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_tx_power_set command response. More...
 
uint32_t ble_gap_ppcp_set_req_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_gap_conn_params_t **const pp_conn_params)
 Decodes sd_ble_gap_ppcp_set command request. More...
 
uint32_t ble_gap_ppcp_set_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_ppcp_set command response. More...
 
uint32_t ble_gap_ppcp_get_req_dec (uint8_t const *const p_buf, uint16_t packet_len, ble_gap_conn_params_t **const pp_conn_params)
 Decodes sd_ble_gap_ppcp_get command request. More...
 
uint32_t ble_gap_ppcp_get_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len, ble_gap_conn_params_t const *const p_conn_params)
 Encodes sd_ble_gap_ppcp_get command response. More...
 
uint32_t ble_gap_adv_stop_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_adv_stop command response. More...
 
uint32_t ble_gap_auth_key_reply_req_dec (uint8_t const *const p_buf, uint16_t packet_len, uint16_t *p_conn_handle, uint8_t *p_key_type, uint8_t **const pp_key)
 Decodes sd_ble_gap_auth_key_reply command request. More...
 
uint32_t ble_gap_auth_key_reply_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_auth_key_reply command response. More...
 
uint32_t ble_gap_sec_params_reply_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint16_t *p_conn_handle, uint8_t *p_sec_status, ble_gap_sec_params_t **const pp_sec_params, ble_gap_sec_keyset_t **const pp_sec_keyset)
 Decodes sd_ble_gap_sec_params_reply command request. More...
 
uint32_t ble_gap_sec_params_reply_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len, ble_gap_sec_keyset_t *const p_sec_keyset)
 Encodes sd_ble_gap_sec_params_reply command response. More...
 
uint32_t ble_gap_rssi_start_req_dec (uint8_t const *const p_buf, uint32_t buf_len, uint16_t *p_conn_handle, uint8_t *p_threshold_dbm, uint8_t *p_skip_count)
 Decodes sd_ble_gap_rssi_start command request. More...
 
uint32_t ble_gap_rssi_start_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_rssi_start command response. More...
 
uint32_t ble_gap_rssi_stop_req_dec (uint8_t const *const p_buf, uint32_t buf_len, uint16_t *conn_handle)
 Decodes sd_ble_gap_rssi_stop command request. More...
 
uint32_t ble_gap_rssi_stop_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_rssi_stop command response. More...
 
uint32_t ble_gap_appearance_get_req_dec (uint8_t const *const p_buf, uint16_t packet_len, uint16_t **const pp_appearance)
 Decodes sd_ble_gap_appearance_get command request. More...
 
uint32_t ble_gap_appearance_get_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len, uint16_t const *const p_appearance)
 Encodes sd_ble_gap_appearance_get command response. More...
 
uint32_t ble_gap_appearance_set_req_dec (uint8_t const *const p_buf, uint32_t buf_len, uint16_t *const p_appearance)
 Decodes sd_ble_gap_appearance_set command request. More...
 
uint32_t ble_gap_appearance_set_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_appearance_set command response. More...
 
uint32_t ble_gap_sec_info_reply_req_dec (uint8_t const *const p_buf, uint16_t packet_len, uint16_t *p_conn_handle, ble_gap_enc_info_t **const pp_enc_info, ble_gap_irk_t **const pp_id_info, ble_gap_sign_info_t **const pp_sign_info)
 Decodes sd_ble_gap_sec_info_reply command request. More...
 
uint32_t ble_gap_sec_info_reply_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_sec_info_reply command response. More...
 
uint32_t ble_gap_device_name_set_req_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_gap_conn_sec_mode_t **const pp_write_perm, uint8_t **const pp_dev_name, uint16_t *const p_dev_name_len)
 Decodes sd_ble_gap_device_name_set command request. More...
 
uint32_t ble_gap_device_name_set_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_device_name_set command response. More...
 
uint32_t ble_gap_conn_sec_get_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint16_t *p_conn_handle, ble_gap_conn_sec_t **const pp_conn_sec)
 Decodes sd_ble_gap_conn_sec_get command request. More...
 
uint32_t ble_gap_conn_sec_get_rsp_enc (uint32_t return_code, ble_gap_conn_sec_t *const p_conn_sec, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_conn_sec_get command response. More...
 
uint32_t ble_gap_encrypt_req_dec (uint8_t const *const p_buf, uint16_t packet_len, uint16_t *const p_conn_handle, ble_gap_master_id_t **const pp_master_id, ble_gap_enc_info_t **const pp_enc_info)
 Decodes sd_ble_gap_encrypt command request. More...
 
uint32_t ble_gap_encrypt_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_encrypt command response. More...
 
uint32_t ble_gap_rssi_get_req_dec (uint8_t const *const p_buf, uint16_t packet_len, uint16_t *p_conn_handle, int8_t **const pp_rssi)
 Decodes sd_ble_gap_rssi_get command request. More...
 
uint32_t ble_gap_rssi_get_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len, int8_t rssi)
 Encodes sd_ble_gap_rssi_get command response. More...
 
uint32_t ble_gap_connect_req_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_gap_addr_t **const pp_addr, ble_gap_scan_params_t **const pp_scan_params, ble_gap_conn_params_t **const pp_conn_params)
 Decodes sd_ble_gap_connect command request. More...
 
uint32_t ble_gap_connect_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_connect command response. More...
 
uint32_t ble_gap_connect_cancel_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_connect_cancel command response. More...
 
uint32_t ble_gap_scan_start_req_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_gap_scan_params_t **const pp_scan_params)
 Decodes sd_ble_gap_scan_start command request. More...
 
uint32_t ble_gap_scan_start_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_scan_start command response. More...
 
uint32_t ble_gap_scan_stop_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_scan_stop command response. More...
 

Detailed Description

GAP Connectivity command request decoders and command response encoders.

Function Documentation

uint32_t ble_gap_address_get_req_dec ( uint8_t const *const  p_buf,
uint16_t  packet_len,
ble_gap_addr_t **const  pp_address 
)

Decodes sd_ble_gap_address_get command request.

See Also
0x71 - sd_ble_gap_address_get for packet format, ble_gap_address_get_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[out]pp_addressPointer to pointer to address.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
uint32_t ble_gap_address_get_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len,
ble_gap_addr_t const *const  p_address 
)

Encodes sd_ble_gap_address_get command response.

See Also
0x71 - sd_ble_gap_address_get for packet format. ble_gap_address_get_req_dec for request decoding.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[out]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
[in]p_addressPointer to ble_gap_addr_t address
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_address_set_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
uint8_t *const  p_addr_cycle_mode,
ble_gap_addr_t **const  pp_addr 
)

Decodes sd_ble_gap_address_set command request.

See Also
0x70 - sd_ble_gap_address_set for packet format, ble_gap_address_set_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[out]p_addr_cycle_modePointer to address cycle mode
[out]pp_addrPointer to pointer to address structure.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
uint32_t ble_gap_address_set_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_address_set command response.

See Also
0x70 - sd_ble_gap_address_set for packet format. ble_gap_address_set_req_dec for request decoding.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[out]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_adv_data_set_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
uint8_t **const  pp_data,
uint8_t *  p_dlen,
uint8_t **const  pp_sr_data,
uint8_t *  p_srdlen 
)

Decodes sd_ble_gap_adv_data_set command request.

See Also
0x72 - sd_ble_gap_adv_data_set for packet format, ble_gap_adv_data_set_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of request packet.
[out]pp_dataPointer to the buffer raw data to be placed in advertisement packet.
[out]p_dlenPointer to data length for p_data.
[out]pp_sr_dataPointer to the buffer raw data to be placed in scan response packet.
[out]p_srdlenPointer to data length for p_sr_data.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
uint32_t ble_gap_adv_data_set_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_adv_data_set command response.

See Also
0x72 - sd_ble_gap_adv_data_set for packet format. ble_gap_adv_data_set_req_dec for request decoding.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[out]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_adv_start_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_gap_adv_params_t **const  pp_adv_params 
)

Decodes sd_ble_gap_adv_start command request.

See Also
0x73 - sd_ble_gap_adv_start for packet format, ble_gap_adv_start_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[out]pp_adv_paramsPointer to pointer to advertising parameters.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
uint32_t ble_gap_adv_start_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_adv_start command response.

See Also
0x73 - sd_ble_gap_adv_start for packet format. ble_gap_adv_start_req_dec for request decoding.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[out]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_adv_stop_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_adv_stop command response.

See Also
0x74 - sd_ble_gap_adv_stop for packet format.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[in]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_appearance_get_req_dec ( uint8_t const *const  p_buf,
uint16_t  packet_len,
uint16_t **const  pp_appearance 
)

Decodes sd_ble_gap_appearance_get command request.

See Also
0x79 - sd_ble_gap_appearance_get for packet format, ble_gap_appearance_get_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[out]pp_appearancePointer to pointer to uint16_t appearance.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
uint32_t ble_gap_appearance_get_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len,
uint16_t const *const  p_appearance 
)

Encodes sd_ble_gap_appearance_get command response.

See Also
0x79 - sd_ble_gap_appearance_get for packet format. ble_gap_appearance_get_req_dec for request decoding.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[out]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
[in]p_appearancePointer to uint16_t appearance.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_appearance_set_req_dec ( uint8_t const *const  p_buf,
uint32_t  buf_len,
uint16_t *const  p_appearance 
)

Decodes sd_ble_gap_appearance_set command request.

See Also
0x78 - sd_ble_gap_appearance_set for packet format, ble_gap_tx_power_set_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]buf_lenLength (in bytes) of the packet.
[out]p_appearancePointer to the appearance.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
uint32_t ble_gap_appearance_set_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_appearance_set command response.

See Also
0x78 - sd_ble_gap_appearance_set for packet format.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[in]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_auth_key_reply_req_dec ( uint8_t const *const  p_buf,
uint16_t  packet_len,
uint16_t *  p_conn_handle,
uint8_t *  p_key_type,
uint8_t **const  pp_key 
)

Decodes sd_ble_gap_auth_key_reply command request.

See Also
0x80 - sd_ble_gap_auth_key_reply for packet format, ble_gap_auth_key_reply_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[out]p_conn_handlePointer to connection handle.
[out]p_key_typePointer to key type.
[out]pp_keyPointer to pointer to buffer for incoming key.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
uint32_t ble_gap_auth_key_reply_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_auth_key_reply command response.

See Also
0x80 - sd_ble_gap_auth_key_reply for packet format.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[in]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_authenticate_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
uint16_t *const  p_conn_handle,
ble_gap_sec_params_t **const  pp_sec_params 
)

Decodes sd_ble_gap_authenticate command request.

See Also
0x7E - sd_ble_gap_authenticate for packet format, ble_gap_authenticate_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[out]p_conn_handlePointer to connection handle
[out]pp_sec_paramsPointer to pointer to security parameters.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
uint32_t ble_gap_authenticate_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_authenticate command response.

See Also
0x7E - sd_ble_gap_authenticate for packet format. ble_gap_authenticate_req_dec for request decoding.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[out]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_conn_param_update_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
uint16_t *  p_conn_handle,
ble_gap_conn_params_t **const  pp_conn_params 
)

Decodes sd_ble_gap_conn_param_update command request.

See Also
0x75 - sd_ble_gap_conn_param_update for packet format, ble_gap_conn_param_update_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[out]p_conn_handlePointer to connection handle.
[out]pp_conn_paramsPointer to pointer to connection parameters.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
NRF_ERROR_INVALID_DATADecoding failure. Invalid value for connection parameters field present.
uint32_t ble_gap_conn_param_update_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_conn_param_update command response.

See Also
0x75 - sd_ble_gap_conn_param_update for packet format.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[in]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_conn_sec_get_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
uint16_t *  p_conn_handle,
ble_gap_conn_sec_t **const  pp_conn_sec 
)

Decodes sd_ble_gap_conn_sec_get command request.

See Also
0x83 - sd_ble_gap_conn_sec_get for packet format, ble_gap_conn_sec_get_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[out]p_conn_handlePointer to Connection Handle.
[out]pp_conn_secPointer to pointer to ble_gap_conn_sec_t to be filled by the softdevice.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
uint32_t ble_gap_conn_sec_get_rsp_enc ( uint32_t  return_code,
ble_gap_conn_sec_t *const  p_conn_sec,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_conn_sec_get command response.

See Also
0x83 - sd_ble_gap_conn_sec_get for packet format. ble_gap_conn_sec_get_req_dec for request decoding.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[in]p_conn_secPointer to ble_gap_conn_sec_t to be encoded.
[out]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_connect_cancel_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_connect_cancel command response.

See Also
0x89 - sd_ble_gap_connect_cancel for packet format.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[out]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_connect_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_gap_addr_t **const  pp_addr,
ble_gap_scan_params_t **const  pp_scan_params,
ble_gap_conn_params_t **const  pp_conn_params 
)

Decodes sd_ble_gap_connect command request.

See Also
0x88 - sd_ble_gap_connect for packet format, ble_gap_connect_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[out]pp_addrPointer to pointer to peer address ble_gap_addr_t.
[out]pp_scan_paramsPointer to pointer to ble_gap_scan_params_t.
[out]pp_conn_paramsPointer to pointer to ble_gap_conn_params_t.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
uint32_t ble_gap_connect_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_connect command response.

See Also
0x88 - sd_ble_gap_connect for packet format. ble_gap_connect_req_dec for request decoding.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[out]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_device_name_get_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
uint8_t **  pp_dev_name,
uint16_t **  pp_dev_name_len 
)

Decodes sd_ble_gap_device_name_get command request.

See Also
0x7D - sd_ble_gap_device_name_get for packet format, ble_gap_device_name_get_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[out]pp_dev_namePointer to pointer to device name buffer.
[out]pp_dev_name_lenPointer to pointer to device name length location.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
uint32_t ble_gap_device_name_get_rsp_enc ( uint32_t  return_code,
uint8_t const *const  p_dev_name,
uint16_t  dev_name_len,
uint8_t *const  p_buf,
uint32_t *const  p_buflen 
)

Encodes sd_ble_gap_device_name_get command response.

See Also
0x7D - sd_ble_gap_device_name_get for packet format.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[in]p_dev_namePointer to device name buffer.
[in]dev_name_lenLength of device name buffer.
[in]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buflenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_device_name_set_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_gap_conn_sec_mode_t **const  pp_write_perm,
uint8_t **const  pp_dev_name,
uint16_t *const  p_dev_name_len 
)

Decodes sd_ble_gap_device_name_set command request.

See Also
0x7C - sd_ble_gap_device_name_set for packet format, ble_gap_device_name_set_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of the packet.
[out]pp_write_permPointer to pointer to write permissions filed.
[out]pp_dev_namePointer to pointer to device name string
[out]p_dev_name_lenPointer to device name string length
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
uint32_t ble_gap_device_name_set_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_device_name_set command response.

See Also
0x7C - sd_ble_gap_device_name_set for packet format.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[in]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_disconnect_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
uint16_t *const  p_conn_handle,
uint8_t *const  p_hci_status 
)

Decodes sd_ble_gap_disconnect command request.

See Also
0x76 - sd_ble_gap_disconnect for packet format, ble_gap_disconnect_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[in]p_conn_handlePointer to Connection Handle.
[in]p_hci_statusPointer to HCI Status Code.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
uint32_t ble_gap_disconnect_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_disconnect command response.

See Also
0x76 - sd_ble_gap_disconnect for packet format.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[in]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_encrypt_req_dec ( uint8_t const *const  p_buf,
uint16_t  packet_len,
uint16_t *const  p_conn_handle,
ble_gap_master_id_t **const  pp_master_id,
ble_gap_enc_info_t **const  pp_enc_info 
)

Decodes sd_ble_gap_encrypt command request.

See Also
0x81 - sd_ble_gap_encrypt for packet format, ble_gap_encrypt_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[out]p_conn_handlePointer connection_handle.
[out]pp_master_idPointer to pointer to ble_gap_master_id_t.
[out]pp_enc_infoPointer to pointer to ble_gap_enc_info_t.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
uint32_t ble_gap_encrypt_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_encrypt command response.

See Also
0x81 - sd_ble_gap_encrypt for packet format.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[out]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_ppcp_get_req_dec ( uint8_t const *const  p_buf,
uint16_t  packet_len,
ble_gap_conn_params_t **const  pp_conn_params 
)

Decodes sd_ble_gap_ppcp_get command request.

See Also
0x7B - sd_ble_gap_ppcp_get for packet format, ble_gap_ppcp_get_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[out]pp_conn_paramsPointer to pointer to ble_gap_conn_params_t.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
uint32_t ble_gap_ppcp_get_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len,
ble_gap_conn_params_t const *const  p_conn_params 
)

Encodes sd_ble_gap_ppcp_get command response.

See Also
0x7B - sd_ble_gap_ppcp_get for packet format. ble_gap_ppcp_get_req_dec for request decoding.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[out]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
[in]p_conn_paramsPointer to ble_gap_conn_params_t.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_ppcp_set_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_gap_conn_params_t **const  pp_conn_params 
)

Decodes sd_ble_gap_ppcp_set command request.

See Also
0x7A - sd_ble_gap_ppcp_set for packet format, ble_gap_ppcp_set_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[out]pp_conn_paramsPointer to pointer to connection parameters to be set.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
NRF_ERROR_INVALID_DATADecoding failure. Invalid value for connection parameters field present.
uint32_t ble_gap_ppcp_set_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_ppcp_set command response.

See Also
0x7A - sd_ble_gap_ppcp_set for packet format.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[in]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_rssi_get_req_dec ( uint8_t const *const  p_buf,
uint16_t  packet_len,
uint16_t *  p_conn_handle,
int8_t **const  pp_rssi 
)

Decodes sd_ble_gap_rssi_get command request.

See Also
0x8A - sd_ble_gap_rssi_get for packet format, ble_gap_rssi_get_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[in]p_conn_handleConnection handle.
[out]pp_rssiPointer to pointer to rssi value.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
uint32_t ble_gap_rssi_get_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len,
int8_t  rssi 
)

Encodes sd_ble_gap_rssi_get command response.

See Also
0x8A - sd_ble_gap_rssi_get for packet format. ble_gap_rssi_get_req_dec for request decoding.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[out]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
[in]rssiRSSI value.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_rssi_start_req_dec ( uint8_t const *const  p_buf,
uint32_t  buf_len,
uint16_t *  p_conn_handle,
uint8_t *  p_threshold_dbm,
uint8_t *  p_skip_count 
)

Decodes sd_ble_gap_rssi_start command request.

See Also
0x84 - sd_ble_gap_rssi_start for packet format, ble_gap_rssi_start_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]buf_lenLength (in bytes) of response packet.
[out]p_conn_handlePointer to connection handle.
[out]p_threshold_dbmPointer to threshold in dBm.
[out]p_skip_countPointer to sample skip count.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
uint32_t ble_gap_rssi_start_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_rssi_start command response.

See Also
0x84 - sd_ble_gap_rssi_start for packet format.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[in]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_rssi_stop_req_dec ( uint8_t const *const  p_buf,
uint32_t  buf_len,
uint16_t *  conn_handle 
)

Decodes sd_ble_gap_rssi_stop command request.

See Also
0x85 - sd_ble_gap_rssi_stop for packet format, ble_gap_rssi_stop_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]buf_lenLength (in bytes) of response packet.
[out]conn_handlePointer to connection handle.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
uint32_t ble_gap_rssi_stop_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_rssi_stop command response.

See Also
0x85 - sd_ble_gap_rssi_stop for packet format.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[in]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_scan_start_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_gap_scan_params_t **const  pp_scan_params 
)

Decodes sd_ble_gap_scan_start command request.

See Also
0x86 - sd_ble_gap_scan_start for packet format, ble_gap_scan_start_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[out]pp_scan_paramsPointer to pointer to ble_gap_scan_params_t.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
uint32_t ble_gap_scan_start_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_scan_start command response.

See Also
0x86 - sd_ble_gap_scan_start for packet format. ble_gap_scan_start_req_dec for request decoding.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[out]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_scan_stop_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_scan_stop command response.

See Also
0x87 - sd_ble_gap_scan_stop for packet format.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[in]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_sec_info_reply_req_dec ( uint8_t const *const  p_buf,
uint16_t  packet_len,
uint16_t *  p_conn_handle,
ble_gap_enc_info_t **const  pp_enc_info,
ble_gap_irk_t **const  pp_id_info,
ble_gap_sign_info_t **const  pp_sign_info 
)

Decodes sd_ble_gap_sec_info_reply command request.

See Also
0x82 - sd_ble_gap_sec_info_reply for packet format, ble_gap_sec_info_reply_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of the packet.
[out]p_conn_handlePointer to the Connection Handle.
[out]pp_enc_infoPointer to pointer to Encryption Information.
[out]pp_id_infoPointer to pointer to Id Information.
[out]pp_sign_infoPointer to pointer to Signing Information
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
uint32_t ble_gap_sec_info_reply_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_sec_info_reply command response.

See Also
0x82 - sd_ble_gap_sec_info_reply for packet format.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[in]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_sec_params_reply_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
uint16_t *  p_conn_handle,
uint8_t *  p_sec_status,
ble_gap_sec_params_t **const  pp_sec_params,
ble_gap_sec_keyset_t **const  pp_sec_keyset 
)

Decodes sd_ble_gap_sec_params_reply command request.

See Also
0x7F - sd_ble_gap_sec_params_reply for packet format, ble_gap_sec_params_reply_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[out]p_conn_handlePointer to connection handle.
[out]p_sec_statusPointer to security status.
[out]pp_sec_paramsPointer to pointer to security parameters structure.
[out]pp_sec_keysetPointer to pointer to security keyset structure.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
NRF_ERROR_INVALID_DATADecoding failure. Invalid value for connection parameters field present.
uint32_t ble_gap_sec_params_reply_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len,
ble_gap_sec_keyset_t *const  p_sec_keyset 
)

Encodes sd_ble_gap_sec_params_reply command response.

See Also
0x7F - sd_ble_gap_sec_params_reply for packet format.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[in]p_bufPointer to buffer where encoded data command response will be returned.
[in]p_sec_keysetPointer to security keyset structure.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_tx_power_set_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
int8_t *  tx_power 
)

Decodes sd_ble_gap_tx_power_set command request.

See Also
0x77 - sd_ble_gap_tx_power_set for packet format, ble_gap_tx_power_set_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_lenLength (in bytes) of response packet.
[in]tx_powerPointer to TX power value.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMDecoding failure. Invalid operation type.
uint32_t ble_gap_tx_power_set_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_tx_power_set command response.

See Also
0x77 - sd_ble_gap_tx_power_set for packet format.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[in]p_bufPointer to buffer where encoded data command response will be returned.
[in,out]p_buf_lenin: size of p_buf buffer. out: Length of encoded command response packet.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.