From 14daac42e756a911ed3012d0a22fda0517ed7529 Mon Sep 17 00:00:00 2001 From: Milanka Ringwald Date: Fri, 27 Jan 2023 18:08:42 +0100 Subject: [PATCH] btstack_defines: rename MICS Client events # Conflicts: # src/btstack_event.h --- src/btstack_defines.h | 6 +++--- src/btstack_event.h | 28 ++++++++++++++-------------- 2 files changed, 17 insertions(+), 17 deletions(-) diff --git a/src/btstack_defines.h b/src/btstack_defines.h index 3df537517..38e5a38cc 100644 --- a/src/btstack_defines.h +++ b/src/btstack_defines.h @@ -4039,7 +4039,7 @@ typedef uint8_t sm_key_t[16]; * @param hids_cid * @param status */ -#define GATTSERVICE_SUBEVENT_MICS_CONNECTED 0x19u +#define GATTSERVICE_SUBEVENT_MICS_CLIENT_CONNECTED 0x19u /** * @format 1211 @@ -4048,7 +4048,7 @@ typedef uint8_t sm_key_t[16]; * @param status * @param state */ -#define GATTSERVICE_SUBEVENT_REMOTE_MICS_MUTE 0x1Au +#define GATTSERVICE_SUBEVENT_MICS_CLIENT_MUTE 0x1Au /** * @format 1H1 @@ -4056,7 +4056,7 @@ typedef uint8_t sm_key_t[16]; * @param con_handle * @param state */ -#define GATTSERVICE_SUBEVENT_MICS_SERVER_LOCAL_MUTE 0x1Bu +#define GATTSERVICE_SUBEVENT_MICS_SERVER_MUTE 0x1Bu /** * @format 1H11 diff --git a/src/btstack_event.h b/src/btstack_event.h index 47325db54..97384e9d1 100644 --- a/src/btstack_event.h +++ b/src/btstack_event.h @@ -12817,68 +12817,68 @@ static inline uint16_t gattservice_subevent_scan_parameters_service_scan_interva } /** - * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_MICS_CONNECTED + * @brief Get field hids_cid from event GATTSERVICE_SUBEVENT_MICS_CLIENT_CONNECTED * @param event packet * @return hids_cid * @note: btstack_type 2 */ -static inline uint16_t gattservice_subevent_mics_connected_get_hids_cid(const uint8_t * event){ +static inline uint16_t gattservice_subevent_mics_client_connected_get_hids_cid(const uint8_t * event){ return little_endian_read_16(event, 3); } /** - * @brief Get field status from event GATTSERVICE_SUBEVENT_MICS_CONNECTED + * @brief Get field status from event GATTSERVICE_SUBEVENT_MICS_CLIENT_CONNECTED * @param event packet * @return status * @note: btstack_type 1 */ -static inline uint8_t gattservice_subevent_mics_connected_get_status(const uint8_t * event){ +static inline uint8_t gattservice_subevent_mics_client_connected_get_status(const uint8_t * event){ return event[5]; } /** - * @brief Get field cid from event GATTSERVICE_SUBEVENT_REMOTE_MICS_MUTE + * @brief Get field cid from event GATTSERVICE_SUBEVENT_MICS_CLIENT_MUTE * @param event packet * @return cid * @note: btstack_type 2 */ -static inline uint16_t gattservice_subevent_remote_mics_mute_get_cid(const uint8_t * event){ +static inline uint16_t gattservice_subevent_mics_client_mute_get_cid(const uint8_t * event){ return little_endian_read_16(event, 3); } /** - * @brief Get field status from event GATTSERVICE_SUBEVENT_REMOTE_MICS_MUTE + * @brief Get field status from event GATTSERVICE_SUBEVENT_MICS_CLIENT_MUTE * @param event packet * @return status * @note: btstack_type 1 */ -static inline uint8_t gattservice_subevent_remote_mics_mute_get_status(const uint8_t * event){ +static inline uint8_t gattservice_subevent_mics_client_mute_get_status(const uint8_t * event){ return event[5]; } /** - * @brief Get field state from event GATTSERVICE_SUBEVENT_REMOTE_MICS_MUTE + * @brief Get field state from event GATTSERVICE_SUBEVENT_MICS_CLIENT_MUTE * @param event packet * @return state * @note: btstack_type 1 */ -static inline uint8_t gattservice_subevent_remote_mics_mute_get_state(const uint8_t * event){ +static inline uint8_t gattservice_subevent_mics_client_mute_get_state(const uint8_t * event){ return event[6]; } /** - * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_MICS_SERVER_LOCAL_MUTE + * @brief Get field con_handle from event GATTSERVICE_SUBEVENT_MICS_SERVER_MUTE * @param event packet * @return con_handle * @note: btstack_type H */ -static inline hci_con_handle_t gattservice_subevent_mics_server_local_mute_get_con_handle(const uint8_t * event){ +static inline hci_con_handle_t gattservice_subevent_mics_server_mute_get_con_handle(const uint8_t * event){ return little_endian_read_16(event, 3); } /** - * @brief Get field state from event GATTSERVICE_SUBEVENT_MICS_SERVER_LOCAL_MUTE + * @brief Get field state from event GATTSERVICE_SUBEVENT_MICS_SERVER_MUTE * @param event packet * @return state * @note: btstack_type 1 */ -static inline uint8_t gattservice_subevent_mics_server_local_mute_get_state(const uint8_t * event){ +static inline uint8_t gattservice_subevent_mics_server_mute_get_state(const uint8_t * event){ return event[5]; }