GATTS Connectivity event encoders.
More...
|
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...
|
|
GATTS Connectivity event encoders.
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_event | Pointer to the ble_evt_t buffer that shall be encoded. |
[in] | event_len | Size (in bytes) of p_event buffer. |
[out] | p_buf | Pointer to the beginning of a buffer for encoded event packet. |
[in,out] | p_buf_len | in: Size (in bytes) of p_buf buffer. out: Length of encoded contents in p_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.
- See Also
- nrf51_gatts_evt_rw_authorize_request_encoding for packet format.
- Parameters
-
[in] | p_event | Pointer to the ble_evt_t buffer that shall be encoded. |
[in] | event_len | Size (in bytes) of p_event buffer. |
[out] | p_buf | Pointer to the beginning of a buffer for encoded event packet. |
[in,out] | p_buf_len | in: Size (in bytes) of p_buf buffer. out: Length of encoded contents in p_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.
- See Also
- 0x54 - BLE_GATTS_EVT_SC_CONFIRM for packet format.
- Parameters
-
[in] | p_event | Pointer to the ble_evt_t buffer that shall be encoded. |
[in] | event_len | Size (in bytes) of p_event buffer. |
[out] | p_buf | Pointer to the beginning of a buffer for encoded event packet. |
[in,out] | p_buf_len | in: Size (in bytes) of p_buf buffer. out: Length of encoded contents in p_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.
- See Also
- nrf51_gatts_evt_sys_attr_missing_encoding for packet format.
- Parameters
-
[in] | p_event | Pointer to the ble_evt_t buffer that shall be encoded. |
[in] | event_len | Size (in bytes) of p_event buffer. |
[out] | p_buf | Pointer to the beginning of a buffer for encoded event packet. |
[in,out] | p_buf_len | in: Size (in bytes) of p_buf buffer. out: Length of encoded contents in p_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.
- See Also
- 0x55 - BLE_GATTS_EVT_TIMEOUT for packet format.
- Parameters
-
[in] | p_event | Pointer to the ble_evt_t buffer that shall be encoded. |
[in] | event_len | Size (in bytes) of p_event buffer. |
[out] | p_buf | Pointer to the beginning of a buffer for encoded event packet. |
[in,out] | p_buf_len | in: Size (in bytes) of p_buf buffer. out: Length of encoded contents in p_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.
- See Also
- nrf51_ble_gatts_evt_write_encoding for packet format.
- Parameters
-
[in] | p_event | Pointer to the ble_evt_t buffer that shall be encoded. |
[in] | event_len | Size (in bytes) of p_event buffer. |
[out] | p_buf | Pointer to the beginning of a buffer for encoded event packet. |
[in,out] | p_buf_len | in: Size (in bytes) of p_buf buffer. out: Length of encoded contents in p_buf . |
- Return values
-
NRF_SUCCESS | Encoding success. |
NRF_ERROR_NULL | Encoding failure. NULL pointer supplied. |
NRF_ERROR_INVALID_LENGTH | Encoding failure. Incorrect buffer length. |