avrcp_browsing_target: define AVRCP_SUBEVENT_BROWSING_SET_BROWSED_PLAYER event

This commit is contained in:
Milanka Ringwald 2021-05-06 18:23:12 +02:00
parent 9a9f9fd728
commit bbee15159a
2 changed files with 26 additions and 0 deletions

View File

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

View File

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