nRF51 SDK - S120 SoftDevice
|
GAP Connectivity command request decoders and command response encoders. More...
Functions | |
uint32_t | ble_gap_address_get_req_dec (uint8_t const *const p_buf, uint16_t packet_len, ble_gap_addr_t **const pp_address) |
Decodes sd_ble_gap_address_get command request. More... | |
uint32_t | ble_gap_address_get_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len, ble_gap_addr_t const *const p_address) |
Encodes sd_ble_gap_address_get command response. More... | |
uint32_t | ble_gap_authenticate_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint16_t *const p_conn_handle, ble_gap_sec_params_t **const pp_sec_params) |
Decodes sd_ble_gap_authenticate command request. More... | |
uint32_t | ble_gap_authenticate_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len) |
Encodes sd_ble_gap_authenticate command response. More... | |
uint32_t | ble_gap_address_set_req_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_gap_addr_t **const pp_addr) |
Decodes sd_ble_gap_address_set command request. More... | |
uint32_t | ble_gap_address_set_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len) |
Encodes sd_ble_gap_address_set command response. More... | |
uint32_t | ble_gap_adv_data_set_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint8_t **const pp_data, uint8_t *p_dlen, uint8_t **const pp_sr_data, uint8_t *p_srdlen) |
Decodes sd_ble_gap_adv_data_set command request. More... | |
uint32_t | ble_gap_adv_data_set_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len) |
Encodes sd_ble_gap_adv_data_set command response. More... | |
uint32_t | ble_gap_adv_start_req_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_gap_adv_params_t **const pp_adv_params) |
Decodes sd_ble_gap_adv_start command request. More... | |
uint32_t | ble_gap_adv_start_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len) |
Encodes sd_ble_gap_adv_start command response. More... | |
uint32_t | ble_gap_device_name_get_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint8_t **pp_dev_name, uint16_t **pp_dev_name_len) |
Decodes sd_ble_gap_device_name_get command request. More... | |
uint32_t | ble_gap_device_name_get_rsp_enc (uint32_t return_code, uint8_t const *const p_dev_name, uint16_t dev_name_len, uint8_t *const p_buf, uint32_t *const p_buflen) |
Encodes sd_ble_gap_device_name_get command response. More... | |
uint32_t | ble_gap_conn_param_update_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint16_t *p_conn_handle, ble_gap_conn_params_t **const pp_conn_params) |
Decodes sd_ble_gap_conn_param_update command request. More... | |
uint32_t | ble_gap_conn_param_update_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len) |
Encodes sd_ble_gap_conn_param_update command response. More... | |
uint32_t | ble_gap_disconnect_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint16_t *const p_conn_handle, uint8_t *const p_hci_status) |
Decodes sd_ble_gap_disconnect command request. More... | |
uint32_t | ble_gap_disconnect_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len) |
Encodes sd_ble_gap_disconnect command response. More... | |
uint32_t | ble_gap_tx_power_set_req_dec (uint8_t const *const p_buf, uint32_t packet_len, int8_t *tx_power) |
Decodes sd_ble_gap_tx_power_set command request. More... | |
uint32_t | ble_gap_tx_power_set_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len) |
Encodes sd_ble_gap_tx_power_set command response. More... | |
uint32_t | ble_gap_ppcp_set_req_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_gap_conn_params_t **const pp_conn_params) |
Decodes sd_ble_gap_ppcp_set command request. More... | |
uint32_t | ble_gap_ppcp_set_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len) |
Encodes sd_ble_gap_ppcp_set command response. More... | |
uint32_t | ble_gap_ppcp_get_req_dec (uint8_t const *const p_buf, uint16_t packet_len, ble_gap_conn_params_t **const pp_conn_params) |
Decodes sd_ble_gap_ppcp_get command request. More... | |
uint32_t | ble_gap_ppcp_get_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len, ble_gap_conn_params_t const *const p_conn_params) |
Encodes sd_ble_gap_ppcp_get command response. More... | |
uint32_t | ble_gap_adv_stop_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len) |
Encodes sd_ble_gap_adv_stop command response. More... | |
uint32_t | ble_gap_auth_key_reply_req_dec (uint8_t const *const p_buf, uint16_t packet_len, uint16_t *p_conn_handle, uint8_t *p_key_type, uint8_t **const pp_key) |
Decodes sd_ble_gap_auth_key_reply command request. More... | |
uint32_t | ble_gap_auth_key_reply_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len) |
Encodes sd_ble_gap_auth_key_reply command response. More... | |
uint32_t | ble_gap_sec_params_reply_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint16_t *p_conn_handle, uint8_t *p_sec_status, ble_gap_sec_params_t **const pp_sec_params, ble_gap_sec_keyset_t **const pp_sec_keyset) |
Decodes sd_ble_gap_sec_params_reply command request. More... | |
uint32_t | ble_gap_sec_params_reply_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len, ble_gap_sec_keyset_t *const p_sec_keyset) |
Encodes sd_ble_gap_sec_params_reply command response. More... | |
uint32_t | ble_gap_rssi_start_req_dec (uint8_t const *const p_buf, uint32_t buf_len, uint16_t *conn_handle) |
Decodes sd_ble_gap_rssi_start command request. More... | |
uint32_t | ble_gap_rssi_start_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len) |
Encodes sd_ble_gap_rssi_start command response. More... | |
uint32_t | ble_gap_rssi_stop_req_dec (uint8_t const *const p_buf, uint32_t buf_len, uint16_t *conn_handle) |
Decodes sd_ble_gap_rssi_stop command request. More... | |
uint32_t | ble_gap_rssi_stop_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len) |
Encodes sd_ble_gap_rssi_stop command response. More... | |
uint32_t | ble_gap_appearance_get_req_dec (uint8_t const *const p_buf, uint16_t packet_len, uint16_t **const pp_appearance) |
Decodes sd_ble_gap_appearance_get command request. More... | |
uint32_t | ble_gap_appearance_get_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len, uint16_t const *const p_appearance) |
Encodes sd_ble_gap_appearance_get command response. More... | |
uint32_t | ble_gap_appearance_set_req_dec (uint8_t const *const p_buf, uint32_t buf_len, uint16_t *const p_appearance) |
Decodes sd_ble_gap_appearance_set command request. More... | |
uint32_t | ble_gap_appearance_set_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len) |
Encodes sd_ble_gap_appearance_set command response. More... | |
uint32_t | ble_gap_sec_info_reply_req_dec (uint8_t const *const p_buf, uint16_t packet_len, uint16_t *p_conn_handle, ble_gap_enc_info_t **const pp_enc_info, ble_gap_irk_t **const pp_id_info, ble_gap_sign_info_t **const pp_sign_info) |
Decodes sd_ble_gap_sec_info_reply command request. More... | |
uint32_t | ble_gap_sec_info_reply_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len) |
Encodes sd_ble_gap_sec_info_reply command response. More... | |
uint32_t | ble_gap_device_name_set_req_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_gap_conn_sec_mode_t **const pp_write_perm, uint8_t **const pp_dev_name, uint16_t *const p_dev_name_len) |
Decodes sd_ble_gap_device_name_set command request. More... | |
uint32_t | ble_gap_device_name_set_rsp_enc (uint32_t return_code, uint8_t *const p_buf, uint32_t *const p_buf_len) |
Encodes sd_ble_gap_device_name_set command response. More... | |
uint32_t | ble_gap_conn_sec_get_req_dec (uint8_t const *const p_buf, uint32_t packet_len, uint16_t *p_conn_handle, ble_gap_conn_sec_t **const pp_conn_sec) |
Decodes sd_ble_gap_conn_sec_get command request. More... | |
uint32_t | ble_gap_conn_sec_get_rsp_enc (uint32_t return_code, ble_gap_conn_sec_t *const p_conn_sec, uint8_t *const p_buf, uint32_t *const p_buf_len) |
Encodes sd_ble_gap_conn_sec_get command response. More... | |
uint32_t | ble_gap_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... | |
GAP Connectivity command request decoders and command response encoders.
uint32_t ble_gap_address_get_req_dec | ( | uint8_t const *const | p_buf, |
uint16_t | packet_len, | ||
ble_gap_addr_t **const | pp_address | ||
) |
Decodes sd_ble_gap_address_get command request.
[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. |
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_address_get_rsp_enc | ( | uint32_t | return_code, |
uint8_t *const | p_buf, | ||
uint32_t *const | p_buf_len, | ||
ble_gap_addr_t const *const | p_address | ||
) |
Encodes sd_ble_gap_address_get command response.
[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 of p_buf buffer. out: Length of encoded command response packet. |
[in] | p_address | Pointer to ble_gap_addr_t address |
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_address_set_req_dec | ( | uint8_t const *const | p_buf, |
uint32_t | packet_len, | ||
ble_gap_addr_t **const | pp_addr | ||
) |
Decodes sd_ble_gap_address_set command request.
[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. |
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_address_set_rsp_enc | ( | uint32_t | return_code, |
uint8_t *const | p_buf, | ||
uint32_t *const | p_buf_len | ||
) |
Encodes sd_ble_gap_address_set command response.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
[in] | p_appearance | Pointer to uint16_t appearance. |
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.
[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. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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. |
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 | dev_name_len, | ||
uint8_t *const | p_buf, | ||
uint32_t *const | p_buflen | ||
) |
Encodes sd_ble_gap_device_name_get command response.
[in] | return_code | Return code indicating if command was successful or not. |
[in] | p_dev_name | Pointer to device name buffer. |
[in] | 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_buflen | in: size of p_buf buffer. out: Length of encoded command response packet. |
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.
[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 |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
[in] | p_conn_params | Pointer to ble_gap_conn_params_t. |
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.
[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. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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 | buf_len, | ||
uint16_t * | conn_handle | ||
) |
Decodes sd_ble_gap_rssi_start command request.
[in] | p_buf | Pointer to beginning of command request packet. |
[in] | buf_len | Length (in bytes) of response packet. |
[out] | conn_handle | Pointer to connection handle. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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 | buf_len, | ||
uint16_t * | conn_handle | ||
) |
Decodes sd_ble_gap_rssi_stop command request.
[in] | p_buf | Pointer to beginning of command request packet. |
[in] | buf_len | Length (in bytes) of response packet. |
[out] | conn_handle | Pointer to connection handle. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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 |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
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.
[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. |
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.
[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 of p_buf buffer. out: Length of encoded command response packet. |
NRF_SUCCESS | Encoding success. |
NRF_ERROR_NULL | Encoding failure. NULL pointer supplied. |
NRF_ERROR_INVALID_LENGTH | Encoding failure. Incorrect buffer length. |