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
Parameter | Description |
---|---|
[in] leL2capId | L2cap instance. |
[in] credits | Credit number. |
Return values
Return value | Description |
---|---|
MBA_RES_SUCCESS | Successfully send credit to peer device. |
MBA_RES_OOM | Internal memory allocation failure. |
MBA_RES_NO_RESOURCE | No Transmit buffers available for sending L2cap data. |
MBA_RES_FAIL | Fail to send credit to peer device by error L2cap instance. |