[][src]Function openthread_sys::otPlatBleL2capConnectionRequest

pub unsafe extern "C" fn otPlatBleL2capConnectionRequest(
    aInstance: *mut otInstance,
    aPsm: u16,
    aMtu: u16,
    aCid: *mut u16
) -> otError

Sends LE Credit Based Connection Request.

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

@param[in] aInstance The OpenThread instance structure. @param[in] aPsm The value of LE Protocol/Service Multiplexer. @param[in] aMtu The value specifies the maximum SDU size (in octets) that the L2CAP layer entity sending the LE Credit Based Connection Request can receive on this channel. @param[out] aCid The source CID represents a channel endpoint on the device.

@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.