nRF5 SDK v12.1.0
Functions
GAP Connectivity command request decoders and command response encoders

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

Functions

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_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 *p_dev_name_len, uint8_t *const p_buf, uint32_t *const p_buf_len)
 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 packet_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 packet_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_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...
 
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_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_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_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_keypress_notify_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint16_t *p_conn_handle, uint8_t *p_kp_not)
 Decodes sd_ble_gap_keypress_notify command request. More...
 
uint32_t ble_gap_keypress_notify_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_keypress_notify command response. More...
 
uint32_t ble_gap_lesc_dhkey_reply_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint16_t *p_conn_handle, ble_gap_lesc_dhkey_t **pp_dhkey)
 Decodes sd_ble_gap_lesc_dhkey_reply command request. More...
 
uint32_t ble_gap_lesc_dhkey_reply_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_lesc_dhkey_reply command response. More...
 
uint32_t ble_gap_lesc_oob_data_set_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint16_t *p_conn_handle, ble_gap_lesc_oob_data_t **pp_oobd_own, ble_gap_lesc_oob_data_t **pp_oobd_peer)
 Decodes sd_ble_gap_lesc_oob_data_set command request. More...
 
uint32_t ble_gap_lesc_oob_data_set_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_lesc_oob_data_set command response. More...
 
uint32_t ble_gap_lesc_oob_data_get_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint16_t *p_conn_handle, ble_gap_lesc_p256_pk_t **pp_pk_own, ble_gap_lesc_oob_data_t **pp_oobd_own)
 Decodes sd_ble_gap_lesc_oob_data_get command request. More...
 
uint32_t ble_gap_lesc_oob_data_get_rsp_enc (uint32_t return_code, ble_gap_lesc_oob_data_t *p_oobd_own, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_lesc_oob_data_get command response. More...
 
uint32_t ble_gap_addr_get_req_dec (uint8_t const *const p_buf, uint16_t packet_len, ble_gap_addr_t **const pp_address)
 Decodes sd_ble_gap_addr_get command request. More...
 
uint32_t ble_gap_addr_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_addr_get command response. More...
 
uint32_t ble_gap_addr_set_req_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_gap_addr_t **const pp_addr)
 Decodes sd_ble_gap_addr_set command request. More...
 
uint32_t ble_gap_addr_set_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_addr_set command response. More...
 
uint32_t ble_gap_privacy_set_req_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_gap_privacy_params_t **const pp_privacy_params)
 Decodes sd_ble_gap_privacy_set command request. More...
 
uint32_t ble_gap_privacy_set_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_privacy_set command response. More...
 
uint32_t ble_gap_privacy_get_req_dec (uint8_t const *const p_buf, uint16_t packet_len, ble_gap_privacy_params_t **const pp_privacy_params)
 Decodes sd_ble_gap_privacy_get command request. More...
 
uint32_t ble_gap_privacy_get_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len, ble_gap_privacy_params_t const *const p_privacy_params)
 Encodes sd_ble_gap_privacy_set command response. More...
 
uint32_t ble_gap_whitelist_set_req_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_gap_addr_t ***const ppp_wl_addrs, uint8_t *const p_len)
 Decodes sd_ble_gap_whitelist_set command request. More...
 
uint32_t ble_gap_whitelist_set_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_whitelist_set command response. More...
 
uint32_t ble_gap_device_identities_set_req_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_gap_id_key_t ***const ppp_id_keys, ble_gap_irk_t ***const ppp_local_irks, uint8_t *const p_len)
 Decodes sd_ble_gap_device_identities_set command request. More...
 
uint32_t ble_gap_device_identities_set_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes sd_ble_gap_device_identities_set command response. More...
 

Detailed Description

GAP Connectivity command request decoders and command response encoders.

Function Documentation

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

Decodes sd_ble_gap_addr_get command request.

See Also
ble_gap_addr_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_addr_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_addr_get command response.

See Also
ble_gap_addr_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_addr_set_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_gap_addr_t **const  pp_addr 
)

Decodes sd_ble_gap_addr_set command request.

See Also
ble_gap_addr_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_addrPointer to pointer to the address structure.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
uint32_t ble_gap_addr_set_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_addr_set command response.

See Also
ble_gap_addr_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
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
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
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
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.

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
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
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
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.

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
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.

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
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
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
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.

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
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
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.

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
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
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_identities_set_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_gap_id_key_t ***const  ppp_id_keys,
ble_gap_irk_t ***const  ppp_local_irks,
uint8_t *const  p_len 
)

Decodes sd_ble_gap_device_identities_set command request.

See Also
ble_gap_device_identities_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]ppp_id_keysPointer to an array of peer identity addresses and peer IRKs.
[out]ppp_local_irksPointer to an array of local IRKs.
[out]p_lenPointer to a length of the device identity list.
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_identities_set_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_device_identities_set command response.

