btstack_event: update MICS server event names

# Conflicts:
#	src/btstack_defines.h
#	src/btstack_event.h
This commit is contained in:
Milanka Ringwald 2023-01-27 14:41:24 +01:00 committed by Matthias Ringwald
parent aae3cc0d78
commit e383e43550
2 changed files with 51 additions and 5 deletions

View File

@ -4056,7 +4056,7 @@ typedef uint8_t sm_key_t[16];
* @param con_handle
* @param state
*/
#define GATTSERVICE_SUBEVENT_LOCAL_MICS_MUTE 0x1Bu
#define GATTSERVICE_SUBEVENT_MICS_SERVER_LOCAL_MUTE 0x1Bu
/**
* @format 1H11
@ -4553,6 +4553,23 @@ typedef uint8_t sm_key_t[16];
*/
#define GATTSERVICE_SUBEVENT_BASS_SERVER_DISCONNECTED 0x71u
/**
* @format 1H1
* @param subevent_code
* @param con_handle
* @param status
*/
#define GATTSERVICE_SUBEVENT_MICS_SERVER_CONNECTED 0x72u
/**
* @format 1H
* @param subevent_code
* @param con_handle
*/
#define GATTSERVICE_SUBEVENT_MICS_SERVER_DISCONNECTED 0x73u
// MAP Meta Event Group
/**

View File

@ -12864,21 +12864,21 @@ static inline uint8_t gattservice_subevent_remote_mics_mute_get_state(const uint
}
/**
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_LOCAL_MICS_MUTE
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_MICS_SERVER_LOCAL_MUTE
* @param event packet
* @return con_handle
* @note: btstack_type H
*/
static inline hci_con_handle_t gattservice_subevent_local_mics_mute_get_con_handle(const uint8_t * event){
static inline hci_con_handle_t gattservice_subevent_mics_server_local_mute_get_con_handle(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/**
* @brief Get field state from event GATTSERVICE_SUBEVENT_LOCAL_MICS_MUTE
* @brief Get field state from event GATTSERVICE_SUBEVENT_MICS_SERVER_LOCAL_MUTE
* @param event packet
* @return state
* @note: btstack_type 1
*/
static inline uint8_t gattservice_subevent_local_mics_mute_get_state(const uint8_t * event){
static inline uint8_t gattservice_subevent_mics_server_local_mute_get_state(const uint8_t * event){
return event[5];
}
@ -14881,6 +14881,35 @@ static inline hci_con_handle_t gattservice_subevent_bass_server_disconnected_get
return little_endian_read_16(event, 3);
}
/**
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_MICS_SERVER_CONNECTED
* @param event packet
* @return con_handle
* @note: btstack_type H
*/
static inline hci_con_handle_t gattservice_subevent_mics_server_connected_get_con_handle(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/**
* @brief Get field status from event GATTSERVICE_SUBEVENT_MICS_SERVER_CONNECTED
* @param event packet
* @return status
* @note: btstack_type 1
*/
static inline uint8_t gattservice_subevent_mics_server_connected_get_status(const uint8_t * event){
return event[5];
}
/**
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_MICS_SERVER_DISCONNECTED
* @param event packet
* @return con_handle
* @note: btstack_type H
*/
static inline hci_con_handle_t gattservice_subevent_mics_server_disconnected_get_con_handle(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/**
* @brief Get field map_cid from event MAP_SUBEVENT_CONNECTION_OPENED
* @param event packet