mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 10:21:49 +00:00
btstack_defines: add params to GET_FOLDER_ITEMS event
This commit is contained in:
parent
fe4dc63a25
commit
23efd3ffc6
@ -3618,10 +3618,12 @@ typedef uint8_t sm_key_t[16];
|
||||
#define AVRCP_SUBEVENT_BROWSING_DONE 0x33u
|
||||
|
||||
/**
|
||||
* @format 1214
|
||||
* @format 121444
|
||||
* @param subevent_code
|
||||
* @param browsing_cid
|
||||
* @param scope
|
||||
* @param start_item
|
||||
* @param end_item
|
||||
* @param attr_bitmap
|
||||
*/
|
||||
#define AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS 0x34u
|
||||
|
@ -11994,6 +11994,24 @@ static inline uint16_t avrcp_subevent_browsing_get_folder_items_get_browsing_cid
|
||||
static inline uint8_t avrcp_subevent_browsing_get_folder_items_get_scope(const uint8_t * event){
|
||||
return event[5];
|
||||
}
|
||||
/**
|
||||
* @brief Get field start_item from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
|
||||
* @param event packet
|
||||
* @return start_item
|
||||
* @note: btstack_type 4
|
||||
*/
|
||||
static inline uint32_t avrcp_subevent_browsing_get_folder_items_get_start_item(const uint8_t * event){
|
||||
return little_endian_read_32(event, 6);
|
||||
}
|
||||
/**
|
||||
* @brief Get field end_item from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
|
||||
* @param event packet
|
||||
* @return end_item
|
||||
* @note: btstack_type 4
|
||||
*/
|
||||
static inline uint32_t avrcp_subevent_browsing_get_folder_items_get_end_item(const uint8_t * event){
|
||||
return little_endian_read_32(event, 10);
|
||||
}
|
||||
/**
|
||||
* @brief Get field attr_bitmap from event AVRCP_SUBEVENT_BROWSING_GET_FOLDER_ITEMS
|
||||
* @param event packet
|
||||
@ -12001,7 +12019,7 @@ static inline uint8_t avrcp_subevent_browsing_get_folder_items_get_scope(const u
|
||||
* @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);
|
||||
return little_endian_read_32(event, 14);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
x
Reference in New Issue
Block a user