mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-03 20:54:18 +00:00
avrcp browsing: add incoming connection event
This commit is contained in:
parent
9c87470376
commit
576a1127b5
@ -1791,6 +1791,14 @@ typedef uint8_t sm_key_t[16];
|
||||
*/
|
||||
#define AVRCP_SUBEVENT_NOW_PLAYING_INFO_DONE 0x1A
|
||||
|
||||
/**
|
||||
* @format 1B2
|
||||
* @param subevent_code
|
||||
* @param bd_addr
|
||||
* @param browsing_cid
|
||||
*/
|
||||
#define AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION 0x1B
|
||||
|
||||
/**
|
||||
* @format 11B2
|
||||
* @param subevent_code
|
||||
@ -1798,14 +1806,14 @@ typedef uint8_t sm_key_t[16];
|
||||
* @param bd_addr
|
||||
* @param browsing_cid
|
||||
*/
|
||||
#define AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED 0x1B
|
||||
#define AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED 0x1C
|
||||
|
||||
/**
|
||||
* @format 12
|
||||
* @param subevent_code
|
||||
* @param browsing_cid
|
||||
*/
|
||||
#define AVRCP_SUBEVENT_BROWSING_CONNECTION_RELEASED 0x1C
|
||||
#define AVRCP_SUBEVENT_BROWSING_CONNECTION_RELEASED 0x1D
|
||||
|
||||
|
||||
/**
|
||||
@ -1815,7 +1823,7 @@ typedef uint8_t sm_key_t[16];
|
||||
* @param browsing_status
|
||||
* @param bluetooth_status
|
||||
*/
|
||||
#define AVRCP_SUBEVENT_BROWSING_MEDIA_ITEM_DONE 0x1D
|
||||
#define AVRCP_SUBEVENT_BROWSING_MEDIA_ITEM_DONE 0x1E
|
||||
|
||||
|
||||
/**
|
||||
|
@ -5721,6 +5721,25 @@ static inline uint8_t avrcp_subevent_now_playing_info_done_get_status(const uint
|
||||
return event[6];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field bd_addr from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION
|
||||
* @param event packet
|
||||
* @param Pointer to storage for bd_addr
|
||||
* @note: btstack_type B
|
||||
*/
|
||||
static inline void avrcp_subevent_incoming_browsing_connection_get_bd_addr(const uint8_t * event, bd_addr_t bd_addr){
|
||||
reverse_bd_addr(&event[3], bd_addr);
|
||||
}
|
||||
/**
|
||||
* @brief Get field browsing_cid from event AVRCP_SUBEVENT_INCOMING_BROWSING_CONNECTION
|
||||
* @param event packet
|
||||
* @return browsing_cid
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t avrcp_subevent_incoming_browsing_connection_get_browsing_cid(const uint8_t * event){
|
||||
return little_endian_read_16(event, 9);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field status from event AVRCP_SUBEVENT_BROWSING_CONNECTION_ESTABLISHED
|
||||
* @param event packet
|
||||
|
Loading…
x
Reference in New Issue
Block a user