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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] pp_address Pointer to pointer to address.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.[in] p_address Pointer to ble_gap_addr_t address
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of request packet. [out] pp_addr Pointer to pointer to the address structure.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of request packet. [out] pp_data Pointer to the buffer raw data to be placed in advertisement packet. [out] p_dlen Pointer to data length for p_data. [out] pp_sr_data Pointer to the buffer raw data to be placed in scan response packet. [out] p_srdlen Pointer to data length for p_sr_data.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] pp_adv_params Pointer to pointer to advertising parameters.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_code Return code indicating if command was successful or not. [in] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] pp_appearance Pointer to pointer to uint16_t appearance.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.[in] p_appearance Pointer to uint16_t appearance.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] buf_len Length (in bytes) of the packet. [out] p_appearance Pointer to the appearance.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding 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_code Return code indicating if command was successful or not. [in] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] p_conn_handle Pointer to connection handle. [out] p_key_type Pointer to key type. [out] pp_key Pointer to pointer to buffer for incoming key.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [in] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] p_conn_handle Pointer to connection handle [out] pp_sec_params Pointer to pointer to security parameters.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] p_conn_handle Pointer to connection handle. [out] pp_conn_params Pointer to pointer to connection parameters.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding failure. Invalid operation type. NRF_ERROR_INVALID_DATA Decoding 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_code Return code indicating if command was successful or not. [in] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] p_conn_handle Pointer to Connection Handle. [out] pp_conn_sec Pointer to pointer to ble_gap_conn_sec_t to be filled by the SoftDevice.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [in] p_conn_sec Pointer to ble_gap_conn_sec_t to be encoded. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] pp_addr Pointer to pointer to peer address ble_gap_addr_t . [out] pp_scan_params Pointer to pointer to ble_gap_scan_params_t . [out] pp_conn_params Pointer to pointer to ble_gap_conn_params_t .
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of request packet. [out] ppp_id_keys Pointer to an array of peer identity addresses and peer IRKs. [out] ppp_local_irks Pointer to an array of local IRKs. [out] p_len Pointer to a length of the device identity list.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] pp_dev_name Pointer to pointer to device name buffer. [out] pp_dev_name_len Pointer to pointer to device name length location.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding 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_code Return code indicating if command was successful or not. [in] p_dev_name Pointer to device name buffer. [in] p_dev_name_len Length of device name buffer. [in] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of the packet. [out] pp_write_perm Pointer to pointer to write permissions filed. [out] pp_dev_name Pointer to pointer to device name string. [out] p_dev_name_len Pointer to device name string length.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding 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_code Return code indicating if command was successful or not. [in] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [in] p_conn_handle Pointer to Connection Handle. [in] p_hci_status Pointer to HCI Status Code.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [in] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] p_conn_handle Pointer connection_handle. [out] pp_master_id Pointer to pointer to ble_gap_master_id_t . [out] pp_enc_info Pointer to pointer to ble_gap_enc_info_t .
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] p_conn_handle Connection handle. [out] p_kp_not Pointer kp_not value.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] p_conn_handle Connection handle. [out] pp_dhkey Pointer to pointer to dhkey struct.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] p_conn_handle Connection handle. [out] pp_pk_own Pointer to pointer to PK. [out] pp_oobd_own Pointer to pointer to own OOB data struct.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [in] p_oobd_own Pointer to OOB data. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] p_conn_handle Connection handle. [out] pp_oobd_own Pointer to pointer to own OOB data struct. [out] pp_oobd_peer Pointer to pointer to peer OOB data struct.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] pp_conn_params Pointer to pointer to ble_gap_conn_params_t .
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.[in] p_conn_params Pointer to ble_gap_conn_params_t .
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] pp_conn_params Pointer to pointer to connection parameters to be set.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding failure. Invalid operation type. NRF_ERROR_INVALID_DATA Decoding 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_code Return code indicating if command was successful or not. [in] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of request packet. [out] pp_privacy_params Pointer to pointer to the privacy settings structure.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.[out] p_privacy_params Pointer to privacy settings structure.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of request packet. [out] pp_privacy_params Pointer to pointer to the privacy settings structure.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [in] p_conn_handle Connection handle. [out] pp_rssi Pointer to pointer to RSSI value.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.[in] rssi RSSI value.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] p_conn_handle Pointer to connection handle. [out] p_threshold_dbm Pointer to threshold in dBm. [out] p_skip_count Pointer to sample skip count.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [in] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] conn_handle Pointer to connection handle.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [in] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] pp_scan_params Pointer to pointer to ble_gap_scan_params_t .
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_code Return code indicating if command was successful or not. [in] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of the packet. [out] p_conn_handle Pointer to the Connection Handle. [out] pp_enc_info Pointer to pointer to Encryption Information. [out] pp_id_info Pointer to pointer to ID Information. [out] pp_sign_info Pointer to pointer to Signing Information.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding 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_code Return code indicating if command was successful or not. [in] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [out] p_conn_handle Pointer to connection handle. [out] p_sec_status Pointer to security status. [out] pp_sec_params Pointer to pointer to security parameters structure. [out] pp_sec_keyset Pointer to pointer to security keyset structure.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding failure. Invalid operation type. NRF_ERROR_INVALID_DATA Decoding 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_code Return code indicating if command was successful or not. [in] p_buf Pointer to buffer where encoded data command response will be returned. [in] p_sec_keyset Pointer to security keyset structure. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of response packet. [in] tx_power Pointer to TX power value.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding failure. Incorrect buffer length. NRF_ERROR_INVALID_PARAM Decoding 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_code Return code indicating if command was successful or not. [in] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding 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_buf Pointer to beginning of command request packet. [in] packet_len Length (in bytes) of request packet. [out] ppp_wl_addrs Pointer to a whitelist of peer addresses. [out] p_len Pointer to a length of the whitelist.
- Return values
-
NRF_SUCCESS Decoding success. NRF_ERROR_NULL Decoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Decoding 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_code Return code indicating if command was successful or not. [out] p_buf Pointer to buffer where encoded data command response will be returned. [in,out] p_buf_len in:size ofp_bufbuffer.out:Length of encoded command response packet.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding failure. Incorrect buffer length.