mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-23 19:20:51 +00:00
HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE add missing connection handle
This commit is contained in:
parent
045013fe99
commit
1169d70785
@ -770,9 +770,10 @@ typedef uint8_t sm_key_t[16];
|
||||
/** HSP Subevent */
|
||||
|
||||
/**
|
||||
* @format 11
|
||||
* @format 112
|
||||
* @param subevent_code
|
||||
* @param status 0 == OK
|
||||
* @param handle
|
||||
*/
|
||||
#define HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE 0x01
|
||||
|
||||
|
@ -2206,6 +2206,15 @@ static inline uint8_t hci_subevent_le_connection_complete_get_master_clock_accur
|
||||
static inline uint8_t hsp_subevent_audio_connection_complete_get_status(const uint8_t * event){
|
||||
return event[3];
|
||||
}
|
||||
/**
|
||||
* @brief Get field handle from event hsp_subevent_audio_connection_complete
|
||||
* @param event packet
|
||||
* @return handle
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t hsp_subevent_audio_connection_complete_get_handle(const uint8_t * event){
|
||||
return little_endian_read_16(event, 4);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field status from event hsp_subevent_audio_disconnection_complete
|
||||
|
Loading…
x
Reference in New Issue
Block a user