See Also
ble_gap_device_identities_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_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
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 *  p_dev_name_len,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_device_name_get command response.

Parameters
[in]return_codeReturn code indicating if command was successful or not.
[in]p_dev_namePointer to device name buffer.
[in]p_dev_name_lenLength of device name buffer.
[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_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
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.

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
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.

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
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.

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_keypress_notify_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
uint16_t *  p_conn_handle,
uint8_t *  p_kp_not 
)

Decodes sd_ble_gap_keypress_notify command request.

See Also
ble_gap_keypress_notify_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_handleConnection handle.
[out]p_kp_notPointer kp_not 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_keypress_notify_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_keypress_notify command response.

See Also
ble_gap_keypress_notify_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_lesc_dhkey_reply_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
uint16_t *  p_conn_handle,
ble_gap_lesc_dhkey_t **  pp_dhkey 
)

Decodes sd_ble_gap_lesc_dhkey_reply command request.

See Also
ble_gap_lesc_dhkey_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_handleConnection handle.
[out]pp_dhkeyPointer to pointer to dhkey struct.
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_lesc_dhkey_reply_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_lesc_dhkey_reply command response.

See Also
ble_gap_lesc_dhkey_reply_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_lesc_oob_data_get_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
uint16_t *  p_conn_handle,
ble_gap_lesc_p256_pk_t **  pp_pk_own,
ble_gap_lesc_oob_data_t **  pp_oobd_own 
)

Decodes sd_ble_gap_lesc_oob_data_get command request.

See Also
ble_gap_lesc_oob_data_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_handleConnection handle.
[out]pp_pk_ownPointer to pointer to PK.
[out]pp_oobd_ownPointer to pointer to own OOB data struct.
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_lesc_oob_data_get_rsp_enc ( uint32_t  return_code,
ble_gap_lesc_oob_data_t p_oobd_own,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_lesc_oob_data_get command response.

See Also
ble_gap_lesc_oob_data_get_req_dec for request decoding.
Parameters
[in]return_codeReturn code indicating if command was successful or not.
[in]p_oobd_ownPointer to OOB data.
[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_lesc_oob_data_set_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
uint16_t *  p_conn_handle,
ble_gap_lesc_oob_data_t **  pp_oobd_own,
ble_gap_lesc_oob_data_t **  pp_oobd_peer 
)

Decodes sd_ble_gap_lesc_oob_data_set command request.

See Also
ble_gap_lesc_oob_data_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_conn_handleConnection handle.
[out]pp_oobd_ownPointer to pointer to own OOB data struct.
[out]pp_oobd_peerPointer to pointer to peer OOB data struct.
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_lesc_oob_data_set_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_lesc_oob_data_set command response.

See Also
ble_gap_lesc_oob_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_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
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
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
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.

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_privacy_get_req_dec ( uint8_t const *const  p_buf,
uint16_t  packet_len,
ble_gap_privacy_params_t **const  pp_privacy_params 
)

Decodes sd_ble_gap_privacy_get command request.

See Also
ble_gap_privacy_get_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_privacy_paramsPointer to pointer to the privacy settings structure.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
uint32_t ble_gap_privacy_get_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len,
ble_gap_privacy_params_t const *const  p_privacy_params 
)

Encodes sd_ble_gap_privacy_set command response.

See Also
ble_gap_privacy_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.
[out]p_privacy_paramsPointer to privacy settings structure.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gap_privacy_set_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_gap_privacy_params_t **const  pp_privacy_params 
)

Decodes sd_ble_gap_privacy_set command request.

See Also
ble_gap_privacy_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_privacy_paramsPointer to pointer to the privacy settings structure.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
uint32_t ble_gap_privacy_set_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_privacy_set command response.

See Also
ble_gap_privacy_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_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
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
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  packet_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
ble_gap_rssi_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]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.

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  packet_len,
uint16_t *  conn_handle 
)

Decodes sd_ble_gap_rssi_stop command request.

See Also
ble_gap_rssi_stop_rsp_enc for response encoding.
Parameters
[in]p_bufPointer to beginning of command request packet.
[in]packet_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.

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
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
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.

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
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.

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
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.

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
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.

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_whitelist_set_req_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_gap_addr_t ***const  ppp_wl_addrs,
uint8_t *const  p_len 
)

Decodes sd_ble_gap_whitelist_set command request.

See Also
ble_gap_whitelist_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]ppp_wl_addrsPointer to a whitelist of peer addresses.
[out]p_lenPointer to a length of the whitelist.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
uint32_t ble_gap_whitelist_set_rsp_enc ( uint32_t  return_code,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes sd_ble_gap_whitelist_set command response.

See Also
ble_gap_whitelist_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.

Documentation feedback | Developer Zone | Subscribe | Updated