btstack_defines: add GAP_SUBEVENT_BIG_CREATED and GAP_SUBEVENT_BIG_TERMINATED

This commit is contained in:
Matthias Ringwald 2022-06-30 19:14:51 +02:00
parent 533ea81feb
commit 185a9db1ee
2 changed files with 65 additions and 0 deletions

View File

@ -1875,6 +1875,23 @@ typedef uint8_t sm_key_t[16];
*/
#define GAP_SUBEVENT_ADVERTISING_SET_REMOVED 0x01u
// subevent_code, status, big_handle, num_bis, bis_con_handles[]
/**
* @format 1111C
* @param subevent_code
* @param status
* @param big_handle
* @param num_bis
* @param bis_con_handles
*/
#define GAP_SUBEVENT_BIG_CREATED 0x02u
/**
* @format 11
* @param subevent_code
* @param big_handle
*/
#define GAP_SUBEVENT_BIG_TERMINATED 0x03u
/** HSP Subevent */

View File

@ -5549,6 +5549,54 @@ static inline uint8_t gap_subevent_advertising_set_removed_get_advertisement_han
return event[3];
}
/**
* @brief Get field status from event GAP_SUBEVENT_BIG_CREATED
* @param event packet
* @return status
* @note: btstack_type 1
*/
static inline uint8_t gap_subevent_big_created_get_status(const uint8_t * event){
return event[3];
}
/**
* @brief Get field big_handle from event GAP_SUBEVENT_BIG_CREATED
* @param event packet
* @return big_handle
* @note: btstack_type 1
*/
static inline uint8_t gap_subevent_big_created_get_big_handle(const uint8_t * event){
return event[4];
}
/**
* @brief Get field num_bis from event GAP_SUBEVENT_BIG_CREATED
* @param event packet
* @return num_bis
* @note: btstack_type 1
*/
static inline uint8_t gap_subevent_big_created_get_num_bis(const uint8_t * event){
return event[5];
}
/**
* @brief Get element of array field bis_con_handles from event GAP_SUBEVENT_BIG_CREATED
* @param event packet
* @param index
* @return bis_con_handles
* @note: btstack_type C
*/
static inline uint16_t gap_subevent_big_created_get_bis_con_handles(const uint8_t * event, uint8_t index){
return little_endian_read_16(event, 6 + (2 * index));
}
/**
* @brief Get field big_handle from event GAP_SUBEVENT_BIG_TERMINATED
* @param event packet
* @return big_handle
* @note: btstack_type 1
*/
static inline uint8_t gap_subevent_big_terminated_get_big_handle(const uint8_t * event){
return event[3];
}
/**
* @brief Get field acl_handle from event HSP_SUBEVENT_RFCOMM_CONNECTION_COMPLETE
* @param event packet