mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-02-04 06:39:53 +00:00
avrcp browsing target: add get folder items
This commit is contained in:
parent
c490eb5a45
commit
3d49a24e70
@ -1942,6 +1942,14 @@ typedef uint8_t sm_key_t[16];
|
|||||||
*/
|
*/
|
||||||
#define AVRCP_SUBEVENT_BROWSING_CONNECTION_RELEASED 0x1D
|
#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
|
* @format 12211
|
||||||
|
@ -6225,6 +6225,34 @@ static inline uint16_t avrcp_subevent_browsing_connection_released_get_browsing_
|
|||||||
return little_endian_read_16(event, 3);
|
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
|
* @brief Get field browsing_cid from event AVRCP_SUBEVENT_BROWSING_DONE
|
||||||
* @param event packet
|
* @param event packet
|
||||||
|
Loading…
x
Reference in New Issue
Block a user