hci: provide hci_is_le_connection_type

This commit is contained in:
Matthias Ringwald 2023-12-19 17:25:19 +01:00
parent e6d334abdc
commit 8e97a820aa
2 changed files with 7 additions and 1 deletions

View File

@ -604,7 +604,7 @@ void gap_link_key_iterator_done(btstack_link_key_iterator_t * it){
}
#endif
static bool hci_is_le_connection_type(bd_addr_type_t address_type){
bool hci_is_le_connection_type(bd_addr_type_t address_type){
switch (address_type){
case BD_ADDR_TYPE_LE_PUBLIC:
case BD_ADDR_TYPE_LE_RANDOM:

View File

@ -1562,6 +1562,12 @@ bool hci_classic_supported(void);
*/
bool hci_le_supported(void);
/** @brief Check if address type corresponds to LE connection
* @bparam address_type
* @erturn true if LE connection
*/
bool hci_is_le_connection_type(bd_addr_type_t address_type);
/* API_END */