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...
|
|
| uint32_t | ble_gatts_evt_exchange_mtu_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_EXCHANGE_MTU_REQUEST
event.
More...
|
|
Detailed Description
GATTS Connectivity event encoders.
Function Documentation
| uint32_t ble_gatts_evt_exchange_mtu_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_EXCHANGE_MTU_REQUEST event.
- Parameters
-
[in] p_event Pointer to the ble_evt_t buffer that shall be encoded. [in] event_len Size (in bytes) of p_eventbuffer.[out] p_buf Pointer to the beginning of a buffer for encoded event packet. [in,out] p_buf_len in:Size (in bytes) ofp_bufbuffer.out:Length of encoded contents inp_buf.
- 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_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.
- Parameters
-
[in] p_event Pointer to the ble_evt_t buffer that shall be encoded. [in] event_len Size (in bytes) of p_eventbuffer.[out] p_buf Pointer to the beginning of a buffer for encoded event packet. [in,out] p_buf_len in:Size (in bytes) ofp_bufbuffer.out:Length of encoded contents inp_buf.
- 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_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.
- Parameters
-
[in] p_event Pointer to the ble_evt_t buffer that shall be encoded. [in] event_len Size (in bytes) of p_eventbuffer.[out] p_buf Pointer to the beginning of a buffer for encoded event packet. [in,out] p_buf_len in:Size (in bytes) ofp_bufbuffer.out:Length of encoded contents inp_buf.
- 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_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.
- Parameters
-
[in] p_event Pointer to the ble_evt_t buffer that shall be encoded. [in] event_len Size (in bytes) of p_eventbuffer.[out] p_buf Pointer to the beginning of a buffer for encoded event packet. [in,out] p_buf_len in:Size (in bytes) ofp_bufbuffer.out:Length of encoded contents inp_buf.
- 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_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.
- Parameters
-
[in] p_event Pointer to the ble_evt_t buffer that shall be encoded. [in] event_len Size (in bytes) of p_eventbuffer.[out] p_buf Pointer to the beginning of a buffer for encoded event packet. [in,out] p_buf_len in:Size (in bytes) ofp_bufbuffer.out:Length of encoded contents inp_buf.
- 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_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.
- Parameters
-
[in] p_event Pointer to the ble_evt_t buffer that shall be encoded. [in] event_len Size (in bytes) of p_eventbuffer.[out] p_buf Pointer to the beginning of a buffer for encoded event packet. [in,out] p_buf_len in:Size (in bytes) ofp_bufbuffer.out:Length of encoded contents inp_buf.
- 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_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.
- Parameters
-
[in] p_event Pointer to the ble_evt_t buffer that shall be encoded. [in] event_len Size (in bytes) of p_eventbuffer.[out] p_buf Pointer to the beginning of a buffer for encoded event packet. [in,out] p_buf_len in:Size (in bytes) ofp_bufbuffer.out:Length of encoded contents inp_buf.
- Return values
-
NRF_SUCCESS Encoding success. NRF_ERROR_NULL Encoding failure. NULL pointer supplied. NRF_ERROR_INVALID_LENGTH Encoding failure. Incorrect buffer length.