add LE to event generator

This commit is contained in:
Milanka Ringwald 2016-04-01 16:22:52 +02:00
parent 3ee82ab15a
commit 8290d1f938
2 changed files with 10 additions and 1 deletions

View File

@ -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

View File

@ -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()))