nRF5 SDK v17.1.0
Functions

Functions

uint32_t conn_mw_ble_gattc_primary_services_discover (uint8_t const *const p_rx_buf, uint32_t rx_buf_len, uint8_t *const p_tx_buf, uint32_t *const p_tx_buf_len)
 Handles sd_ble_gattc_primary_services_discover command and prepares response. More...
 
uint32_t conn_mw_ble_gattc_relationships_discover (uint8_t const *const p_rx_buf, uint32_t rx_buf_len, uint8_t *const p_tx_buf, uint32_t *const p_tx_buf_len)
 Handles sd_ble_gattc_relationships_discover command and prepares response. More...
 
uint32_t conn_mw_ble_gattc_characteristics_discover (uint8_t const *const p_rx_buf, uint32_t rx_buf_len, uint8_t *const p_tx_buf, uint32_t *const p_tx_buf_len)
 Handles sd_ble_gattc_characteristics_discover command and prepares response. More...
 
uint32_t conn_mw_ble_gattc_descriptors_discover (uint8_t const *const p_rx_buf, uint32_t rx_buf_len, uint8_t *const p_tx_buf, uint32_t *const p_tx_buf_len)
 Handles sd_ble_gattc_descriptors_discover command and prepares response. More...
 
uint32_t conn_mw_ble_gattc_char_value_by_uuid_read (uint8_t const *const p_rx_buf, uint32_t rx_buf_len, uint8_t *const p_tx_buf, uint32_t *const p_tx_buf_len)
 Handles sd_ble_gattc_char_value_by_uuid_read command and prepares response. More...
 
uint32_t conn_mw_ble_gattc_read (uint8_t const *const rx_buf, uint32_t rx_buf_len, uint8_t *const tx_buf, uint32_t *const p_tx_buf_len)
 Handles sd_ble_gattc_read command and prepares response. More...
 
uint32_t conn_mw_ble_gattc_char_values_read (uint8_t const *const rx_buf, uint32_t rx_buf_len, uint8_t *const tx_buf, uint32_t *const p_tx_buf_len)
 Handles sd_ble_gattc_char_values_read command and prepares response. More...
 
uint32_t conn_mw_ble_gattc_write (uint8_t const *const rx_buf, uint32_t rx_buf_len, uint8_t *const tx_buf, uint32_t *const p_tx_buf_len)
 Handles sd_ble_gattc_write command and prepares response. More...
 
uint32_t conn_mw_ble_gattc_hv_confirm (uint8_t const *const rx_buf, uint32_t rx_buf_len, uint8_t *const tx_buf, uint32_t *const p_tx_buf_len)
 Handles sd_ble_gattc_hv_confirm command and prepares response. More...
 
uint32_t conn_mw_ble_gattc_attr_info_discover (uint8_t const *const p_rx_buf, uint32_t rx_buf_len, uint8_t *const p_tx_buf, uint32_t *const p_tx_buf_len)
 Handles sd_ble_gattc_attr_info_discover command and prepares response. More...
 
uint32_t conn_mw_ble_gattc_exchange_mtu_request (uint8_t const *const p_rx_buf, uint32_t rx_buf_len, uint8_t *const p_tx_buf, uint32_t *const p_tx_buf_len)
 Handles sd_ble_gattc_exchange_mtu_request command and prepares response. More...
 

Detailed Description

Function Documentation

uint32_t conn_mw_ble_gattc_attr_info_discover ( uint8_t const *const  p_rx_buf,
uint32_t  rx_buf_len,
uint8_t *const  p_tx_buf,
uint32_t *const  p_tx_buf_len 
)

Handles sd_ble_gattc_attr_info_discover command and prepares response.

