mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-29 22:20:37 +00:00
btstack_defines: add HFP_SUBEVENT_IN_BAND_RING_TONE event
This commit is contained in:
parent
0138fcae13
commit
05748e32d4
@ -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
|
||||
|
||||
/**
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user