avrcp browsing target: add get folder items

This commit is contained in:
Milanka Ringwald 2018-04-25 23:29:46 +02:00
parent c490eb5a45
commit 3d49a24e70
2 changed files with 36 additions and 0 deletions

View File

@ -1942,6 +1942,14 @@ typedef uint8_t sm_key_t[16];
*/
#define AVRCP_SUBEVENT_BROWSING_CONNECTION_RELEASED 0x1D
/**
* @format 1214
* @param subevent_code
* @param browsing_cid
* @param scope
* @param attr_bitmap
*/
#define AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 0x1E
/**
* @format 12211

View File

@ -6225,6 +6225,34 @@ static inline uint16_t avrcp_subevent_browsing_connection_released_get_browsing_
return little_endian_read_16(event, 3);
}
/**
* @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
* @param event packet
* @return browsing_cid
* @note: btstack_type 2
*/
static inline uint16_t avrcp_subevent_browsing_get_folder_items_get_browsing_cid(const uint8_t * event){
return little_endian_read_16(event, 3);
}
/**
* @brief Get field scope from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
* @param event packet
* @return scope
* @note: btstack_type 1
*/
static inline uint8_t avrcp_subevent_browsing_get_folder_items_get_scope(const uint8_t * event){
return event[5];
}
/**
* @brief Get field attr_bitmap from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
* @param event packet
* @return attr_bitmap
* @note: btstack_type 4
*/
static inline uint32_t avrcp_subevent_browsing_get_folder_items_get_attr_bitmap(const uint8_t * event){
return little_endian_read_32(event, 6);
}
/**
* @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_DONE
* @param event packet