Parameters
[in]p_rx_bufPointer to input buffer.
[in]rx_buf_lenSize of p_rx_buf.
[out]p_tx_bufPointer to output buffer.
[in,out]p_tx_buf_lenin: Size of p_tx_buf buffer. out: Length of valid data in p_tx_buf.
Return values
NRF_SUCCESSHandler success.
NRF_ERROR_NULLHandler failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHHandler failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMHandler failure. Invalid operation type.
uint32_t conn_mw_ble_gattc_char_value_by_uuid_read ( uint8_t const *const  p_rx_buf,
uint32_t  rx_buf_len,
uint8_t *const  p_tx_buf,
uint32_t *const  p_tx_buf_len 
)

Handles sd_ble_gattc_char_value_by_uuid_read command and prepares response.

Parameters
[in]p_rx_bufPointer to input buffer.
[in]rx_buf_lenSize of p_rx_buf.
[out]p_tx_bufPointer to output buffer.
[in,out]p_tx_buf_lenin: Size of p_tx_buf buffer. out: Length of valid data in p_tx_buf.
Return values
NRF_SUCCESSHandler success.
NRF_ERROR_NULLHandler failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHHandler failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMHandler failure. Invalid operation type.
uint32_t conn_mw_ble_gattc_char_values_read ( uint8_t const *const  rx_buf,
uint32_t  rx_buf_len,
uint8_t *const  tx_buf,
uint32_t *const  p_tx_buf_len 
)

Handles sd_ble_gattc_char_values_read command and prepares response.

Parameters
[in]rx_bufPointer to input buffer.
[in]rx_buf_lenSize of p_rx_buf.
[out]tx_bufPointer to output buffer.
[in,out]p_tx_buf_lenin: Size of p_tx_buf buffer. out: Length of valid data in p_tx_buf.
Return values
NRF_SUCCESSHandler success.
NRF_ERROR_NULLHandler failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHHandler failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMHandler failure. Invalid operation type.
uint32_t conn_mw_ble_gattc_characteristics_discover ( uint8_t const *const  p_rx_buf,
uint32_t  rx_buf_len,
uint8_t *const  p_tx_buf,
uint32_t *const  p_tx_buf_len 
)

Handles sd_ble_gattc_characteristics_discover command and prepares response.

Parameters
[in]p_rx_bufPointer to input buffer.
[in]rx_buf_lenSize of p_rx_buf.
[out]p_tx_bufPointer to output buffer.
[in,out]p_tx_buf_lenin: Size of p_tx_buf buffer. out: Length of valid data in p_tx_buf.
Return values
NRF_SUCCESSHandler success.
NRF_ERROR_NULLHandler failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHHandler failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMHandler failure. Invalid operation type.
uint32_t conn_mw_ble_gattc_descriptors_discover ( uint8_t const *const  p_rx_buf,
uint32_t  rx_buf_len,
uint8_t *const  p_tx_buf,
uint32_t *const  p_tx_buf_len 
)

Handles sd_ble_gattc_descriptors_discover command and prepares response.

Parameters
[in]p_rx_bufPointer to input buffer.
[in]rx_buf_lenSize of p_rx_buf.
[out]p_tx_bufPointer to output buffer.
[in,out]p_tx_buf_lenin: Size of p_tx_buf buffer. out: Length of valid data in p_tx_buf.
Return values
NRF_SUCCESSHandler success.
NRF_ERROR_NULLHandler failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHHandler failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMHandler failure. Invalid operation type.
uint32_t conn_mw_ble_gattc_exchange_mtu_request ( uint8_t const *const  p_rx_buf,
uint32_t  rx_buf_len,
uint8_t *const  p_tx_buf,
uint32_t *const  p_tx_buf_len 
)

Handles sd_ble_gattc_exchange_mtu_request command and prepares response.

Parameters
[in]p_rx_bufPointer to input buffer.
[in]rx_buf_lenSize of p_rx_buf.
[out]p_tx_bufPointer to output buffer.
[in,out]p_tx_buf_lenin: Size of p_tx_buf buffer. out: Length of valid data in p_tx_buf.
Return values
NRF_SUCCESSHandler success.
NRF_ERROR_NULLHandler failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHHandler failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMHandler failure. Invalid operation type.
uint32_t conn_mw_ble_gattc_hv_confirm ( uint8_t const *const  rx_buf,
uint32_t  rx_buf_len,
uint8_t *const  tx_buf,
uint32_t *const  p_tx_buf_len 
)

