btstack_defines: complete HCI_EVENT_FLUSH_OCCURRED

This commit is contained in:
Matthias Ringwald 2022-02-09 11:44:49 +01:00
parent b96d60a610
commit f9b19c4c3e
2 changed files with 14 additions and 0 deletions

View File

@ -377,6 +377,10 @@ typedef uint8_t sm_key_t[16];
*/ */
#define HCI_EVENT_HARDWARE_ERROR 0x10u #define HCI_EVENT_HARDWARE_ERROR 0x10u
/**
* @format 1H
* @param handle
*/
#define HCI_EVENT_FLUSH_OCCURRED 0x11u #define HCI_EVENT_FLUSH_OCCURRED 0x11u
/** /**

View File

@ -598,6 +598,16 @@ static inline uint8_t hci_event_hardware_error_get_hardware_code(const uint8_t *
return event[2]; return event[2];
} }
/**
* @brief Get field handle from event HCI_EVENT_FLUSH_OCCURRED
* @param event packet
* @return handle
* @note: btstack_type 1
*/
static inline uint8_t hci_event_flush_occurred_get_handle(const uint8_t * event){
return event[2];
}
/** /**
* @brief Get field status from event HCI_EVENT_ROLE_CHANGE * @brief Get field status from event HCI_EVENT_ROLE_CHANGE
* @param event packet * @param event packet