btstack_defines: fix BTSTACK_EVENT_SCAN_MODE_CHANGED

This commit is contained in:
Matthias Ringwald 2022-06-18 18:51:43 +02:00
parent 71fd255d61
commit 4321a5df56
2 changed files with 10 additions and 1 deletions

View File

@ -1002,7 +1002,7 @@ typedef uint8_t sm_key_t[16];
#define BTSTACK_EVENT_POWERON_FAILED 0x62u
/**
* @format 1
* @format 11
* @param discoverable
* @param connectable
*/

View File

@ -1467,6 +1467,15 @@ static inline uint8_t btstack_event_nr_connections_changed_get_number_connection
static inline uint8_t btstack_event_scan_mode_changed_get_discoverable(const uint8_t * event){
return event[2];
}
/**
* @brief Get field connectable from event BTSTACK_EVENT_SCAN_MODE_CHANGED
* @param event packet
* @return connectable
* @note: btstack_type 1
*/
static inline uint8_t btstack_event_scan_mode_changed_get_connectable(const uint8_t * event){
return event[3];
}
/**
* @brief Get field active from event HCI_EVENT_TRANSPORT_SLEEP_MODE