provide access to size of acl buffers in Bluetooth module

This commit is contained in:
matthias.ringwald 2010-09-03 20:17:04 +00:00
parent 287d19b836
commit 5250fb9ea0
2 changed files with 5 additions and 0 deletions

View File

@ -195,6 +195,10 @@ uint8_t hci_number_free_acl_slots(){
return free_slots;
}
uint16_t hci_max_acl_data_packet_length(){
return hci_stack.acl_data_packet_length;
}
int hci_ready_to_send(hci_con_handle_t handle){
return hci_number_free_acl_slots() && hci_number_outgoing_packets(handle) < 2;
}

View File

@ -250,6 +250,7 @@ uint8_t hci_number_free_acl_slots();
int hci_ready_to_send(hci_con_handle_t handle);
int hci_authentication_active_for_handle(hci_con_handle_t handle);
void hci_drop_link_key_for_bd_addr(bd_addr_t *addr);
uint16_t hci_max_acl_data_packet_length();
//
void hci_emit_state();