mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-04-15 14:42:31 +00:00
avrcp_browsing_target: define AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER event
This commit is contained in:
parent
9a9f9fd728
commit
bbee15159a
@ -2819,6 +2819,13 @@ typedef uint8_t sm_key_t[16];
|
||||
*/
|
||||
#define AVRCP_SUBEVENT_BROWSING_GET_TOTAL_NUM_ITEMS 0x35
|
||||
|
||||
/**
|
||||
* @format 122
|
||||
* @param subevent_code
|
||||
* @param browsing_cid
|
||||
* @param player_id
|
||||
*/
|
||||
#define AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER 0x36
|
||||
|
||||
|
||||
|
||||
|
@ -8620,6 +8620,25 @@ static inline uint8_t avrcp_subevent_browsing_get_total_num_items_get_scope(cons
|
||||
return event[5];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER
|
||||
* @param event packet
|
||||
* @return browsing_cid
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_browsing_cid(const uint8_t * event){
|
||||
return little_endian_read_16(event, 3);
|
||||
}
|
||||
/**
|
||||
* @brief Get field player_id from event AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER
|
||||
* @param event packet
|
||||
* @return player_id
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t avrcp_subevent_browsing_set_browsed_player_get_player_id(const uint8_t * event){
|
||||
return little_endian_read_16(event, 5);
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field goep_cid from event GOEP_SUBEVENT_CONNECTION_OPENED
|
||||
* @param event packet
|
||||
|
Loading…
x
Reference in New Issue
Block a user