mirror of
https://github.com/espressif/esp-idf.git
synced 2025-07-30 18:57:19 +02:00
components/bt: Add a detailed description for the user to distinguish the function of the query buffer api.
This commit is contained in:
@ -53,7 +53,7 @@ extern UINT16 L2CA_GetFreePktBufferNum_LE(void);
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief This function is called to get currently sendable packets number on controller,
|
* @brief This function is called to get currently sendable packets number on controller,
|
||||||
* the function is called only in BLE running core now.
|
* the function is called only in BLE running core and single connection now.
|
||||||
*
|
*
|
||||||
* @return
|
* @return
|
||||||
* sendable packets number on controller
|
* sendable packets number on controller
|
||||||
@ -65,7 +65,16 @@ uint16_t esp_ble_get_sendable_packets_num (void)
|
|||||||
return L2CA_GetFreePktBufferNum_LE();
|
return L2CA_GetFreePktBufferNum_LE();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief This function is used to query the number of available buffers for the current connection.
|
||||||
|
* When you need to query the current available buffer number, it is recommended to use this API.
|
||||||
|
* @param[in] conn_id: current connection id.
|
||||||
|
*
|
||||||
|
* @return
|
||||||
|
* Number of available buffers for the current connection
|
||||||
|
*
|
||||||
|
*/
|
||||||
|
|
||||||
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)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user