[][src]Function openthread_sys::otPlatBleL2capConnectionResponse

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

Sends LE Credit Based Connection Response.

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

@param[in] aInstance The OpenThread instance structure. @param[in] aError The error value indicates the outcome of the connection request. @param[in] aMtu The value specifies the maximum SDU size (in octets) that the L2CAP layer entity sending the LE Credit Based Connection Response can receive on this channel. @param[out] aCid The source CID represents a channel endpoint on the device. If @p aResult value is different from @p OT_BLE_L2C_ERROR_NONE, this variable is unused and should be set to NULL.

@retval ::OT_ERROR_NONE LE Credit Based Connection Response 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.