btstack_event: update VOCS and VCS server event names

# Conflicts:
#	src/btstack_defines.h
This commit is contained in:
Milanka Ringwald 2023-01-27 15:02:24 +01:00 committed by Matthias Ringwald
parent e826f75a73
commit e3fbc2a8e7
2 changed files with 166 additions and 32 deletions

View File

@ -4102,7 +4102,7 @@ typedef uint8_t sm_key_t[16];
* @param index
* @param volume_offset
*/
#define GATTSERVICE_SUBEVENT_VOCS_VOLUME_OFFSET 0x21u
#define GATTSERVICE_SUBEVENT_VOCS_SERVER_VOLUME_OFFSET 0x21u
/**
* @format 1H14
@ -4111,7 +4111,7 @@ typedef uint8_t sm_key_t[16];
* @param index
* @param audio_location
*/
#define GATTSERVICE_SUBEVENT_VOCS_AUDIO_LOCATION 0x22u
#define GATTSERVICE_SUBEVENT_VOCS_SERVER_AUDIO_LOCATION 0x22u
/**
* @format 1H1JV
@ -4121,7 +4121,7 @@ typedef uint8_t sm_key_t[16];
* @param description_len
* @param description
*/
#define GATTSERVICE_SUBEVENT_VOCS_AUDIO_OUTPUT_DESC_CHANGED 0x23u
#define GATTSERVICE_SUBEVENT_VOCS_SERVER_AUDIO_OUTPUT_DESCRIPTION 0x23u
/**
* @format 1H111
@ -4131,7 +4131,7 @@ typedef uint8_t sm_key_t[16];
* @param volume_change_step
* @param mute
*/
#define GATTSERVICE_SUBEVENT_VCS_VOLUME_STATE 0x24u
#define GATTSERVICE_SUBEVENT_VCS_SERVER_VOLUME_STATE 0x24u
/**
* @format 1H1
@ -4570,6 +4570,53 @@ typedef uint8_t sm_key_t[16];
*/
#define GATTSERVICE_SUBEVENT_MICS_SERVER_DISCONNECTED 0x73u
/**
* @format 1H1
* @param subevent_code
* @param con_handle
* @param status
*/
#define GATTSERVICE_SUBEVENT_PACS_SERVER_CONNECTED 0x74u
/**GATTSERVICE_SUBEVENT_VOCS_SERVER_AUDIO_OUTPUT_DESCRIPTION
* @format 1H
* @param subevent_code
* @param con_handle
*/
#define GATTSERVICE_SUBEVENT_PACS_SERVER_DISCONNECTED 0x75u
/**
* @format 1H1
* @param subevent_code
* @param con_handle
* @param status
*/
#define GATTSERVICE_SUBEVENT_VCS_SERVER_CONNECTED 0x76u
/**
* @format 1H
* @param subevent_code
* @param con_handle
*/
#define GATTSERVICE_SUBEVENT_VCS_SERVER_DISCONNECTED 0x77u
/**
* @format 1H1
* @param subevent_code
* @param con_handle
* @param status
*/
#define GATTSERVICE_SUBEVENT_VOCS_SERVER_CONNECTED 0x78u
/**
* @format 1H
* @param subevent_code
* @param con_handle
*/
#define GATTSERVICE_SUBEVENT_VOCS_SERVER_DISCONNECTED 0x79u
// MAP Meta Event Group
/**

View File

@ -13004,132 +13004,132 @@ static inline const uint8_t * gattservice_subevent_aics_server_audio_input_desc_
}
/**
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VOCS_VOLUME_OFFSET
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VOCS_SERVER_VOLUME_OFFSET
* @param event packet
* @return con_handle
* @note: btstack_type H
*/
static inline hci_con_handle_t gattservice_subevent_vocs_volume_offset_get_con_handle(const uint8_t * event){
static inline hci_con_handle_t gattservice_subevent_vocs_server_volume_offset_get_con_handle(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/**
* @brief Get field index from event GATTSERVICE_SUBEVENT_VOCS_VOLUME_OFFSET
* @brief Get field index from event GATTSERVICE_SUBEVENT_VOCS_SERVER_VOLUME_OFFSET
* @param event packet
* @return index
* @note: btstack_type 1
*/
static inline uint8_t gattservice_subevent_vocs_volume_offset_get_index(const uint8_t * event){
static inline uint8_t gattservice_subevent_vocs_server_volume_offset_get_index(const uint8_t * event){
return event[5];
}
/**
* @brief Get field volume_offset from event GATTSERVICE_SUBEVENT_VOCS_VOLUME_OFFSET
* @brief Get field volume_offset from event GATTSERVICE_SUBEVENT_VOCS_SERVER_VOLUME_OFFSET
* @param event packet
* @return volume_offset
* @note: btstack_type 2
*/
static inline uint16_t gattservice_subevent_vocs_volume_offset_get_volume_offset(const uint8_t * event){
static inline uint16_t gattservice_subevent_vocs_server_volume_offset_get_volume_offset(const uint8_t * event){
return little_endian_read_16(event, 6);
}
/**
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_LOCATION
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VOCS_SERVER_AUDIO_LOCATION
* @param event packet
* @return con_handle
* @note: btstack_type H
*/
static inline hci_con_handle_t gattservice_subevent_vocs_audio_location_get_con_handle(const uint8_t * event){
static inline hci_con_handle_t gattservice_subevent_vocs_server_audio_location_get_con_handle(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/**
* @brief Get field index from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_LOCATION
* @brief Get field index from event GATTSERVICE_SUBEVENT_VOCS_SERVER_AUDIO_LOCATION
* @param event packet
* @return index
* @note: btstack_type 1
*/
static inline uint8_t gattservice_subevent_vocs_audio_location_get_index(const uint8_t * event){
static inline uint8_t gattservice_subevent_vocs_server_audio_location_get_index(const uint8_t * event){
return event[5];
}
/**
* @brief Get field audio_location from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_LOCATION
* @brief Get field audio_location from event GATTSERVICE_SUBEVENT_VOCS_SERVER_AUDIO_LOCATION
* @param event packet
* @return audio_location
* @note: btstack_type 4
*/
static inline uint32_t gattservice_subevent_vocs_audio_location_get_audio_location(const uint8_t * event){
static inline uint32_t gattservice_subevent_vocs_server_audio_location_get_audio_location(const uint8_t * event){
return little_endian_read_32(event, 6);
}
/**
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_OUTPUT_DESC_CHANGED
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VOCS_SERVER_AUDIO_OUTPUT_DESCRIPTION
* @param event packet
* @return con_handle
* @note: btstack_type H
*/
static inline hci_con_handle_t gattservice_subevent_vocs_audio_output_desc_changed_get_con_handle(const uint8_t * event){
static inline hci_con_handle_t gattservice_subevent_vocs_server_audio_output_description_get_con_handle(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/**
* @brief Get field index from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_OUTPUT_DESC_CHANGED
* @brief Get field index from event GATTSERVICE_SUBEVENT_VOCS_SERVER_AUDIO_OUTPUT_DESCRIPTION
* @param event packet
* @return index
* @note: btstack_type 1
*/
static inline uint8_t gattservice_subevent_vocs_audio_output_desc_changed_get_index(const uint8_t * event){
static inline uint8_t gattservice_subevent_vocs_server_audio_output_description_get_index(const uint8_t * event){
return event[5];
}
/**
* @brief Get field description_len from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_OUTPUT_DESC_CHANGED
* @brief Get field description_len from event GATTSERVICE_SUBEVENT_VOCS_SERVER_AUDIO_OUTPUT_DESCRIPTION
* @param event packet
* @return description_len
* @note: btstack_type J
*/
static inline uint8_t gattservice_subevent_vocs_audio_output_desc_changed_get_description_len(const uint8_t * event){
static inline uint8_t gattservice_subevent_vocs_server_audio_output_description_get_description_len(const uint8_t * event){
return event[6];
}
/**
* @brief Get field description from event GATTSERVICE_SUBEVENT_VOCS_AUDIO_OUTPUT_DESC_CHANGED
* @brief Get field description from event GATTSERVICE_SUBEVENT_VOCS_SERVER_AUDIO_OUTPUT_DESCRIPTION
* @param event packet
* @return description
* @note: btstack_type V
*/
static inline const uint8_t * gattservice_subevent_vocs_audio_output_desc_changed_get_description(const uint8_t * event){
static inline const uint8_t * gattservice_subevent_vocs_server_audio_output_description_get_description(const uint8_t * event){
return &event[7];
}
/**
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VCS_VOLUME_STATE
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VCS_SERVER_VOLUME_STATE
* @param event packet
* @return con_handle
* @note: btstack_type H
*/
static inline hci_con_handle_t gattservice_subevent_vcs_volume_state_get_con_handle(const uint8_t * event){
static inline hci_con_handle_t gattservice_subevent_vcs_server_volume_state_get_con_handle(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/**
* @brief Get field volume_setting from event GATTSERVICE_SUBEVENT_VCS_VOLUME_STATE
* @brief Get field volume_setting from event GATTSERVICE_SUBEVENT_VCS_SERVER_VOLUME_STATE
* @param event packet
* @return volume_setting
* @note: btstack_type 1
*/
static inline uint8_t gattservice_subevent_vcs_volume_state_get_volume_setting(const uint8_t * event){
static inline uint8_t gattservice_subevent_vcs_server_volume_state_get_volume_setting(const uint8_t * event){
return event[5];
}
/**
* @brief Get field volume_change_step from event GATTSERVICE_SUBEVENT_VCS_VOLUME_STATE
* @brief Get field volume_change_step from event GATTSERVICE_SUBEVENT_VCS_SERVER_VOLUME_STATE
* @param event packet
* @return volume_change_step
* @note: btstack_type 1
*/
static inline uint8_t gattservice_subevent_vcs_volume_state_get_volume_change_step(const uint8_t * event){
static inline uint8_t gattservice_subevent_vcs_server_volume_state_get_volume_change_step(const uint8_t * event){
return event[6];
}
/**
* @brief Get field mute from event GATTSERVICE_SUBEVENT_VCS_VOLUME_STATE
* @brief Get field mute from event GATTSERVICE_SUBEVENT_VCS_SERVER_VOLUME_STATE
* @param event packet
* @return mute
* @note: btstack_type 1
*/
static inline uint8_t gattservice_subevent_vcs_volume_state_get_mute(const uint8_t * event){
static inline uint8_t gattservice_subevent_vcs_server_volume_state_get_mute(const uint8_t * event){
return event[7];
}
@ -14910,6 +14910,93 @@ static inline hci_con_handle_t gattservice_subevent_mics_server_disconnected_get
return little_endian_read_16(event, 3);
}
/**
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_PACS_SERVER_CONNECTED
* @param event packet
* @return con_handle
* @note: btstack_type H
*/
static inline hci_con_handle_t gattservice_subevent_pacs_server_connected_get_con_handle(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/**
* @brief Get field status from event GATTSERVICE_SUBEVENT_PACS_SERVER_CONNECTED
* @param event packet
* @return status
* @note: btstack_type 1
*/
static inline uint8_t gattservice_subevent_pacs_server_connected_get_status(const uint8_t * event){
return event[5];
}
/**
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_PACS_SERVER_DISCONNECTED
* @param event packet
* @return con_handle
* @note: btstack_type H
*/
static inline hci_con_handle_t gattservice_subevent_pacs_server_disconnected_get_con_handle(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/**
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VCS_SERVER_CONNECTED
* @param event packet
* @return con_handle
* @note: btstack_type H
*/
static inline hci_con_handle_t gattservice_subevent_vcs_server_connected_get_con_handle(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/**
* @brief Get field status from event GATTSERVICE_SUBEVENT_VCS_SERVER_CONNECTED
* @param event packet
* @return status
* @note: btstack_type 1
*/
static inline uint8_t gattservice_subevent_vcs_server_connected_get_status(const uint8_t * event){
return event[5];
}
/**
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VCS_SERVER_DISCONNECTED
* @param event packet
* @return con_handle
* @note: btstack_type H
*/
static inline hci_con_handle_t gattservice_subevent_vcs_server_disconnected_get_con_handle(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/**
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VOCS_SERVER_CONNECTED
* @param event packet
* @return con_handle
* @note: btstack_type H
*/
static inline hci_con_handle_t gattservice_subevent_vocs_server_connected_get_con_handle(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/**
* @brief Get field status from event GATTSERVICE_SUBEVENT_VOCS_SERVER_CONNECTED
* @param event packet
* @return status
* @note: btstack_type 1
*/
static inline uint8_t gattservice_subevent_vocs_server_connected_get_status(const uint8_t * event){
return event[5];
}
/**
* @brief Get field con_handle from event GATTSERVICE_SUBEVENT_VOCS_SERVER_DISCONNECTED
* @param event packet
* @return con_handle
* @note: btstack_type H
*/
static inline hci_con_handle_t gattservice_subevent_vocs_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