mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-22 07:21:06 +00:00
l2cap: add l2cap_can_send_prepared_packet_now
This commit is contained in:
parent
7d00c19e81
commit
83e7cdd948
@ -240,6 +240,12 @@ int l2cap_can_send_packet_now(uint16_t local_cid){
|
||||
return hci_can_send_acl_packet_now(channel->handle);
|
||||
}
|
||||
|
||||
int l2cap_can_send_prepared_packet_now(uint16_t local_cid){
|
||||
l2cap_channel_t *channel = l2cap_get_channel_for_local_cid(local_cid);
|
||||
if (!channel) return 0;
|
||||
return hci_can_send_prepared_acl_packet_now(channel->handle);
|
||||
}
|
||||
|
||||
// @deprecated
|
||||
int l2cap_can_send_connectionless_packet_now(void){
|
||||
// TODO provide real handle
|
||||
|
@ -201,6 +201,7 @@ typedef struct l2cap_signaling_response {
|
||||
} l2cap_signaling_response_t;
|
||||
|
||||
|
||||
|
||||
int l2cap_can_send_fixed_channel_packet_now(uint16_t handle);
|
||||
|
||||
// @deprecated use l2cap_can_send_fixed_channel_packet_now instead
|
||||
@ -261,7 +262,9 @@ void l2cap_decline_connection_internal(uint16_t local_cid, uint8_t reason);
|
||||
/**
|
||||
* @brief Non-blocking UART write
|
||||
*/
|
||||
int l2cap_can_send_packet_now(uint16_t local_cid);
|
||||
int l2cap_can_send_packet_now(uint16_t local_cid);
|
||||
int l2cap_can_send_prepared_packet_now(uint16_t local_cid);
|
||||
|
||||
int l2cap_reserve_packet_buffer(void);
|
||||
void l2cap_release_packet_buffer(void);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user