mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 01:27:41 +00:00
a2dp: add new event for signaling connection release
This commit is contained in:
parent
5370c17f50
commit
46c4885331
@ -1530,6 +1530,15 @@ typedef uint8_t sm_key_t[16];
|
||||
*/
|
||||
#define A2DP_SUBEVENT_INCOMING_CONNECTION_ESTABLISHED 0x0A
|
||||
|
||||
/**
|
||||
* @format 121 Signaling channel is released.
|
||||
* @param subevent_code
|
||||
* @param a2dp_cid
|
||||
* @param local_seid
|
||||
*/
|
||||
#define A2DP_SUBEVENT_SIGNALING_CONNECTION_RELEASED 0x0B
|
||||
|
||||
|
||||
/** AVRCP Subevent */
|
||||
|
||||
/**
|
||||
|
@ -4983,6 +4983,25 @@ static inline void a2dp_subevent_incoming_connection_established_get_bd_addr(con
|
||||
reverse_bd_addr(&event[5], bd_addr);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field a2dp_cid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_RELEASED
|
||||
* @param event packet
|
||||
* @return a2dp_cid
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t a2dp_subevent_signaling_connection_released_get_a2dp_cid(const uint8_t * event){
|
||||
return little_endian_read_16(event, 3);
|
||||
}
|
||||
/**
|
||||
* @brief Get field local_seid from event A2DP_SUBEVENT_SIGNALING_CONNECTION_RELEASED
|
||||
* @param event packet
|
||||
* @return local_seid
|
||||
* @note: btstack_type 1
|
||||
*/
|
||||
static inline uint8_t a2dp_subevent_signaling_connection_released_get_local_seid(const uint8_t * event){
|
||||
return event[5];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field status from event AVRCP_SUBEVENT_CONNECTION_ESTABLISHED
|
||||
* @param event packet
|
||||
|
Loading…
x
Reference in New Issue
Block a user