HSP_SUBEVENT_AUDIO_CONNECTION_COMPLETE add missing connection handle

This commit is contained in:
Matthias Ringwald 2016-03-07 17:26:20 +01:00
parent 045013fe99
commit 1169d70785
2 changed files with 11 additions and 1 deletions

View File

@ -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

View File

@ -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