btstack_defines: add HFP_SUBEVENT_IN_BAND_RING_TONE event

This commit is contained in:
Milanka Ringwald 2021-04-20 16:14:37 +02:00
parent 0138fcae13
commit 05748e32d4
2 changed files with 27 additions and 0 deletions

View File

@ -1740,6 +1740,14 @@ typedef uint8_t sm_key_t[16];
*/
#define HFP_SUBEVENT_AT_MESSAGE_RECEIVED 0x1C
/**
* @format 1H1
* @param subevent_code
* @param acl_handle
* @param status
*/
#define HFP_SUBEVENT_IN_BAND_RING_TONE 0x1D
// ANCS Client
/**

View File

@ -4598,6 +4598,25 @@ static inline const char * hfp_subevent_at_message_received_get_command(const ui
return (const char *) &event[5];
}
/**
* @brief Get field acl_handle from event HFP_SUBEVENT_IN_BAND_RING_TONE
* @param event packet
* @return acl_handle
* @note: btstack_type H
*/
static inline hci_con_handle_t hfp_subevent_in_band_ring_tone_get_acl_handle(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/**
* @brief Get field status from event HFP_SUBEVENT_IN_BAND_RING_TONE
* @param event packet
* @return status
* @note: btstack_type 1
*/
static inline uint8_t hfp_subevent_in_band_ring_tone_get_status(const uint8_t * event){
return event[5];
}
#ifdef ENABLE_BLE
/**
* @brief Get field handle from event ANCS_SUBEVENT_CLIENT_CONNECTED