mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-28 06:39:49 +00:00
make l2cap_max_mtu public
This commit is contained in:
parent
2985cb8479
commit
4aa9e837c6
@ -405,7 +405,7 @@ void l2cap_run(void){
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
static uint16_t l2cap_max_mtu(void){
|
uint16_t l2cap_max_mtu(void){
|
||||||
return hci_max_acl_data_packet_length() - L2CAP_HEADER_SIZE;
|
return hci_max_acl_data_packet_length() - L2CAP_HEADER_SIZE;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -70,10 +70,12 @@ void l2cap_create_channel_internal(void * connection, btstack_packet_handler_t p
|
|||||||
void l2cap_disconnect_internal(uint16_t local_cid, uint8_t reason);
|
void l2cap_disconnect_internal(uint16_t local_cid, uint8_t reason);
|
||||||
int l2cap_send_internal(uint16_t local_cid, uint8_t *data, uint16_t len);
|
int l2cap_send_internal(uint16_t local_cid, uint8_t *data, uint16_t len);
|
||||||
uint16_t l2cap_get_remote_mtu_for_local_cid(uint16_t local_cid);
|
uint16_t l2cap_get_remote_mtu_for_local_cid(uint16_t local_cid);
|
||||||
|
uint16_t l2cap_max_mtu(void);
|
||||||
|
|
||||||
void l2cap_block_new_credits(uint8_t blocked);
|
void l2cap_block_new_credits(uint8_t blocked);
|
||||||
int l2cap_can_send_packet_now(uint16_t local_cid); // non-blocking UART write
|
int l2cap_can_send_packet_now(uint16_t local_cid); // non-blocking UART write
|
||||||
|
|
||||||
|
|
||||||
// get outgoing buffer and prepare data
|
// get outgoing buffer and prepare data
|
||||||
uint8_t *l2cap_get_outgoing_buffer(void);
|
uint8_t *l2cap_get_outgoing_buffer(void);
|
||||||
int l2cap_send_prepared(uint16_t local_cid, uint16_t len);
|
int l2cap_send_prepared(uint16_t local_cid, uint16_t len);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user