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

L2CAP Connectivity event encoders. More...

Functions

uint32_t ble_l2cap_evt_rx_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_l2cap_evt_rx event. More...
 

Detailed Description

L2CAP Connectivity event encoders.

Function Documentation

uint32_t ble_l2cap_evt_rx_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_l2cap_evt_rx event.

See Also
0x70 - BLE_L2CAP_EVT_RX 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.