[][src]Function openthread_sys::otPlatBleL2capSduSend

pub unsafe extern "C" fn otPlatBleL2capSduSend(
    aInstance: *mut otInstance,
    aLocalCid: u16,
    aPeerCid: u16,
    aPacket: *mut otBleRadioPacket
) -> otError

Sends an SDU on an L2CAP channel.

@note Platform layer is responsible for credits management and segmentation (MPS).

@param[in] aInstance The OpenThread instance structure. @param[in] aLocalCid The local channel endpoint ID value. @param[in] aPeerCid The peer channel endpoint ID value. @param[in] aPacket A pointer to the packet containing SDU.

@retval ::OT_ERROR_NONE LE Credit Based Connection Request has been sent. @retval ::OT_ERROR_INVALID_STATE BLE Device is in invalid state e.g. not in the GAP connection. @retval ::OT_ERROR_INVALID_ARGS Invalid parameters has been supplied. @retval ::OT_ERROR_NO_BUFS No available internal buffer found.