nRF5 SDK v12.1.0
Functions
GATTC Application event decoders

GATTC Application event decoders. More...

Functions

uint32_t ble_gattc_evt_char_disc_rsp_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_evt_t *const p_event, uint32_t *const p_event_len)
 Decodes ble_gattc_evt_char_disc_rsp event. More...
 
uint32_t ble_gattc_evt_char_val_by_uuid_read_rsp_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_evt_t *const p_event, uint32_t *const p_event_len)
 Decodes ble_gattc_evt_char_val_by_uuid_read_rsp event. More...
 
uint32_t ble_gattc_evt_char_vals_read_rsp_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_evt_t *const p_event, uint32_t *const p_event_len)
 Decodes ble_gattc_evt_char_vals_read_rsp event. More...
 
uint32_t ble_gattc_evt_desc_disc_rsp_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_evt_t *const p_event, uint32_t *const p_event_len)
 Decodes ble_gattc_evt_desc_disc_rsp event. More...
 
uint32_t ble_gattc_evt_hvx_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_evt_t *const p_event, uint32_t *const p_event_len)
 Decodes ble_gattc_evt_hvx event. More...
 
uint32_t ble_gattc_evt_prim_srvc_disc_rsp_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_evt_t *const p_event, uint32_t *const p_event_len)
 Decodes ble_gattc_evt_prim_srvc_disc_rsp event. More...
 
uint32_t ble_gattc_evt_read_rsp_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_evt_t *const p_event, uint32_t *const p_event_len)
 Decodes ble_gattc_evt_read_rsp event. More...
 
uint32_t ble_gattc_evt_rel_disc_rsp_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_evt_t *const p_event, uint32_t *const p_event_len)
 Decodes ble_gattc_evt_rel_disc_rsp_dec event. More...
 
uint32_t ble_gattc_evt_timeout_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_evt_t *const p_event, uint32_t *const p_event_len)
 Decodes ble_gattc_evt_timeout event. More...
 
uint32_t ble_gattc_evt_write_rsp_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_evt_t *const p_event, uint32_t *const p_event_len)
 Decodes ble_gattc_evt_write_rsp event. More...
 
uint32_t ble_gattc_evt_attr_info_disc_rsp_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_evt_t *const p_event, uint32_t *const p_event_len)
 Decodes ble_gattc_evt_attr_info_disc_rsp event. More...
 
uint32_t ble_gattc_evt_exchange_mtu_rsp_dec (uint8_t const *const p_buf, uint32_t packet_len, ble_evt_t *const p_event, uint32_t *const p_event_len)
 Decodes ble_gattc_evt_exchange_mtu_rsp event. More...
 

Detailed Description

GATTC Application event decoders.

Function Documentation

uint32_t ble_gattc_evt_attr_info_disc_rsp_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_evt_t *const  p_event,
uint32_t *const  p_event_len 
)

Decodes ble_gattc_evt_attr_info_disc_rsp event.

If p_event is null, the required length of p_event is returned in p_event_len.

Parameters
[in]p_bufPointer to the beginning of an event packet.
[in]packet_lenLength (in bytes) of the event packet.
[in,out]p_eventPointer to a ble_evt_t buffer where the decoded event will be stored. If NULL, required length will be returned in p_event_len.
[in,out]p_event_lenin: Size (in bytes) of p_event buffer. out: Length of decoded contents of p_event.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_DATA_SIZEDecoding failure. Length of p_event is too small to hold decoded event.
uint32_t ble_gattc_evt_char_disc_rsp_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_evt_t *const  p_event,
uint32_t *const  p_event_len 
)

Decodes ble_gattc_evt_char_disc_rsp event.

If p_event is null, the required length of p_event is returned in p_event_len.

