mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-03 07:13:51 +00:00
btstack_defines: rename MICS Client events
# Conflicts: # src/btstack_event.h
This commit is contained in:
parent
5bb9168cc1
commit
14daac42e7
@ -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
|
||||
|
@ -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];
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user