a2dp: added A2DP_SUBEVENT_STREAM_RECONFIGURED

This commit is contained in:
Matthias Ringwald 2018-09-14 14:35:39 +02:00
parent 0235c9e5bd
commit b8dffb2591
2 changed files with 36 additions and 0 deletions

View File

@ -1694,6 +1694,14 @@ typedef uint8_t sm_key_t[16];
*/
#define A2DP_SUBEVENT_SIGNALING_CONNECTION_RELEASED 0x0C
/**
* @format 1211 Stream was reconfigured
* @param subevent_code
* @param a2dp_cid
* @param local_seid
* @param status
*/
#define A2DP_SUBEVENT_STREAM_RECONFIGURED 0x0D
/** AVRCP Subevent */

View File

@ -5476,6 +5476,34 @@ static inline uint16_t a2dp_subevent_signaling_connection_released_get_a2dp_cid(
return little_endian_read_16(event, 3);
}
/**
* @brief Get field a2dp_cid from event A2DP_SUBEVENT_STREAM_RECONFIGURED
* @param event packet
* @return a2dp_cid
* @note: btstack_type 2
*/
static inline uint16_t a2dp_subevent_stream_reconfigured_get_a2dp_cid(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/**
* @brief Get field local_seid from event A2DP_SUBEVENT_STREAM_RECONFIGURED
* @param event packet
* @return local_seid
* @note: btstack_type 1
*/
static inline uint8_t a2dp_subevent_stream_reconfigured_get_local_seid(const uint8_t * event){
return event[5];
}
/**
* @brief Get field status from event A2DP_SUBEVENT_STREAM_RECONFIGURED
* @param event packet
* @return status
* @note: btstack_type 1
*/
static inline uint8_t a2dp_subevent_stream_reconfigured_get_status(const uint8_t * event){
return event[6];
}
/**
* @brief Get field status from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
* @param event packet