hfp: add HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE event

This commit is contained in:
Milanka Ringwald 2021-07-13 11:10:39 +02:00
parent c3d3f9ed34
commit 40cd4182ab
2 changed files with 26 additions and 0 deletions

View File

@ -1834,6 +1834,13 @@ typedef uint8_t sm_key_t[16];
*/
#define HFP_SUBEVENT_ENHANCED_VOICE_RECOGNITION_AG_MESSAGE 0x24
/**
* @format 1H1
* @param subevent_code
* @param acl_handle
* @param status
*/
#define HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE 0x25
// ANCS Client

View File

@ -4895,6 +4895,25 @@ static inline const uint8_t * hfp_subevent_enhanced_voice_recognition_ag_message
return &event[11];
}
/**
* @brief Get field acl_handle from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE
* @param event packet
* @return acl_handle
* @note: btstack_type H
*/
static inline hci_con_handle_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_acl_handle(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/**
* @brief Get field status from event HFP_SUBEVENT_ECHO_CANCELING_AND_NOISE_REDUCTION_DEACTIVATE
* @param event packet
* @return status
* @note: btstack_type 1
*/
static inline uint8_t hfp_subevent_echo_canceling_and_noise_reduction_deactivate_get_status(const uint8_t * event){
return event[5];
}
#ifdef ENABLE_BLE
/**
* @brief Get field handle from event ANCS_SUBEVENT_CLIENT_CONNECTED