mirror of
https://github.com/bluekitchen/btstack.git
synced 2025-03-14 10:21:49 +00:00
btstack_defines: add AVRCP_SUBEVENT_ADD_TO_NOW_PLAYING event
This commit is contained in:
parent
bf1fb21044
commit
25c2629806
@ -3701,6 +3701,16 @@ typedef uint8_t sm_key_t[16];
|
||||
*/
|
||||
#define AVRCP_SUBEVENT_PLAY_ITEM 0x42u
|
||||
|
||||
/**
|
||||
* @format 1221D
|
||||
* @param subevent_code
|
||||
* @param avrcp_cid
|
||||
* @param uid_counter
|
||||
* @param scope
|
||||
* @param item_id
|
||||
*/
|
||||
#define AVRCP_SUBEVENT_ADD_TO_NOW_PLAYING 0x43u
|
||||
|
||||
/**
|
||||
* @format 12BH
|
||||
* @param subevent_code
|
||||
|
@ -12255,6 +12255,43 @@ static inline const uint8_t * avrcp_subevent_play_item_get_item_id(const uint8_t
|
||||
return (const uint8_t *) &event[8];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field avrcp_cid from event AVRCP_SUBEVENT_ADD_TO_NOW_PLAYING
|
||||
* @param event packet
|
||||
* @return avrcp_cid
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t avrcp_subevent_add_to_now_playing_get_avrcp_cid(const uint8_t * event){
|
||||
return little_endian_read_16(event, 3);
|
||||
}
|
||||
/**
|
||||
* @brief Get field uid_counter from event AVRCP_SUBEVENT_ADD_TO_NOW_PLAYING
|
||||
* @param event packet
|
||||
* @return uid_counter
|
||||
* @note: btstack_type 2
|
||||
*/
|
||||
static inline uint16_t avrcp_subevent_add_to_now_playing_get_uid_counter(const uint8_t * event){
|
||||
return little_endian_read_16(event, 5);
|
||||
}
|
||||
/**
|
||||
* @brief Get field scope from event AVRCP_SUBEVENT_ADD_TO_NOW_PLAYING
|
||||
* @param event packet
|
||||
* @return scope
|
||||
* @note: btstack_type 1
|
||||
*/
|
||||
static inline uint8_t avrcp_subevent_add_to_now_playing_get_scope(const uint8_t * event){
|
||||
return event[7];
|
||||
}
|
||||
/**
|
||||
* @brief Get field item_id from event AVRCP_SUBEVENT_ADD_TO_NOW_PLAYING
|
||||
* @param event packet
|
||||
* @return item_id
|
||||
* @note: btstack_type D
|
||||
*/
|
||||
static inline const uint8_t * avrcp_subevent_add_to_now_playing_get_item_id(const uint8_t * event){
|
||||
return (const uint8_t *) &event[8];
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief Get field goep_cid from event GOEP_SUBEVENT_INCOMING_CONNECTION
|
||||
* @param event packet
|
||||
|
Loading…
x
Reference in New Issue
Block a user