Parameters
[in]p_bufPointer to the beginning of an event packet.
[in]packet_lenLength (in bytes) of the event packet.
[in,out]p_eventPointer to a ble_evt_t buffer where the decoded event will be stored. If NULL, required length will be returned in p_event_len.
[in,out]p_event_lenin: Size (in bytes) of p_event buffer. out: Length of decoded contents of p_event.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_DATA_SIZEDecoding failure. Length of p_event is too small to hold decoded event.
uint32_t ble_gattc_evt_char_val_by_uuid_read_rsp_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_evt_t *const  p_event,
uint32_t *const  p_event_len 
)

Decodes ble_gattc_evt_char_val_by_uuid_read_rsp event.

If p_event is null, the required length of p_event is returned in p_event_len.

Parameters
[in]p_bufPointer to the beginning of an event packet.
[in]packet_lenLength (in bytes) of the event packet.
[in,out]p_eventPointer to a ble_evt_t buffer where the decoded event will be stored. If NULL, required length will be returned in p_event_len.
[in,out]p_event_lenin: Size (in bytes) of p_event buffer. out: Length of decoded contents of p_event.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_DATA_SIZEDecoding failure. Length of p_event is too small to hold decoded event.
uint32_t ble_gattc_evt_char_vals_read_rsp_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_evt_t *const  p_event,
uint32_t *const  p_event_len 
)

Decodes ble_gattc_evt_char_vals_read_rsp event.

If p_event is null, the required length of p_event is returned in p_event_len.

Parameters
[in]p_bufPointer to the beginning of an event packet.
[in]packet_lenLength (in bytes) of the event packet.
[in,out]p_eventPointer to a ble_evt_t buffer where the decoded event will be stored. If NULL, required length will be returned in p_event_len.
[in,out]p_event_lenin: Size (in bytes) of p_event buffer. out: Length of decoded contents of p_event.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_DATA_SIZEDecoding failure. Length of p_event is too small to hold decoded event.
uint32_t ble_gattc_evt_desc_disc_rsp_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_evt_t *const  p_event,
uint32_t *const  p_event_len 
)

Decodes ble_gattc_evt_desc_disc_rsp event.

If p_event is null, the required length of p_event is returned in p_event_len.

Parameters
[in]p_bufPointer to the beginning of an event packet.
[in]packet_lenLength (in bytes) of the event packet.
[in,out]p_eventPointer to a ble_evt_t buffer where the decoded event will be stored. If NULL, required length will be returned in p_event_len.
[in,out]p_event_lenin: Size (in bytes) of p_event buffer. out: Length of decoded contents of p_event.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_DATA_SIZEDecoding failure. Length of p_event is too small to hold decoded event.
uint32_t ble_gattc_evt_exchange_mtu_rsp_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_evt_t *const  p_event,
uint32_t *const  p_event_len 
)

Decodes ble_gattc_evt_exchange_mtu_rsp event.

If p_event is null, the required length of p_event is returned in p_event_len.

Parameters
[in]p_bufPointer to the beginning of an event packet.
[in]packet_lenLength (in bytes) of the event packet.
[in,out]p_eventPointer to a ble_evt_t buffer where the decoded event will be stored. If NULL, required length will be returned in p_event_len.
[in,out]p_event_lenin: Size (in bytes) of p_event buffer. out: Length of decoded contents of p_event.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_DATA_SIZEDecoding failure. Length of p_event is too small to hold decoded event.
uint32_t ble_gattc_evt_hvx_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_evt_t *const  p_event,
uint32_t *const  p_event_len 
)

Decodes ble_gattc_evt_hvx event.

If p_event is null, the required length of p_event is returned in p_event_len.

Parameters
[in]p_bufPointer to the beginning of an event packet.
[in]packet_lenLength (in bytes) of the event packet.
[in,out]p_eventPointer to a ble_evt_t buffer where the decoded event will be stored. If NULL, required length will be returned in p_event_len.
[in,out]p_event_lenin: Size (in bytes) of p_event buffer. out: Length of decoded contents of p_event.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_DATA_SIZEDecoding failure. Length of p_event is too small to hold decoded event.
uint32_t ble_gattc_evt_prim_srvc_disc_rsp_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_evt_t *const  p_event,
uint32_t *const  p_event_len 
)

