1.2.2.1.3.4.1 BLE_L2CAP_CbAddCredits

C

uint16_t BLE_L2CAP_CbAddCredits(uint8_t leL2capId, uint16_t credits);

Description

Send a L2cap flow control credit to peer device.

Note

Credit should be returned to peer device after receiving data. Otherwise no more data could be sent by peer device.

Parameters

ParameterDescription
[in] leL2capIdL2cap instance.
[in] creditsCredit number.

Return values

Return valueDescription
MBA_RES_SUCCESSSuccessfully send credit to peer device.
MBA_RES_OOMInternal memory allocation failure.
MBA_RES_NO_RESOURCENo Transmit buffers available for sending L2cap data.
MBA_RES_FAILFail to send credit to peer device by error L2cap instance.