BLE_L2CAP_CbSendSdu

C

uint16_t BLE_L2CAP_CbSendSdu(uint8_t leL2capId, uint16_t length, uint8_t *p_payload);

Description

Sends an L2CAP SDU (Service Data Unit) over a credit-based connection channel.

Parameters

ParameterDescription
[in] leL2capIdThe L2CAP instance identifier.
[in] lengthThe length of the L2CAP SDU. See the maximum size definition BLE_L2CAP_MAX_SDU_SIZE.
[in] p_payloadPointer to the L2CAP SDU buffer.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully sent an L2CAP SDU.
MBA_RES_OOMInternal memory allocation failure occurred.
MBA_RES_NO_RESOURCENo transmit buffers available for sending L2CAP data.
MBA_RES_FAILFailed to send the SDU due to an L2CAP instance error.