hci: added hci_get_state()

This commit is contained in:
Matthias Ringwald 2017-07-04 17:30:27 +02:00
parent b7832c7f15
commit ec111c8bcd
2 changed files with 11 additions and 0 deletions

View File

@ -4367,6 +4367,12 @@ int hci_get_sco_packet_length(void){
}
#endif
HCI_STATE hci_get_state(void){
return hci_stack->state;
}
/**
* @brief Set callback for Bluetooth Hardware Error
*/

View File

@ -1109,6 +1109,11 @@ uint16_t hci_get_manufacturer(void);
*/
void hci_disable_l2cap_timeout_check(void);
/**
* Get state
*/
HCI_STATE hci_get_state(void);
#if defined __cplusplus
}
#endif