esp_idf_sys

Function ble_l2cap_recv_ready

Source
pub unsafe extern "C" fn ble_l2cap_recv_ready(
    chan: *mut ble_l2cap_chan,
    sdu_rx: *mut os_mbuf,
) -> c_int
Expand description

@brief Check if the L2CAP channel is ready to receive an SDU.

This function checks if the specified L2CAP channel is ready to receive an SDU (Service Data Unit). It can be used to determine if the channel is in a state where it can accept incoming data.

@param chan Pointer to the L2CAP channel structure to check. @param sdu_rx Pointer to the os_mbuf structure to receive the incoming SDU.

@return 0 if the channel is ready to receive an SDU; A non-zero value on failure.