Decodes ble_gattc_evt_prim_srvc_disc_rsp event.

If p_event is null, the required length of p_event is returned in p_event_len.

Parameters
[in]p_bufPointer to the beginning of an event packet.
[in]packet_lenLength (in bytes) of the event packet.
[in,out]p_eventPointer to a ble_evt_t buffer where the decoded event will be stored. If NULL, required length will be returned in p_event_len.
[in,out]p_event_lenin: Size (in bytes) of p_event buffer. out: Length of decoded contents of p_event.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_DATA_SIZEDecoding failure. Length of p_event is too small to hold decoded event.
uint32_t ble_gattc_evt_read_rsp_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_evt_t *const  p_event,
uint32_t *const  p_event_len 
)

Decodes ble_gattc_evt_read_rsp event.

If p_event is null, the required length of p_event is returned in p_event_len.

Parameters
[in]p_bufPointer to the beginning of an event packet.
[in]packet_lenLength (in bytes) of the event packet.
[in,out]p_eventPointer to a ble_evt_t buffer where the decoded event will be stored. If NULL, required length will be returned in p_event_len.
[in,out]p_event_lenin: Size (in bytes) of p_event buffer. out: Length of decoded contents of p_event.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_DATA_SIZEDecoding failure. Length of p_event is too small to hold decoded event.
uint32_t ble_gattc_evt_rel_disc_rsp_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_evt_t *const  p_event,
uint32_t *const  p_event_len 
)

Decodes ble_gattc_evt_rel_disc_rsp_dec event.

If p_event is null, the required length of p_event is returned in p_event_len.

Parameters
[in]p_bufPointer to the beginning of an event packet.
[in]packet_lenLength (in bytes) of the event packet.
[in,out]p_eventPointer to a ble_evt_t buffer where the decoded event will be stored. If NULL, required length will be returned in p_event_len.
[in,out]p_event_lenin: Size (in bytes) of p_event buffer. out: Length of decoded contents of p_event.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_DATA_SIZEDecoding failure. Length of p_event is too small to hold decoded event.
uint32_t ble_gattc_evt_timeout_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_evt_t *const  p_event,
uint32_t *const  p_event_len 
)

Decodes ble_gattc_evt_timeout event.

If p_event is null, the required length of p_event is returned in p_event_len.

Parameters
[in]p_bufPointer to the beginning of an event packet.
[in]packet_lenLength (in bytes) of the event packet.
[in,out]p_eventPointer to a ble_evt_t buffer where the decoded event will be stored. If NULL, required length will be returned in p_event_len.
[in,out]p_event_lenin: Size (in bytes) of p_event buffer. out: Length of decoded contents of p_event.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_DATA_SIZEDecoding failure. Length of p_event is too small to hold decoded event.
uint32_t ble_gattc_evt_write_rsp_dec ( uint8_t const *const  p_buf,
uint32_t  packet_len,
ble_evt_t *const  p_event,
uint32_t *const  p_event_len 
)

Decodes ble_gattc_evt_write_rsp event.

If p_event is null, the required length of p_event is returned in p_event_len.

Parameters
[in]p_bufPointer to the beginning of an event packet.
[in]packet_lenLength (in bytes) of the event packet.
[in,out]p_eventPointer to a ble_evt_t buffer where the decoded event will be stored. If NULL, required length will be returned in p_event_len.
[in,out]p_event_lenin: Size (in bytes) of p_event buffer. out: Length of decoded contents of p_event.
Return values
NRF_SUCCESSDecoding success.
NRF_ERROR_NULLDecoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHDecoding failure. Incorrect buffer length.
NRF_ERROR_DATA_SIZEDecoding failure. Length of p_event is too small to hold decoded event.

Documentation feedback | Developer Zone | Subscribe | Updated