Handles sd_ble_gattc_hv_confirm command and prepares response.

Parameters
[in]rx_bufPointer to input buffer.
[in]rx_buf_lenSize of p_rx_buf.
[out]tx_bufPointer to output buffer.
[in,out]p_tx_buf_lenin: Size of p_tx_buf buffer. out: Length of valid data in p_tx_buf.
Return values
NRF_SUCCESSHandler success.
NRF_ERROR_NULLHandler failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHHandler failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMHandler failure. Invalid operation type.
uint32_t conn_mw_ble_gattc_primary_services_discover ( uint8_t const *const  p_rx_buf,
uint32_t  rx_buf_len,
uint8_t *const  p_tx_buf,
uint32_t *const  p_tx_buf_len 
)

Handles sd_ble_gattc_primary_services_discover command and prepares response.

Parameters
[in]p_rx_bufPointer to input buffer.
[in]rx_buf_lenSize of p_rx_buf.
[out]p_tx_bufPointer to output buffer.
[in,out]p_tx_buf_lenin: Size of p_tx_buf buffer. out: Length of valid data in p_tx_buf.
Return values
NRF_SUCCESSHandler success.
NRF_ERROR_NULLHandler failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHHandler failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMHandler failure. Invalid operation type.
uint32_t conn_mw_ble_gattc_read ( uint8_t const *const  rx_buf,
uint32_t  rx_buf_len,
uint8_t *const  tx_buf,
uint32_t *const  p_tx_buf_len 
)

Handles sd_ble_gattc_read command and prepares response.

Parameters
[in]rx_bufPointer to input buffer.
[in]rx_buf_lenSize of p_rx_buf.
[out]tx_bufPointer to output buffer.
[in,out]p_tx_buf_lenin: Size of p_tx_buf buffer. out: Length of valid data in p_tx_buf.
Return values
NRF_SUCCESSHandler success.
NRF_ERROR_NULLHandler failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHHandler failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMHandler failure. Invalid operation type.
uint32_t conn_mw_ble_gattc_relationships_discover ( uint8_t const *const  p_rx_buf,
uint32_t  rx_buf_len,
uint8_t *const  p_tx_buf,
uint32_t *const  p_tx_buf_len 
)

Handles sd_ble_gattc_relationships_discover command and prepares response.

Parameters
[in]p_rx_bufPointer to input buffer.
[in]rx_buf_lenSize of p_rx_buf.
[out]p_tx_bufPointer to output buffer.
[in,out]p_tx_buf_lenin: Size of p_tx_buf buffer. out: Length of valid data in p_tx_buf.
Return values
NRF_SUCCESSHandler success.
NRF_ERROR_NULLHandler failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHHandler failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMHandler failure. Invalid operation type.
uint32_t conn_mw_ble_gattc_write ( uint8_t const *const  rx_buf,
uint32_t  rx_buf_len,
uint8_t *const  tx_buf,
uint32_t *const  p_tx_buf_len 
)

Handles sd_ble_gattc_write command and prepares response.

Parameters
[in]rx_bufPointer to input buffer.
[in]rx_buf_lenSize of p_rx_buf.
[out]tx_bufPointer to output buffer.
[in,out]p_tx_buf_lenin: Size of p_tx_buf buffer. out: Length of valid data in p_tx_buf.
Return values
NRF_SUCCESSHandler success.
NRF_ERROR_NULLHandler failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHHandler failure. Incorrect buffer length.
NRF_ERROR_INVALID_PARAMHandler failure. Invalid operation type.

Documentation feedback | Developer Zone | Subscribe | Updated