nRF51 SDK - S110 SoftDevice
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Groups Pages
GATTS Connectivity event encoders

GATTS Connectivity event encoders. More...

Functions

uint32_t ble_gatts_evt_hvc_enc (ble_evt_t const *const p_event, uint32_t event_len, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes BLE_GATTS_EVT_HVC event. More...
 
uint32_t ble_gatts_evt_rw_authorize_request_enc (ble_evt_t const *const p_event, uint32_t event_len, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST event. More...
 
uint32_t ble_gatts_evt_sc_confirm_enc (ble_evt_t const *const p_event, uint32_t event_len, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes BLE_GATTS_EVT_SC_CONFIRM event. More...
 
uint32_t ble_gatts_evt_sys_attr_missing_enc (ble_evt_t const *const p_event, uint32_t event_len, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes BLE_GATTS_EVT_SYS_ATTR_MISSING event. More...
 
uint32_t ble_gatts_evt_timeout_enc (ble_evt_t const *const p_event, uint32_t event_len, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes BLE_GATTS_EVT_TIMEOUT event. More...
 
uint32_t ble_gatts_evt_write_enc (ble_evt_t const *const p_event, uint32_t event_len, uint8_t *const p_buf, uint32_t *const p_buf_len)
 Encodes BLE_GATTS_EVT_WRITE event. More...
 

Detailed Description

GATTS Connectivity event encoders.

Function Documentation

uint32_t ble_gatts_evt_hvc_enc ( ble_evt_t const *const  p_event,
uint32_t  event_len,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes BLE_GATTS_EVT_HVC event.

See Also
0x53 - BLE_GATTS_EVT_HVC for packet format.
Parameters
[in]p_eventPointer to the ble_evt_t buffer that shall be encoded.
[in]event_lenSize (in bytes) of p_event buffer.
[out]p_bufPointer to the beginning of a buffer for encoded event packet.
[in,out]p_buf_lenin: Size (in bytes) of p_buf buffer. out: Length of encoded contents in p_buf.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gatts_evt_rw_authorize_request_enc ( ble_evt_t const *const  p_event,
uint32_t  event_len,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST event.

See Also
0x51 - BLE_GATTS_EVT_RW_AUTHORIZE_REQUEST for packet format.
Parameters
[in]p_eventPointer to the ble_evt_t buffer that shall be encoded.
[in]event_lenSize (in bytes) of p_event buffer.
[out]p_bufPointer to the beginning of a buffer for encoded event packet.
[in,out]p_buf_lenin: Size (in bytes) of p_buf buffer. out: Length of encoded contents in p_buf.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gatts_evt_sc_confirm_enc ( ble_evt_t const *const  p_event,
uint32_t  event_len,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes BLE_GATTS_EVT_SC_CONFIRM event.

See Also
0x54 - BLE_GATTS_EVT_SC_CONFIRM for packet format.
Parameters
[in]p_eventPointer to the ble_evt_t buffer that shall be encoded.
[in]event_lenSize (in bytes) of p_event buffer.
[out]p_bufPointer to the beginning of a buffer for encoded event packet.
[in,out]p_buf_lenin: Size (in bytes) of p_buf buffer. out: Length of encoded contents in p_buf.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gatts_evt_sys_attr_missing_enc ( ble_evt_t const *const  p_event,
uint32_t  event_len,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes BLE_GATTS_EVT_SYS_ATTR_MISSING event.

See Also
0x52 - BLE_GATTS_EVT_SYS_ATTR_MISSING for packet format.
Parameters
[in]p_eventPointer to the ble_evt_t buffer that shall be encoded.
[in]event_lenSize (in bytes) of p_event buffer.
[out]p_bufPointer to the beginning of a buffer for encoded event packet.
[in,out]p_buf_lenin: Size (in bytes) of p_buf buffer. out: Length of encoded contents in p_buf.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gatts_evt_timeout_enc ( ble_evt_t const *const  p_event,
uint32_t  event_len,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes BLE_GATTS_EVT_TIMEOUT event.

See Also
0x55 - BLE_GATTS_EVT_TIMEOUT for packet format.
Parameters
[in]p_eventPointer to the ble_evt_t buffer that shall be encoded.
[in]event_lenSize (in bytes) of p_event buffer.
[out]p_bufPointer to the beginning of a buffer for encoded event packet.
[in,out]p_buf_lenin: Size (in bytes) of p_buf buffer. out: Length of encoded contents in p_buf.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.
uint32_t ble_gatts_evt_write_enc ( ble_evt_t const *const  p_event,
uint32_t  event_len,
uint8_t *const  p_buf,
uint32_t *const  p_buf_len 
)

Encodes BLE_GATTS_EVT_WRITE event.

See Also
0x50 - BLE_GATTS_EVT_WRITE for packet format.
Parameters
[in]p_eventPointer to the ble_evt_t buffer that shall be encoded.
[in]event_lenSize (in bytes) of p_event buffer.
[out]p_bufPointer to the beginning of a buffer for encoded event packet.
[in,out]p_buf_lenin: Size (in bytes) of p_buf buffer. out: Length of encoded contents in p_buf.
Return values
NRF_SUCCESSEncoding success.
NRF_ERROR_NULLEncoding failure. NULL pointer supplied.
NRF_ERROR_INVALID_LENGTHEncoding failure. Incorrect buffer length.