add hci_non_flushable_packet_boundary_flag_supported

This commit is contained in:
matthias.ringwald@gmail.com 2014-05-09 13:23:04 +00:00
parent 191bc172f7
commit 6ac9a97e5a
2 changed files with 9 additions and 4 deletions

View File

@ -484,19 +484,24 @@ uint16_t hci_max_acl_data_packet_length(void){
return hci_stack->acl_data_packet_length;
}
int hci_non_flushable_packet_boundary_flag_supported(void){
// No. 54, byte 6, bit 6
return (hci_stack->local_supported_features[6] & (1 << 6)) != 0;
}
int hci_ssp_supported(void){
// No 51, byte 6, bit 3
// No. 51, byte 6, bit 3
return (hci_stack->local_supported_features[6] & (1 << 3)) != 0;
}
int hci_classic_supported(void){
// No 37, byte 4, bit 5, = No BR/EDR Support
// No. 37, byte 4, bit 5, = No BR/EDR Support
return (hci_stack->local_supported_features[4] & (1 << 5)) == 0;
}
int hci_le_supported(void){
// No 37, byte 4, bit 6 = LE Supported (Controller)
#ifdef HAVE_BLE
// No. 37, byte 4, bit 6 = LE Supported (Controller)
return (hci_stack->local_supported_features[4] & (1 << 6)) != 0;
#else
return 0;

View File

@ -459,7 +459,7 @@ uint8_t hci_number_free_acl_slots(void);
int hci_authentication_active_for_handle(hci_con_handle_t handle);
uint16_t hci_max_acl_data_packet_length(void);
uint16_t hci_usable_acl_packet_types(void);
int hci_non_flushable_packet_boundary_flag_supported(void);
//
void hci_emit_state(void);
void hci_emit_connection_complete(hci_connection_t *conn, uint8_t status);