mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
add LE to event generator
This commit is contained in:
parent
3ee82ab15a
commit
8290d1f938
@ -93,6 +93,14 @@ static inline uint8_t hci_event_hfp_meta_get_subevent_code(const uint8_t * event
|
||||
static inline uint8_t hci_event_ancs_meta_get_subevent_code(const uint8_t * event){
|
||||
return event[2];
|
||||
}
|
||||
/***
|
||||
* @brief Get subevent code for le event
|
||||
* @param event packet
|
||||
* @return subevent_code
|
||||
*/
|
||||
static inline uint8_t hci_event_le_meta_get_subevent_code(const uint8_t * event){
|
||||
return event[2];
|
||||
}
|
||||
/**
|
||||
* @brief Get field status from event hci_event_inquiry_complete
|
||||
* @param event packet
|
||||
@ -856,6 +864,7 @@ static inline hci_con_handle_t hci_event_encryption_key_refresh_complete_get_han
|
||||
return little_endian_read_16(event, 3);
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @brief Get field state from event btstack_event_state
|
||||
* @param event packet
|
||||
|
@ -230,7 +230,7 @@ def create_events(events):
|
||||
fout.write(copyright)
|
||||
fout.write(hfile_header_begin)
|
||||
|
||||
meta_events = ['HSP', 'HFP', 'ANCS'];
|
||||
meta_events = ['HSP', 'HFP', 'ANCS', 'LE'];
|
||||
for meta_event in meta_events:
|
||||
fout.write(meta_event_template.format(meta_event=meta_event.lower()))
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user