Update the limited of function esp_ble_get_sendable_packets_num.
This commit is contained in:
parent
e87a42f46c
commit
c453c2b919
1 changed files with 10 additions and 0 deletions
|
@ -51,11 +51,21 @@ esp_err_t esp_ble_gatt_set_local_mtu (uint16_t mtu)
|
||||||
#if (BLE_INCLUDED == TRUE)
|
#if (BLE_INCLUDED == TRUE)
|
||||||
extern UINT16 L2CA_GetFreePktBufferNum_LE(void);
|
extern UINT16 L2CA_GetFreePktBufferNum_LE(void);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief This function is called to get currently sendable packets number on controller,
|
||||||
|
* the function is called only in BLE running core now.
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
* sendable packets number on controller
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
uint16_t esp_ble_get_sendable_packets_num (void)
|
uint16_t esp_ble_get_sendable_packets_num (void)
|
||||||
{
|
{
|
||||||
return L2CA_GetFreePktBufferNum_LE();
|
return L2CA_GetFreePktBufferNum_LE();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
extern UINT16 L2CA_GetCurFreePktBufferNum_LE(UINT16 conn_id);
|
extern UINT16 L2CA_GetCurFreePktBufferNum_LE(UINT16 conn_id);
|
||||||
uint16_t esp_ble_get_cur_sendable_packets_num (uint16_t connid)
|
uint16_t esp_ble_get_cur_sendable_packets_num (uint16_t connid)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue