Zephyr API Documentation 4.3.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
avrcp.h
Go to the documentation of this file.
1
4
5/*
6 * Copyright (c) 2015-2016 Intel Corporation
7 * Copyright (C) 2024 Xiaomi Corporation
8 * Copyright 2025-2026 NXP
9 *
10 * SPDX-License-Identifier: Apache-2.0
11 */
12
13#ifndef ZEPHYR_INCLUDE_BLUETOOTH_AVRCP_H_
14#define ZEPHYR_INCLUDE_BLUETOOTH_AVRCP_H_
15
22
23#ifdef __cplusplus
24extern "C" {
25#endif
26
27#define BT_AVRCP_COMPANY_ID_SIZE (3)
28#define BT_AVRCP_COMPANY_ID_BLUETOOTH_SIG (0x001958)
29
35
52
61
73
79
81typedef enum __packed {
96
110
120
134
137
145
151
289
291struct bt_avrcp_ct;
293struct bt_avrcp_tg;
294
299
306
307#define BT_AVRCP_PASSTHROUGH_GET_STATE(payload) \
308 ((bt_avrcp_button_state_t)(FIELD_GET(BIT(7), ((payload)->opid_state))))
309#define BT_AVRCP_PASSTHROUGH_GET_OPID(payload) \
310 ((bt_avrcp_opid_t)(FIELD_GET(GENMASK(6, 0), ((payload)->opid_state))))
311#define BT_AVRCP_PASSTHROUGH_SET_STATE_OPID(payload, state, opid) \
312 (payload)->opid_state = FIELD_PREP(BIT(7), state) | FIELD_PREP(GENMASK(6, 0), opid)
313
318
324
330
336
338typedef enum __packed {
341
349
355
366
372
384
393
400
406
419
430
438
445
451
464
489
496
502
511
518
523
528
535
542
549
555
565
575
582
591
593#define BT_AVRCP_MAX_ABSOLUTE_VOLUME 0x7F
594
601
607
615
621
629
636
643
649
654
660
666
672
678
684
690
698
704
711
719
725
731
736
743
749
754
759
764
771
778
780 union {
781 /* EVENT_PLAYBACK_STATUS_CHANGED */
783
784 /* EVENT_TRACK_CHANGED */
786
787 /* EVENT_PLAYBACK_POS_CHANGED */
789
790 /* EVENT_BATT_STATUS_CHANGED */
792
793 /* EVENT_SYSTEM_STATUS_CHANGED */
795
796 /* EVENT_PLAYER_APPLICATION_SETTING_CHANGED */
797 struct __packed {
801
802 /* EVENT_ADDRESSED_PLAYER_CHANGED */
803 struct __packed {
807
808 /* EVENT_UIDS_CHANGED */
810
811 /* EVENT_VOLUME_CHANGED */
813 };
814};
815
836typedef void(*bt_avrcp_notify_changed_cb_t)(struct bt_avrcp_ct *ct, uint8_t event_id,
837 struct bt_avrcp_event_data *data);
838
848 void (*connected)(struct bt_conn *conn, struct bt_avrcp_ct *ct);
849
857 void (*disconnected)(struct bt_avrcp_ct *ct);
858
867 void (*browsing_connected)(struct bt_conn *conn, struct bt_avrcp_ct *ct);
868
876 void (*browsing_disconnected)(struct bt_avrcp_ct *ct);
877
897 void (*get_caps)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status, struct net_buf *buf);
898
907 void (*unit_info_rsp)(struct bt_avrcp_ct *ct, uint8_t tid,
908 struct bt_avrcp_unit_info_rsp *rsp);
909
918 void (*subunit_info_rsp)(struct bt_avrcp_ct *ct, uint8_t tid,
919 struct bt_avrcp_subunit_info_rsp *rsp);
920
930 void (*passthrough_rsp)(struct bt_avrcp_ct *ct, uint8_t tid, bt_avrcp_rsp_t result,
931 const struct bt_avrcp_passthrough_rsp *rsp);
932
946 void (*set_browsed_player)(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf);
947
961 void (*get_folder_items)(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf);
962
973 void (*change_path)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status,
974 uint32_t num_items);
975
989 void (*get_item_attrs)(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf);
990
1004 void (*get_total_number_of_items)(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf);
1005
1019 void (*search)(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf);
1020
1030 void (*browsing_general_reject)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status);
1031
1057 void (*notification)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status, uint8_t event_id,
1058 struct bt_avrcp_event_data *data);
1059
1080 void (*list_player_app_setting_attrs)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status,
1081 struct net_buf *buf);
1082
1103 void (*list_player_app_setting_vals)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status,
1104 struct net_buf *buf);
1105
1126 void (*get_curr_player_app_setting_val)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status,
1127 struct net_buf *buf);
1128
1140 void (*set_player_app_setting_val)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status);
1141
1161 void (*get_player_app_setting_attr_text)(struct bt_avrcp_ct *ct, uint8_t tid,
1162 uint8_t status, struct net_buf *buf);
1163
1183 void (*get_player_app_setting_val_text)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status,
1184 struct net_buf *buf);
1185
1197 void (*inform_displayable_char_set)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status);
1198
1210 void (*inform_batt_status_of_ct)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status);
1211
1224 void (*set_absolute_volume)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status,
1225 uint8_t absolute_volume);
1226
1246 void (*get_element_attrs)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status,
1247 struct net_buf *buf);
1248
1268 void (*get_play_status)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status,
1269 struct net_buf *buf);
1270
1282 void (*set_addressed_player)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status);
1283
1295 void (*play_item)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status);
1296
1308 void (*add_to_now_playing)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status);
1309};
1310
1322int bt_avrcp_connect(struct bt_conn *conn);
1323
1332int bt_avrcp_disconnect(struct bt_conn *conn);
1333
1346
1361
1371int bt_avrcp_browsing_connect(struct bt_conn *conn);
1372
1381int bt_avrcp_browsing_disconnect(struct bt_conn *conn);
1382
1392
1403int bt_avrcp_ct_get_caps(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t cap_id);
1404
1414int bt_avrcp_ct_get_unit_info(struct bt_avrcp_ct *ct, uint8_t tid);
1415
1426int bt_avrcp_ct_get_subunit_info(struct bt_avrcp_ct *ct, uint8_t tid);
1427
1442int bt_avrcp_ct_passthrough(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t opid, uint8_t state,
1443 const uint8_t *payload, uint8_t len);
1444
1455int bt_avrcp_ct_set_browsed_player(struct bt_avrcp_ct *ct, uint8_t tid, uint16_t player_id);
1456
1471int bt_avrcp_ct_register_notification(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t event_id,
1473
1482
1492int bt_avrcp_ct_list_player_app_setting_vals(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t attr_id);
1493
1506 struct net_buf *buf);
1507
1519int bt_avrcp_ct_set_player_app_setting_val(struct bt_avrcp_ct *ct, uint8_t tid,
1520 struct net_buf *buf);
1521
1534 struct net_buf *buf);
1535
1548 struct net_buf *buf);
1549
1561int bt_avrcp_ct_inform_displayable_char_set(struct bt_avrcp_ct *ct, uint8_t tid,
1562 struct net_buf *buf);
1563
1572int bt_avrcp_ct_inform_batt_status_of_ct(struct bt_avrcp_ct *ct, uint8_t tid,
1573 uint8_t battery_status);
1574
1585int bt_avrcp_ct_set_absolute_volume(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t absolute_volume);
1586
1598int bt_avrcp_ct_get_element_attrs(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf);
1599
1607int bt_avrcp_ct_get_play_status(struct bt_avrcp_ct *ct, uint8_t tid);
1608
1617int bt_avrcp_ct_set_addressed_player(struct bt_avrcp_ct *ct, uint8_t tid, uint16_t player_id);
1618
1630int bt_avrcp_ct_play_item(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf);
1631
1643int bt_avrcp_ct_add_to_now_playing(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf);
1644
1657int bt_avrcp_ct_get_folder_items(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf);
1658
1671int bt_avrcp_ct_change_path(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf);
1672
1685int bt_avrcp_ct_get_item_attrs(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf);
1686
1697int bt_avrcp_ct_get_total_number_of_items(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t scope);
1698
1711int bt_avrcp_ct_search(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf);
1712
1722 void (*connected)(struct bt_conn *conn, struct bt_avrcp_tg *tg);
1723
1731 void (*disconnected)(struct bt_avrcp_tg *tg);
1732
1740 void (*unit_info_req)(struct bt_avrcp_tg *tg, uint8_t tid);
1741
1752 void (*register_notification)(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t event_id,
1753 uint32_t interval);
1754
1762 void (*subunit_info_req)(struct bt_avrcp_tg *tg, uint8_t tid);
1763
1772 void (*get_caps)(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t cap_id);
1773
1782 void (*browsing_connected)(struct bt_conn *conn, struct bt_avrcp_tg *tg);
1783
1791 void (*browsing_disconnected)(struct bt_avrcp_tg *tg);
1792
1801 void (*set_browsed_player)(struct bt_avrcp_tg *tg, uint8_t tid, uint16_t player_id);
1802
1815 void (*get_folder_items)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf);
1816
1829 void (*change_path)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf);
1830
1843 void (*get_item_attrs)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf);
1844
1855 void (*get_total_number_of_items)(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t scope);
1856
1870 void (*search)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf);
1871
1883 void (*passthrough_req)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf);
1884
1892 void (*list_player_app_setting_attrs)(struct bt_avrcp_tg *tg, uint8_t tid);
1893
1903 void (*list_player_app_setting_vals)(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t attr_id);
1904
1915 void (*get_curr_player_app_setting_val)(struct bt_avrcp_tg *tg, uint8_t tid,
1916 struct net_buf *buf);
1917
1928 void (*set_player_app_setting_val)(struct bt_avrcp_tg *tg, uint8_t tid,
1929 struct net_buf *buf);
1930
1941 void (*get_player_app_setting_attr_text)(struct bt_avrcp_tg *tg, uint8_t tid,
1942 struct net_buf *buf);
1943
1954 void (*get_player_app_setting_val_text)(struct bt_avrcp_tg *tg, uint8_t tid,
1955 struct net_buf *buf);
1956
1967 void (*inform_displayable_char_set)(struct bt_avrcp_tg *tg, uint8_t tid,
1968 struct net_buf *buf);
1969
1978 void (*inform_batt_status_of_ct)(struct bt_avrcp_tg *tg, uint8_t tid,
1979 uint8_t battery_status);
1980
1991 void (*get_element_attrs)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf);
1992
2001 void (*set_absolute_volume)(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t absolute_volume);
2002
2010 void (*get_play_status)(struct bt_avrcp_tg *tg, uint8_t tid);
2011
2020 void (*set_addressed_player)(struct bt_avrcp_tg *tg, uint8_t tid, uint16_t player_id);
2021
2032 void (*play_item)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf);
2033
2044 void (*add_to_now_playing)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf);
2045};
2046
2056
2067int bt_avrcp_tg_send_unit_info_rsp(struct bt_avrcp_tg *tg, uint8_t tid,
2068 struct bt_avrcp_unit_info_rsp *rsp);
2069
2079int bt_avrcp_tg_send_subunit_info_rsp(struct bt_avrcp_tg *tg, uint8_t tid);
2080
2094int bt_avrcp_tg_get_caps(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status, struct net_buf *buf);
2095
2121int bt_avrcp_tg_notification(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status, uint8_t event_id,
2122 struct bt_avrcp_event_data *data);
2123
2134int bt_avrcp_tg_set_browsed_player(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf);
2135
2151int bt_avrcp_tg_send_passthrough_rsp(struct bt_avrcp_tg *tg, uint8_t tid, bt_avrcp_rsp_t result,
2152 struct net_buf *buf);
2153
2165int bt_avrcp_tg_list_player_app_setting_attrs(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status,
2166 struct net_buf *buf);
2167
2179int bt_avrcp_tg_list_player_app_setting_vals(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status,
2180 struct net_buf *buf);
2181
2193int bt_avrcp_tg_get_curr_player_app_setting_val(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status,
2194 struct net_buf *buf);
2195
2204int bt_avrcp_tg_set_player_app_setting_val(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status);
2205
2218 uint8_t status, struct net_buf *buf);
2219
2231int bt_avrcp_tg_get_player_app_setting_val_text(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status,
2232 struct net_buf *buf);
2233
2242int bt_avrcp_tg_inform_displayable_char_set(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status);
2243
2252int bt_avrcp_tg_inform_batt_status_of_ct(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status);
2253
2265int bt_avrcp_tg_absolute_volume(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status,
2266 uint8_t absolute_volume);
2267
2279int bt_avrcp_tg_get_element_attrs(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status,
2280 struct net_buf *buf);
2281
2293int bt_avrcp_tg_get_play_status(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status,
2294 struct net_buf *buf);
2295
2304int bt_avrcp_tg_set_addressed_player(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status);
2305
2314int bt_avrcp_tg_play_item(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status);
2315
2324int bt_avrcp_tg_add_to_now_playing(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status);
2325
2342int bt_avrcp_tg_get_folder_items(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf);
2343
2356int bt_avrcp_tg_change_path(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status,
2357 uint32_t num_items);
2358
2375int bt_avrcp_tg_get_item_attrs(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf);
2376
2394int bt_avrcp_tg_get_total_number_of_items(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf);
2395
2411int bt_avrcp_tg_search(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf);
2412
2428int bt_avrcp_tg_browsing_general_reject(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status);
2429#ifdef __cplusplus
2430}
2431#endif
2432
2436
2437#endif /* ZEPHYR_INCLUDE_BLUETOOTH_AVRCP_H_ */
int bt_avrcp_ct_get_play_status(struct bt_avrcp_ct *ct, uint8_t tid)
Send AVRCP vendor dependent command for GET_PLAY_STATUS.
bt_avrcp_change_path_t
AVRCP ChangePath direction.
Definition avrcp.h:351
bt_avrcp_folder_type_t
AVRCP folder types (for folder items).
Definition avrcp.h:357
int bt_avrcp_ct_get_unit_info(struct bt_avrcp_ct *ct, uint8_t tid)
Get AVRCP Unit Info.
bt_avrcp_media_attr_id_t
AVRCP Media Attribute IDs.
Definition avrcp.h:374
int bt_avrcp_ct_list_player_app_setting_vals(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t attr_id)
Send AVRCP vendor dependent command for LIST_PLAYER_APP_SETTING_VALS.
int bt_avrcp_tg_get_player_app_setting_attr_text(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status, struct net_buf *buf)
Send response for PDU ID BT_AVRCP_PDU_ID_GET_PLAYER_APP_SETTING_ATTR_TEXT.
bt_avrcp_system_status_t
AVRCP System Status Code.
Definition avrcp.h:577
int bt_avrcp_tg_search(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Send the Search response.
int bt_avrcp_tg_set_browsed_player(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Send the set browsed player response.
bt_avrcp_button_state_t
AVRCP button state flag.
Definition avrcp.h:147
int bt_avrcp_ct_passthrough(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t opid, uint8_t state, const uint8_t *payload, uint8_t len)
Send AVRCP Pass Through command.
int bt_avrcp_ct_get_player_app_setting_attr_text(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf)
Send AVRCP vendor dependent command for GET_PLAYER_APP_SETTING_ATTR_TEXT.
int bt_avrcp_tg_notification(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status, uint8_t event_id, struct bt_avrcp_event_data *data)
Send notification response.
bt_avrcp_repeat_mode_value_t
AVRCP Player Application Setting Values for Repeat Mode.
Definition avrcp.h:623
int bt_avrcp_ct_get_curr_player_app_setting_val(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf)
Send AVRCP vendor dependent command for GET_CURR_PLAYER_APP_SETTING_VAL.
int bt_avrcp_ct_set_absolute_volume(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t absolute_volume)
Send Set Absolute Volume command (CT).
bt_avrcp_ctype_t
AV/C command types.
Definition avrcp.h:54
int bt_avrcp_ct_get_caps(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t cap_id)
Get AVRCP Capabilities.
bt_avrcp_battery_status_t
AVRCP Battery Status Code.
Definition avrcp.h:584
bt_avrcp_opid_t
AV/C operation ids used in AVRCP passthrough commands.
Definition avrcp.h:81
bt_avrcp_playback_status_t
AVRCP Playback Status.
Definition avrcp.h:567
bt_avrcp_scan_value_t
AVRCP Player Application Setting Values for Scan.
Definition avrcp.h:638
int bt_avrcp_ct_get_item_attrs(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf)
Get Item Attributes.
int bt_avrcp_ct_get_subunit_info(struct bt_avrcp_ct *ct, uint8_t tid)
Get AVRCP Subunit Info.
int bt_avrcp_tg_get_play_status(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status, struct net_buf *buf)
Send response for PDU ID BT_AVRCP_PDU_ID_GET_PLAY_STATUS.
int bt_avrcp_tg_get_item_attrs(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Send the Get Item Attributes response.
bt_avrcp_status_t
AVRCP status and error codes.
Definition avrcp.h:157
int bt_avrcp_tg_play_item(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status)
Send response for PDU ID BT_AVRCP_PDU_ID_PLAY_ITEM.
int bt_avrcp_tg_get_folder_items(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Send the Get Folder Items response.
int bt_avrcp_ct_set_addressed_player(struct bt_avrcp_ct *ct, uint8_t tid, uint16_t player_id)
Send AVRCP vendor dependent command for SET_ADDRESSED_PLAYER.
int bt_avrcp_connect(struct bt_conn *conn)
Connect AVRCP.
int bt_avrcp_ct_register_cb(const struct bt_avrcp_ct_cb *cb)
Register callback.
bt_avrcp_subunit_type_t
AV/C subunit type, also used for unit type.
Definition avrcp.h:75
int bt_avrcp_tg_register_cb(const struct bt_avrcp_tg_cb *cb)
Register callback.
int bt_avrcp_ct_add_to_now_playing(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf)
Send AVRCP vendor dependent command for ADD_TO_NOW_PLAYING.
int bt_avrcp_disconnect(struct bt_conn *conn)
Disconnect AVRCP.
bt_avrcp_player_attr_id_t
AVRCP Player Application Setting Attribute IDs.
Definition avrcp.h:609
bt_avrcp_charset_t
AVRCP Character Set IDs.
Definition avrcp.h:338
int bt_avrcp_tg_get_element_attrs(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status, struct net_buf *buf)
Send response for PDU ID BT_AVRCP_PDU_ID_GET_ELEMENT_ATTRS.
int bt_avrcp_tg_change_path(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status, uint32_t num_items)
Send the Change Path response.
int bt_avrcp_tg_get_player_app_setting_val_text(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status, struct net_buf *buf)
Send response for PDU ID BT_AVRCP_PDU_ID_GET_PLAYER_APP_SETTING_VAL_TEXT.
bt_avrcp_shuffle_value_t
AVRCP Player Application Setting Values for Shuffle.
Definition avrcp.h:631
int bt_avrcp_ct_set_player_app_setting_val(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf)
Send AVRCP vendor dependent command for SET_PLAYER_APP_SETTING_VAL.
int bt_avrcp_tg_set_player_app_setting_val(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status)
Send response for PDU ID BT_AVRCP_PDU_ID_SET_PLAYER_APP_SETTING_VAL.
int bt_avrcp_browsing_disconnect(struct bt_conn *conn)
Disconnect AVRCP browsing channel.
int bt_avrcp_tg_inform_batt_status_of_ct(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status)
Send response for PDU ID BT_AVRCP_PDU_ID_INFORM_BATT_STATUS_OF_CT.
bt_avrcp_scope_t
AVRCP Scope Values.
Definition avrcp.h:343
int bt_avrcp_tg_browsing_general_reject(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status)
Send General Reject response on the AVRCP Browsing channel (TG).
int bt_avrcp_ct_set_browsed_player(struct bt_avrcp_ct *ct, uint8_t tid, uint16_t player_id)
Set browsed player.
int bt_avrcp_tg_get_curr_player_app_setting_val(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status, struct net_buf *buf)
Send response for PDU ID BT_AVRCP_PDU_ID_GET_CURR_PLAYER_APP_SETTING_VAL.
int bt_avrcp_ct_inform_displayable_char_set(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf)
Send AVRCP vendor dependent command for INFORM_DISPLAYABLE_CHAR_SET.
int bt_avrcp_ct_register_notification(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t event_id, uint32_t interval, bt_avrcp_notify_changed_cb_t cb)
Register for AVRCP changed notifications with callback.
int bt_avrcp_tg_list_player_app_setting_attrs(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status, struct net_buf *buf)
Send response for PDU ID BT_AVRCP_PDU_ID_LIST_PLAYER_APP_SETTING_ATTRS.
int bt_avrcp_ct_change_path(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf)
Change Path.
int bt_avrcp_ct_search(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf)
Search.
int bt_avrcp_ct_play_item(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf)
Send AVRCP vendor dependent command for PLAY_ITEM.
void(* bt_avrcp_notify_changed_cb_t)(struct bt_avrcp_ct *ct, uint8_t event_id, struct bt_avrcp_event_data *data)
Callback for AVRCP event notifications (CHANGED only).
Definition avrcp.h:836
bt_avrcp_rsp_t
AV/C response codes.
Definition avrcp.h:63
int bt_avrcp_tg_send_subunit_info_rsp(struct bt_avrcp_tg *tg, uint8_t tid)
Send the subunit info response.
bt_avrcp_item_type_t
AVRCP item types (for browsing GetFolderItems, etc.).
Definition avrcp.h:395
bt_avrcp_cap_t
AVRCP Capability ID.
Definition avrcp.h:31
struct net_buf * bt_avrcp_create_pdu(struct net_buf_pool *pool)
Allocate a net_buf for AVRCP PDU transmission, reserving headroom for AVRCP, AVRCTP,...
int bt_avrcp_browsing_connect(struct bt_conn *conn)
Connect AVRCP browsing channel.
bt_avrcp_media_type_t
AVRCP media types (for media element items).
Definition avrcp.h:368
int bt_avrcp_tg_send_passthrough_rsp(struct bt_avrcp_tg *tg, uint8_t tid, bt_avrcp_rsp_t result, struct net_buf *buf)
Send AVRCP Pass Through response.
int bt_avrcp_ct_get_player_app_setting_val_text(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf)
Send AVRCP vendor dependent command for GET_PLAYER_APP_SETTING_VAL_TEXT.
struct net_buf * bt_avrcp_create_vendor_pdu(struct net_buf_pool *pool)
Allocate a net_buf for AVRCP Vendor-Dependent PDU transmission, reserving headroom for the Vendor PDU...
int bt_avrcp_tg_absolute_volume(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status, uint8_t absolute_volume)
Send Set Absolute Volume response (TG).
int bt_avrcp_tg_get_caps(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status, struct net_buf *buf)
Send GET_CAPABILITIES response.
int bt_avrcp_ct_get_folder_items(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf)
Get Folder Items.
int bt_avrcp_tg_set_addressed_player(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status)
Send response for PDU ID BT_AVRCP_PDU_ID_SET_ADDRESSED_PLAYER.
int bt_avrcp_tg_inform_displayable_char_set(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status)
Send response for PDU ID BT_AVRCP_PDU_ID_INFORM_DISPLAYABLE_CHAR_SET.
int bt_avrcp_ct_get_total_number_of_items(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t scope)
Get Total Number Of Items.
int bt_avrcp_ct_list_player_app_setting_attrs(struct bt_avrcp_ct *ct, uint8_t tid)
Send AVRCP vendor dependent command for LIST_PLAYER_APP_SETTING_ATTRS.
#define BT_AVRCP_COMPANY_ID_SIZE
Definition avrcp.h:27
bt_avrcp_equalizer_value_t
AVRCP Player Application Setting Values for Equalizer.
Definition avrcp.h:617
int bt_avrcp_tg_list_player_app_setting_vals(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status, struct net_buf *buf)
Send response for PDU ID BT_AVRCP_PDU_ID_LIST_PLAYER_APP_SETTING_VALS.
int bt_avrcp_ct_inform_batt_status_of_ct(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t battery_status)
Send AVRCP vendor dependent command for INFORM_BATT_STATUS_OF_CT.
int bt_avrcp_tg_send_unit_info_rsp(struct bt_avrcp_tg *tg, uint8_t tid, struct bt_avrcp_unit_info_rsp *rsp)
Send the unit info response.
int bt_avrcp_tg_get_total_number_of_items(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Send the Get Total Number Of Items response.
bt_avrcp_evt_t
AVRCP Notification Events.
Definition avrcp.h:37
int bt_avrcp_ct_get_element_attrs(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf)
Send AVRCP vendor dependent command for GET_ELEMENT_ATTRS.
int bt_avrcp_tg_add_to_now_playing(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t status)
Send response for PDU ID BT_AVRCP_PDU_ID_ADD_TO_NOW_PLAYING.
@ BT_AVRCP_CHANGE_PATH_CHILD
Navigate to child folder.
Definition avrcp.h:353
@ BT_AVRCP_CHANGE_PATH_PARENT
Navigate to parent folder.
Definition avrcp.h:352
@ BT_AVRCP_FOLDER_TYPE_MIXED
Mixed folder type.
Definition avrcp.h:358
@ BT_AVRCP_FOLDER_TYPE_YEARS
Years folder.
Definition avrcp.h:364
@ BT_AVRCP_FOLDER_TYPE_GENRES
Genres folder.
Definition avrcp.h:362
@ BT_AVRCP_FOLDER_TYPE_TITLES
Titles folder.
Definition avrcp.h:359
@ BT_AVRCP_FOLDER_TYPE_PLAYLISTS
Playlists folder.
Definition avrcp.h:363
@ BT_AVRCP_FOLDER_TYPE_ARTISTS
Artists folder.
Definition avrcp.h:361
@ BT_AVRCP_FOLDER_TYPE_ALBUMS
Albums folder.
Definition avrcp.h:360
@ BT_AVRCP_MEDIA_ATTR_ID_PLAYING_TIME
Playing time in milliseconds.
Definition avrcp.h:381
@ BT_AVRCP_MEDIA_ATTR_ID_ALBUM
Album name.
Definition avrcp.h:377
@ BT_AVRCP_MEDIA_ATTR_ID_TOTAL_TRACKS
Total number of tracks.
Definition avrcp.h:379
@ BT_AVRCP_MEDIA_ATTR_ID_ARTIST
Artist name.
Definition avrcp.h:376
@ BT_AVRCP_MEDIA_ATTR_ID_GENRE
Genre.
Definition avrcp.h:380
@ BT_AVRCP_MEDIA_ATTR_ID_DEFAULT_COVER_ART
Default cover art.
Definition avrcp.h:382
@ BT_AVRCP_MEDIA_ATTR_ID_TRACK_NUMBER
Track number.
Definition avrcp.h:378
@ BT_AVRCP_MEDIA_ATTR_ID_TITLE
Title of media.
Definition avrcp.h:375
@ BT_AVRCP_SYSTEM_STATUS_UNPLUGGED
Definition avrcp.h:580
@ BT_AVRCP_SYSTEM_STATUS_POWER_OFF
Definition avrcp.h:579
@ BT_AVRCP_SYSTEM_STATUS_POWER_ON
Definition avrcp.h:578
@ BT_AVRCP_BUTTON_RELEASED
Definition avrcp.h:149
@ BT_AVRCP_BUTTON_PRESSED
Definition avrcp.h:148
@ BT_AVRCP_REPEAT_MODE_SINGLE_TRACK
Definition avrcp.h:625
@ BT_AVRCP_REPEAT_MODE_OFF
Definition avrcp.h:624
@ BT_AVRCP_REPEAT_MODE_GROUP
Definition avrcp.h:627
@ BT_AVRCP_REPEAT_MODE_ALL_TRACKS
Definition avrcp.h:626
@ BT_AVRCP_CTYPE_GENERAL_INQUIRY
Definition avrcp.h:59
@ BT_AVRCP_CTYPE_CONTROL
Definition avrcp.h:55
@ BT_AVRCP_CTYPE_STATUS
Definition avrcp.h:56
@ BT_AVRCP_CTYPE_SPECIFIC_INQUIRY
Definition avrcp.h:57
@ BT_AVRCP_CTYPE_NOTIFY
Definition avrcp.h:58
@ BT_AVRCP_BATTERY_STATUS_EXTERNAL
Definition avrcp.h:588
@ BT_AVRCP_BATTERY_STATUS_WARNING
Definition avrcp.h:586
@ BT_AVRCP_BATTERY_STATUS_FULL
Definition avrcp.h:589
@ BT_AVRCP_BATTERY_STATUS_CRITICAL
Definition avrcp.h:587
@ BT_AVRCP_BATTERY_STATUS_NORMAL
Definition avrcp.h:585
@ BT_AVRCP_OPID_ROOT_MENU
Definition avrcp.h:91
@ BT_AVRCP_OPID_BACKWARD
Definition avrcp.h:133
@ BT_AVRCP_OPID_FORWARD
Definition avrcp.h:132
@ BT_AVRCP_OPID_F4
Definition avrcp.h:141
@ BT_AVRCP_OPID_6
Definition avrcp.h:103
@ BT_AVRCP_OPID_9
Definition avrcp.h:106
@ BT_AVRCP_OPID_DOWN
Definition avrcp.h:84
@ BT_AVRCP_OPID_PAUSE
Definition avrcp.h:127
@ BT_AVRCP_OPID_F3
Definition avrcp.h:140
@ BT_AVRCP_OPID_SOUND_SELECT
Definition avrcp.h:114
@ BT_AVRCP_OPID_4
Definition avrcp.h:101
@ BT_AVRCP_OPID_ENTER
Definition avrcp.h:108
@ BT_AVRCP_OPID_CHANNEL_DOWN
Definition avrcp.h:112
@ BT_AVRCP_OPID_PAGE_DOWN
Definition avrcp.h:119
@ BT_AVRCP_OPID_PREVIOUS_CHANNEL
Definition avrcp.h:113
@ BT_AVRCP_OPID_FAVORITE_MENU
Definition avrcp.h:94
@ BT_AVRCP_OPID_VOLUME_DOWN
Definition avrcp.h:123
@ BT_AVRCP_OPID_REWIND
Definition avrcp.h:129
@ BT_AVRCP_OPID_MUTE
Definition avrcp.h:124
@ BT_AVRCP_OPID_DOT
Definition avrcp.h:107
@ BT_AVRCP_OPID_RIGHT_DOWN
Definition avrcp.h:88
@ BT_AVRCP_OPID_LEFT_DOWN
Definition avrcp.h:90
@ BT_AVRCP_OPID_STOP
Definition avrcp.h:126
@ BT_AVRCP_OPID_FAST_FORWARD
Definition avrcp.h:130
@ BT_AVRCP_OPID_LEFT
Definition avrcp.h:85
@ BT_AVRCP_OPID_DISPLAY_INFORMATION
Definition avrcp.h:116
@ BT_AVRCP_OPID_SETUP_MENU
Definition avrcp.h:92
@ BT_AVRCP_OPID_RIGHT_UP
Definition avrcp.h:87
@ BT_AVRCP_OPID_RECORD
Definition avrcp.h:128
@ BT_AVRCP_OPID_LEFT_UP
Definition avrcp.h:89
@ BT_AVRCP_OPID_F5
Definition avrcp.h:142
@ BT_AVRCP_OPID_F2
Definition avrcp.h:139
@ BT_AVRCP_OPID_INPUT_SELECT
Definition avrcp.h:115
@ BT_AVRCP_OPID_RIGHT
Definition avrcp.h:86
@ BT_AVRCP_OPID_F1
Definition avrcp.h:138
@ BT_AVRCP_OPID_5
Definition avrcp.h:102
@ BT_AVRCP_OPID_PAGE_UP
Definition avrcp.h:118
@ BT_AVRCP_OPID_1
Definition avrcp.h:98
@ BT_AVRCP_OPID_POWER
Definition avrcp.h:121
@ BT_AVRCP_OPID_EXIT
Definition avrcp.h:95
@ BT_AVRCP_OPID_CONTENTS_MENU
Definition avrcp.h:93
@ BT_AVRCP_OPID_7
Definition avrcp.h:104
@ BT_AVRCP_OPID_UP
Definition avrcp.h:83
@ BT_AVRCP_OPID_HELP
Definition avrcp.h:117
@ BT_AVRCP_OPID_SUBPICTURE
Definition avrcp.h:136
@ BT_AVRCP_OPID_8
Definition avrcp.h:105
@ BT_AVRCP_OPID_2
Definition avrcp.h:99
@ BT_AVRCP_OPID_SELECT
Definition avrcp.h:82
@ BT_AVRCP_OPID_CHANNEL_UP
Definition avrcp.h:111
@ BT_AVRCP_OPID_VENDOR_UNIQUE
Definition avrcp.h:143
@ BT_AVRCP_OPID_EJECT
Definition avrcp.h:131
@ BT_AVRCP_OPID_CLEAR
Definition avrcp.h:109
@ BT_AVRCP_OPID_0
Definition avrcp.h:97
@ BT_AVRCP_OPID_PLAY
Definition avrcp.h:125
@ BT_AVRCP_OPID_3
Definition avrcp.h:100
@ BT_AVRCP_OPID_VOLUME_UP
Definition avrcp.h:122
@ BT_AVRCP_OPID_ANGLE
Definition avrcp.h:135
@ BT_AVRCP_PLAYBACK_STATUS_ERROR
Definition avrcp.h:573
@ BT_AVRCP_PLAYBACK_STATUS_PAUSED
Definition avrcp.h:570
@ BT_AVRCP_PLAYBACK_STATUS_REV_SEEK
Definition avrcp.h:572
@ BT_AVRCP_PLAYBACK_STATUS_STOPPED
Definition avrcp.h:568
@ BT_AVRCP_PLAYBACK_STATUS_FWD_SEEK
Definition avrcp.h:571
@ BT_AVRCP_PLAYBACK_STATUS_PLAYING
Definition avrcp.h:569
@ BT_AVRCP_SCAN_ALL_TRACKS
Definition avrcp.h:640
@ BT_AVRCP_SCAN_GROUP
Definition avrcp.h:641
@ BT_AVRCP_SCAN_OFF
Definition avrcp.h:639
@ BT_AVRCP_STATUS_NO_VALID_SEARCH_RESULTS
No valid search results.
Definition avrcp.h:257
@ BT_AVRCP_STATUS_UID_CHANGED
The UIDs on the device have changed.
Definition avrcp.h:186
@ BT_AVRCP_STATUS_NOT_IMPLEMENTED
Not implemented response.
Definition avrcp.h:279
@ BT_AVRCP_STATUS_INVALID_COMMAND
Invalid command.
Definition avrcp.h:161
@ BT_AVRCP_STATUS_PLAYER_NOT_BROWSABLE
Player not browsable.
Definition avrcp.h:247
@ BT_AVRCP_STATUS_FOLDER_ITEM_IS_NOT_PLAYABLE
Folder item is not playable.
Definition avrcp.h:217
@ BT_AVRCP_STATUS_NOW_PLAYING_LIST_FULL
Now Playing List full.
Definition avrcp.h:227
@ BT_AVRCP_STATUS_PLAYER_NOT_ADDRESSED
Player not addressed.
Definition avrcp.h:252
@ BT_AVRCP_STATUS_SEARCH_IN_PROGRESS
Search in progress.
Definition avrcp.h:237
@ BT_AVRCP_STATUS_ADDRESSED_PLAYER_CHANGED
Addressed player changed.
Definition avrcp.h:267
@ BT_AVRCP_STATUS_INVALID_DIRECTION
The Direction parameter is invalid.
Definition avrcp.h:191
@ BT_AVRCP_STATUS_SEARCH_NOT_SUPPORTED
Search not supported.
Definition avrcp.h:232
@ BT_AVRCP_STATUS_NO_AVAILABLE_PLAYERS
No available players.
Definition avrcp.h:262
@ BT_AVRCP_STATUS_INVALID_PLAYER_ID
The specified Player Id does not refer to a valid player.
Definition avrcp.h:242
@ BT_AVRCP_STATUS_NOT_A_DIRECTORY
The UID provided does not refer to a folder item.
Definition avrcp.h:196
@ BT_AVRCP_STATUS_PARAMETER_CONTENT_ERROR
Parameter content error.
Definition avrcp.h:171
@ BT_AVRCP_STATUS_RANGE_OUT_OF_BOUNDS
Range out of bounds.
Definition avrcp.h:212
@ BT_AVRCP_STATUS_INVALID_PARAMETER
Invalid parameter.
Definition avrcp.h:166
@ BT_AVRCP_STATUS_DOES_NOT_EXIST
The UID provided does not refer to any currently valid item.
Definition avrcp.h:201
@ BT_AVRCP_STATUS_INVALID_SCOPE
Invalid scope.
Definition avrcp.h:207
@ BT_AVRCP_STATUS_OPERATION_COMPLETED
Operation completed without error.
Definition avrcp.h:181
@ BT_AVRCP_STATUS_MEDIA_IN_USE
Media in use.
Definition avrcp.h:222
@ BT_AVRCP_STATUS_INTERNAL_ERROR
Internal error.
Definition avrcp.h:176
@ BT_AVRCP_STATUS_IN_TRANSITION
In transition response.
Definition avrcp.h:273
@ BT_AVRCP_STATUS_SUCCESS
Successful response.
Definition avrcp.h:287
@ BT_AVRCP_SUBUNIT_TYPE_PANEL
Definition avrcp.h:76
@ BT_AVRCP_SUBUNIT_TYPE_UNIT
Definition avrcp.h:77
@ BT_AVRCP_PLAYER_ATTR_EQUALIZER
Definition avrcp.h:610
@ BT_AVRCP_PLAYER_ATTR_SHUFFLE
Definition avrcp.h:612
@ BT_AVRCP_PLAYER_ATTR_SCAN
Definition avrcp.h:613
@ BT_AVRCP_PLAYER_ATTR_REPEAT_MODE
Definition avrcp.h:611
@ BT_AVRCP_CHARSET_UTF8
Definition avrcp.h:339
@ BT_AVRCP_SHUFFLE_GROUP
Definition avrcp.h:634
@ BT_AVRCP_SHUFFLE_OFF
Definition avrcp.h:632
@ BT_AVRCP_SHUFFLE_ALL_TRACKS
Definition avrcp.h:633
@ BT_AVRCP_SCOPE_VFS
Virtual File System.
Definition avrcp.h:345
@ BT_AVRCP_SCOPE_SEARCH
Search.
Definition avrcp.h:346
@ BT_AVRCP_SCOPE_MEDIA_PLAYER_LIST
Media Player List.
Definition avrcp.h:344
@ BT_AVRCP_SCOPE_NOW_PLAYING
Now Playing.
Definition avrcp.h:347
@ BT_AVRCP_RSP_REJECTED
Definition avrcp.h:66
@ BT_AVRCP_RSP_ACCEPTED
Definition avrcp.h:65
@ BT_AVRCP_RSP_STABLE
For STATUS commands.
Definition avrcp.h:69
@ BT_AVRCP_RSP_INTERIM
Definition avrcp.h:71
@ BT_AVRCP_RSP_NOT_IMPLEMENTED
Definition avrcp.h:64
@ BT_AVRCP_RSP_IMPLEMENTED
For SPECIFIC_INQUIRY and GENERAL_INQUIRY commands.
Definition avrcp.h:68
@ BT_AVRCP_RSP_IN_TRANSITION
Definition avrcp.h:67
@ BT_AVRCP_RSP_CHANGED
Definition avrcp.h:70
@ BT_AVRCP_ITEM_TYPE_MEDIA_ELEMENT
Media element item.
Definition avrcp.h:398
@ BT_AVRCP_ITEM_TYPE_MEDIA_PLAYER
Media player item.
Definition avrcp.h:396
@ BT_AVRCP_ITEM_TYPE_FOLDER
Folder item.
Definition avrcp.h:397
@ BT_AVRCP_CAP_EVENTS_SUPPORTED
Definition avrcp.h:33
@ BT_AVRCP_CAP_COMPANY_ID
Definition avrcp.h:32
@ BT_AVRCP_MEDIA_TYPE_VIDEO
Video media.
Definition avrcp.h:370
@ BT_AVRCP_MEDIA_TYPE_AUDIO
Audio media.
Definition avrcp.h:369
@ BT_AVRCP_EQUALIZER_OFF
Definition avrcp.h:618
@ BT_AVRCP_EQUALIZER_ON
Definition avrcp.h:619
@ BT_AVRCP_EVT_TRACK_CHANGED
Definition avrcp.h:39
@ BT_AVRCP_EVT_TRACK_REACHED_END
Definition avrcp.h:40
@ BT_AVRCP_EVT_PLAYBACK_STATUS_CHANGED
Definition avrcp.h:38
@ BT_AVRCP_EVT_UIDS_CHANGED
Definition avrcp.h:49
@ BT_AVRCP_EVT_VOLUME_CHANGED
Definition avrcp.h:50
@ BT_AVRCP_EVT_BATT_STATUS_CHANGED
Definition avrcp.h:43
@ BT_AVRCP_EVT_PLAYER_APP_SETTING_CHANGED
Definition avrcp.h:45
@ BT_AVRCP_EVT_ADDRESSED_PLAYER_CHANGED
Definition avrcp.h:48
@ BT_AVRCP_EVT_AVAILABLE_PLAYERS_CHANGED
Definition avrcp.h:47
@ BT_AVRCP_EVT_NOW_PLAYING_CONTENT_CHANGED
Definition avrcp.h:46
@ BT_AVRCP_EVT_SYSTEM_STATUS_CHANGED
Definition avrcp.h:44
@ BT_AVRCP_EVT_TRACK_REACHED_START
Definition avrcp.h:41
@ BT_AVRCP_EVT_PLAYBACK_POS_CHANGED
Definition avrcp.h:42
state
Definition parser_state.h:29
__UINT32_TYPE__ uint32_t
Definition stdint.h:90
__UINT8_TYPE__ uint8_t
Definition stdint.h:88
__UINT16_TYPE__ uint16_t
Definition stdint.h:89
AddToNowPlaying command request.
Definition avrcp.h:773
uint16_t uid_counter
UID counter.
Definition avrcp.h:776
uint8_t uid[8]
UID of the item.
Definition avrcp.h:775
uint8_t scope
Scope: bt_avrcp_scope_t.
Definition avrcp.h:774
AVRCP Attribute Text Entry.
Definition avrcp.h:692
uint8_t text[]
Text string.
Definition avrcp.h:696
uint8_t attr_id
Attribute ID.
Definition avrcp.h:693
uint8_t text_len
Length of text.
Definition avrcp.h:695
uint16_t charset_id
Charset ID.
Definition avrcp.h:694
AVRCP Attribute-Value Pair.
Definition avrcp.h:668
uint8_t value_id
Value ID.
Definition avrcp.h:670
uint8_t attr_id
Attribute ID.
Definition avrcp.h:669
AVRCP Attribute Text Entry.
Definition avrcp.h:713
uint16_t charset_id
Charset ID.
Definition avrcp.h:715
uint8_t value_id
Value ID.
Definition avrcp.h:714
uint8_t text[]
Text string.
Definition avrcp.h:717
uint8_t text_len
Length of text.
Definition avrcp.h:716
ChangePath command request.
Definition avrcp.h:491
uint8_t folder_uid[8]
64-bit Folder UID
Definition avrcp.h:494
uint8_t direction
change path direction bt_avrcp_change_path_t
Definition avrcp.h:493
uint16_t uid_counter
UID counter.
Definition avrcp.h:492
ChangePath response.
Definition avrcp.h:498
uint32_t num_items
Number of items in the new folder.
Definition avrcp.h:500
uint8_t status
bt_avrcp_status_t
Definition avrcp.h:499
Definition avrcp.h:839
void(* get_player_app_setting_attr_text)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status, struct net_buf *buf)
Callback for PDU ID GET_PLAYER_APP_SETTING_ATTR_TEXT.
Definition avrcp.h:1161
void(* notification)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status, uint8_t event_id, struct bt_avrcp_event_data *data)
Callback function for Event Notification response (CT).
Definition avrcp.h:1057
void(* search)(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf)
Callback function for bt_avrcp_ct_search().
Definition avrcp.h:1019
void(* connected)(struct bt_conn *conn, struct bt_avrcp_ct *ct)
An AVRCP CT connection has been established.
Definition avrcp.h:848
void(* get_caps)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status, struct net_buf *buf)
Callback function for bt_avrcp_get_caps().
Definition avrcp.h:897
void(* inform_batt_status_of_ct)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status)
Callback for PDU ID INFORM_BATT_STATUS_OF_CT.
Definition avrcp.h:1210
void(* get_folder_items)(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf)
Callback function for bt_avrcp_ct_get_folder_items().
Definition avrcp.h:961
void(* browsing_connected)(struct bt_conn *conn, struct bt_avrcp_ct *ct)
An AVRCP CT browsing connection has been established.
Definition avrcp.h:867
void(* list_player_app_setting_attrs)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status, struct net_buf *buf)
Callback for PDU ID LIST_PLAYER_APP_SETTING_ATTRS.
Definition avrcp.h:1080
void(* get_total_number_of_items)(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf)
Callback function for bt_avrcp_ct_get_total_number_of_items().
Definition avrcp.h:1004
void(* subunit_info_rsp)(struct bt_avrcp_ct *ct, uint8_t tid, struct bt_avrcp_subunit_info_rsp *rsp)
Callback function for bt_avrcp_get_subunit_info().
Definition avrcp.h:918
void(* set_player_app_setting_val)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status)
Callback for PDU ID SET_PLAYER_APP_SETTING_VAL.
Definition avrcp.h:1140
void(* set_addressed_player)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status)
Callback for PDU ID SET_ADDRESSED_PLAYER.
Definition avrcp.h:1282
void(* passthrough_rsp)(struct bt_avrcp_ct *ct, uint8_t tid, bt_avrcp_rsp_t result, const struct bt_avrcp_passthrough_rsp *rsp)
Callback function for bt_avrcp_passthrough().
Definition avrcp.h:930
void(* set_browsed_player)(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf)
Callback function for bt_avrcp_ct_set_browsed_player().
Definition avrcp.h:946
void(* play_item)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status)
Callback for PDU ID PLAY_ITEM.
Definition avrcp.h:1295
void(* inform_displayable_char_set)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status)
Callback for PDU ID INFORM_DISPLAYABLE_CHAR_SET.
Definition avrcp.h:1197
void(* browsing_general_reject)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status)
Callback function for browsing channel general reject responses.
Definition avrcp.h:1030
void(* list_player_app_setting_vals)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status, struct net_buf *buf)
Callback for PDU ID LIST_PLAYER_APP_SETTING_VALS.
Definition avrcp.h:1103
void(* disconnected)(struct bt_avrcp_ct *ct)
An AVRCP CT connection has been disconnected.
Definition avrcp.h:857
void(* get_play_status)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status, struct net_buf *buf)
Callback for PDU ID GET_PLAY_STATUS.
Definition avrcp.h:1268
void(* get_player_app_setting_val_text)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status, struct net_buf *buf)
Callback for PDU ID GET_PLAYER_APP_SETTING_VAL_TEXT.
Definition avrcp.h:1183
void(* get_curr_player_app_setting_val)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status, struct net_buf *buf)
Callback for PDU ID GET_CURR_PLAYER_APP_SETTING_VAL.
Definition avrcp.h:1126
void(* unit_info_rsp)(struct bt_avrcp_ct *ct, uint8_t tid, struct bt_avrcp_unit_info_rsp *rsp)
Callback function for bt_avrcp_get_unit_info().
Definition avrcp.h:907
void(* get_element_attrs)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status, struct net_buf *buf)
Callback for PDU ID GET_ELEMENT_ATTRS.
Definition avrcp.h:1246
void(* set_absolute_volume)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status, uint8_t absolute_volume)
Callback function for Set Absolute Volume response (CT).
Definition avrcp.h:1224
void(* get_item_attrs)(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf)
Callback function for bt_avrcp_ct_get_item_attrs().
Definition avrcp.h:989
void(* add_to_now_playing)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status)
Callback for PDU ID ADD_TO_NOW_PLAYING.
Definition avrcp.h:1308
void(* browsing_disconnected)(struct bt_avrcp_ct *ct)
An AVRCP CT browsing connection has been disconnected.
Definition avrcp.h:876
void(* change_path)(struct bt_avrcp_ct *ct, uint8_t tid, uint8_t status, uint32_t num_items)
Callback function for bt_avrcp_ct_change_path().
Definition avrcp.h:973
Definition avrcp.h:779
uint8_t identifier[8]
Definition avrcp.h:785
struct bt_avrcp_event_data::@257146241107017275103301331176062107266015056107::@050163204331037176011217265126316251256154336273 addressed_player_changed
uint8_t system_status
Definition avrcp.h:794
uint8_t num_of_attr
Definition avrcp.h:798
uint16_t uid_counter
Definition avrcp.h:805
struct bt_avrcp_event_data::@257146241107017275103301331176062107266015056107::@312063362210104176244252166322271304063266050351 setting_changed
uint32_t playback_pos
Definition avrcp.h:788
uint8_t battery_status
Definition avrcp.h:791
uint16_t player_id
Definition avrcp.h:804
struct bt_avrcp_app_setting_attr_val * attr_vals
Definition avrcp.h:799
uint8_t play_status
Definition avrcp.h:782
uint8_t absolute_volume
Definition avrcp.h:812
Folder item (item_type=0x02).
Definition avrcp.h:421
uint8_t playable
0=non-playable, 1=playable
Definition avrcp.h:425
uint8_t name[]
Folder name string data.
Definition avrcp.h:428
struct bt_avrcp_item_hdr hdr
Definition avrcp.h:422
uint16_t name_len
Length of the name in bytes.
Definition avrcp.h:427
uint8_t uid[8]
64-bit Folder UID
Definition avrcp.h:423
uint16_t charset_id
Character set ID for name, see bt_avrcp_charset_t.
Definition avrcp.h:426
uint8_t folder_type
bt_avrcp_folder_type_t
Definition avrcp.h:424
get folder name (response)
Definition avrcp.h:551
uint8_t folder_name[]
Definition avrcp.h:553
uint16_t folder_name_len
Definition avrcp.h:552
Definition avrcp.h:331
uint8_t cap_cnt
number of items contained in *cap
Definition avrcp.h:333
uint8_t cap_id
bt_avrcp_cap_t
Definition avrcp.h:332
uint8_t cap[]
1 or 3 octets each depends on cap_id
Definition avrcp.h:334
GetCurrentPlayerApplicationSettingValue command request.
Definition avrcp.h:662
uint8_t attr_ids[]
Array of attribute IDs.
Definition avrcp.h:664
uint8_t num_attrs
Number of attributes to query.
Definition avrcp.h:663
GetCurrentPlayerApplicationSettingValue response.
Definition avrcp.h:674
uint8_t num_attrs
Number of attributes returned.
Definition avrcp.h:675
struct bt_avrcp_app_setting_attr_val attr_vals[]
Array of attribute-value pairs.
Definition avrcp.h:676
GetElementAttributes command request structure.
Definition avrcp.h:596
uint32_t attr_ids[]
Array of attribute IDs bt_avrcp_media_attr_id_t.
Definition avrcp.h:599
uint8_t num_attrs
Number of attributes requested (0 = all).
Definition avrcp.h:598
uint8_t identifier[8]
Element identifier (0x0 for currently playing).
Definition avrcp.h:597
GetElementAttributes response structure.
Definition avrcp.h:603
struct bt_avrcp_media_attr attrs[]
Array of media attributes.
Definition avrcp.h:605
uint8_t num_attrs
Number of attributes in response.
Definition avrcp.h:604
GetFolderItems command request.
Definition avrcp.h:386
uint8_t attr_count
0x00=all, 0x01..0xFE=count, 0xFF=none
Definition avrcp.h:390
uint32_t attr_ids[]
Attribute IDs bt_avrcp_media_attr_id_t.
Definition avrcp.h:391
uint32_t end_item
End item index (inclusive).
Definition avrcp.h:389
uint32_t start_item
Start item index.
Definition avrcp.h:388
uint8_t scope
bt_avrcp_scope_t
Definition avrcp.h:387
GetFolderItems response.
Definition avrcp.h:483
uint8_t items[]
Sequence of items, each begins with bt_avrcp_item_hdr.
Definition avrcp.h:487
uint16_t num_items
Number of items in this response.
Definition avrcp.h:486
uint16_t uid_counter
UID counter.
Definition avrcp.h:485
uint8_t status
bt_avrcp_status_t
Definition avrcp.h:484
GetItemAttributes command request.
Definition avrcp.h:504
uint32_t attr_ids[]
Attribute IDs bt_avrcp_media_attr_id_t.
Definition avrcp.h:509
uint8_t scope
bt_avrcp_scope_t
Definition avrcp.h:505
uint8_t num_attrs
0x00 = all attributes, else count
Definition avrcp.h:508
uint16_t uid_counter
UID counter.
Definition avrcp.h:507
uint8_t uid[8]
64-bit UID of the item
Definition avrcp.h:506
GetItemAttributes response.
Definition avrcp.h:513
uint8_t status
bt_avrcp_status_t
Definition avrcp.h:514
struct bt_avrcp_media_attr attrs[]
attribute tuples (id/charset/len/value)
Definition avrcp.h:516
uint8_t num_attrs
Number of attributes.
Definition avrcp.h:515
GetPlayStatus response.
Definition avrcp.h:738
uint8_t play_status
Play status: bt_avrcp_playback_status_t.
Definition avrcp.h:741
uint32_t song_position
Current position in the song in milliseconds.
Definition avrcp.h:740
uint32_t song_length
Total length of the song in milliseconds.
Definition avrcp.h:739
GetPlayerApplicationSettingAttributeText command request.
Definition avrcp.h:686
uint8_t num_attrs
Number of attributes to get text for.
Definition avrcp.h:687
uint8_t attr_ids[]
Array of attribute IDs.
Definition avrcp.h:688
GetPlayerApplicationSettingAttributeText response.
Definition avrcp.h:700
struct bt_avrcp_app_setting_attr_text attr_text[]
Definition avrcp.h:702
uint8_t num_attrs
Number of attributes returned.
Definition avrcp.h:701
GetPlayerApplicationSettingValueText command request.
Definition avrcp.h:706
uint8_t attr_id
Attribute ID.
Definition avrcp.h:707
uint8_t value_ids[]
Array of value IDs.
Definition avrcp.h:709
uint8_t num_values
Number of values to get text for.
Definition avrcp.h:708
GetPlayerApplicationSettingValueText response.
Definition avrcp.h:721
uint8_t num_values
Number of values returned.
Definition avrcp.h:722
struct bt_avrcp_app_setting_val_text value_text[]
Definition avrcp.h:723
GetTotalNumberOfItems command request.
Definition avrcp.h:525
uint8_t scope
bt_avrcp_scope_t
Definition avrcp.h:526
GetTotalNumberOfItems response.
Definition avrcp.h:530
uint16_t uid_counter
UID counter.
Definition avrcp.h:532
uint8_t status
bt_avrcp_status_t
Definition avrcp.h:531
uint32_t num_items
Total number of items in given scope.
Definition avrcp.h:533
InformBatteryStatusOfCT command request.
Definition avrcp.h:733
uint8_t battery_status
Battery status value bt_avrcp_battery_status_t.
Definition avrcp.h:734
InformDisplayableCharacterSet command request.
Definition avrcp.h:727
uint8_t num_charsets
Number of character sets supported.
Definition avrcp.h:728
uint16_t charset_ids[]
Array of character set IDs.
Definition avrcp.h:729
Common item header for GetFolderItems response.
Definition avrcp.h:402
uint8_t item_type
bt_avrcp_item_type_t
Definition avrcp.h:403
uint16_t item_len
Length of the remaining fields of this item.
Definition avrcp.h:404
ListPlayerApplicationSettingAttributes response.
Definition avrcp.h:645
uint8_t attr_ids[]
Array of attribute IDs bt_avrcp_player_attr_id_t.
Definition avrcp.h:647
uint8_t num_attrs
Number of application setting attributes.
Definition avrcp.h:646
ListPlayerApplicationSettingValues command request.
Definition avrcp.h:651
uint8_t attr_id
Attribute ID to query values for.
Definition avrcp.h:652
ListPlayerApplicationSettingValues response.
Definition avrcp.h:656
uint8_t values[]
Array of possible values.
Definition avrcp.h:658
uint8_t num_values
Number of values for the attribute.
Definition avrcp.h:657
AVRCP Media Attribute structure.
Definition avrcp.h:432
uint16_t attr_len
Length of attribute value.
Definition avrcp.h:435
uint16_t charset_id
Character set ID, see bt_avrcp_charset_t.
Definition avrcp.h:434
uint32_t attr_id
Media attribute ID, see bt_avrcp_media_attr_id_t.
Definition avrcp.h:433
uint8_t attr_val[]
Attribute value data.
Definition avrcp.h:436
Media Element item (item_type = 0x03).
Definition avrcp.h:458
uint8_t media_type
bt_avrcp_media_type_t.
Definition avrcp.h:461
uint8_t data[]
flexible array for name and attributes.
Definition avrcp.h:462
uint8_t uid[8]
64-bit element UID.
Definition avrcp.h:460
struct bt_avrcp_item_hdr hdr
Definition avrcp.h:459
Media Player item (item_type=0x01).
Definition avrcp.h:408
uint16_t name_len
Displayable name length.
Definition avrcp.h:416
struct bt_avrcp_item_hdr hdr
Definition avrcp.h:409
uint16_t player_id
Player ID.
Definition avrcp.h:410
uint32_t player_subtype
Player Subtype.
Definition avrcp.h:412
uint8_t name[]
Displayable name.
Definition avrcp.h:417
uint8_t play_status
Play status: bt_avrcp_playback_status_t.
Definition avrcp.h:413
uint8_t feature_bitmask[16]
128-bit Feature bitmask, octet0..15
Definition avrcp.h:414
uint8_t major_type
Major Player Type.
Definition avrcp.h:411
uint16_t charset_id
Displayable name charset bt_avrcp_charset_t.
Definition avrcp.h:415
Definition avrcp.h:319
struct bt_avrcp_passthrough_opvu_data data[0]
opvu data
Definition avrcp.h:322
uint8_t data_len
Definition avrcp.h:321
uint8_t opid_state
[7]: state_flag, [6:0]: opid
Definition avrcp.h:320
Definition avrcp.h:314
uint16_t opid_vu
Definition avrcp.h:316
uint8_t company_id[(3)]
Definition avrcp.h:315
Definition avrcp.h:325
uint8_t data_len
Definition avrcp.h:327
struct bt_avrcp_passthrough_opvu_data data[0]
opvu data
Definition avrcp.h:328
uint8_t opid_state
[7]: state_flag, [6:0]: opid
Definition avrcp.h:326
PlayItem command request.
Definition avrcp.h:766
uint8_t scope
Scope: bt_avrcp_scope_t.
Definition avrcp.h:767
uint16_t uid_counter
UID counter.
Definition avrcp.h:769
uint8_t uid[8]
UID of the item.
Definition avrcp.h:768
PlayItem response.
Definition avrcp.h:520
uint8_t status
bt_avrcp_status_t
Definition avrcp.h:521
RegisterNotification command request.
Definition avrcp.h:745
uint32_t interval
Playback interval (used only for event_id = 0x05).
Definition avrcp.h:747
uint8_t event_id
Event ID to register for.
Definition avrcp.h:746
Search command request.
Definition avrcp.h:537
uint16_t search_str_len
Length of search string.
Definition avrcp.h:539
uint8_t search_str[]
Search string bytes.
Definition avrcp.h:540
uint16_t charset_id
Character set ID for str, bt_avrcp_charset_t.
Definition avrcp.h:538
Search response.
Definition avrcp.h:544
uint8_t status
bt_avrcp_status_t
Definition avrcp.h:545
uint16_t uid_counter
UID counter after search.
Definition avrcp.h:546
uint32_t num_items
Number of matching items.
Definition avrcp.h:547
SetAbsoluteVolume command request.
Definition avrcp.h:751
uint8_t absolute_volume
Volume level (0x00 to 0x7F).
Definition avrcp.h:752
SetAbsoluteVolume response.
Definition avrcp.h:756
uint8_t absolute_volume
Volume level acknowledged.
Definition avrcp.h:757
SetAddressedPlayer command request.
Definition avrcp.h:761
uint16_t player_id
Player ID to be addressed.
Definition avrcp.h:762
Set browsed player response structure.
Definition avrcp.h:557
uint16_t uid_counter
UID counter.
Definition avrcp.h:559
uint16_t charset_id
Character set ID bt_avrcp_charset_t.
Definition avrcp.h:561
uint8_t status
Status bt_avrcp_status_t.
Definition avrcp.h:558
struct bt_avrcp_folder_name folder_names[0]
Folder names data.
Definition avrcp.h:563
uint32_t num_items
Number of items in the folder.
Definition avrcp.h:560
uint8_t folder_depth
Folder depth.
Definition avrcp.h:562
SetPlayerApplicationSettingValue command request.
Definition avrcp.h:680
struct bt_avrcp_app_setting_attr_val attr_vals[]
Array of attribute-value pairs.
Definition avrcp.h:682
uint8_t num_attrs
Number of attributes to set.
Definition avrcp.h:681
Definition avrcp.h:300
const uint8_t * extended_subunit_id
contains max_subunit_id items
Definition avrcp.h:304
bt_avrcp_subunit_type_t subunit_type
Definition avrcp.h:301
const uint8_t * extended_subunit_type
contains max_subunit_id items
Definition avrcp.h:303
uint8_t max_subunit_id
Definition avrcp.h:302
Definition avrcp.h:1713
void(* get_folder_items)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Get Folder Items request callback.
Definition avrcp.h:1815
void(* set_player_app_setting_val)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Callback for PDU ID BT_AVRCP_PDU_ID_SET_PLAYER_APP_SETTING_VAL.
Definition avrcp.h:1928
void(* set_addressed_player)(struct bt_avrcp_tg *tg, uint8_t tid, uint16_t player_id)
Callback for PDU ID BT_AVRCP_PDU_ID_SET_ADDRESSED_PLAYER.
Definition avrcp.h:2020
void(* get_player_app_setting_attr_text)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Callback for PDU ID BT_AVRCP_PDU_ID_GET_PLAYER_APP_SETTING_ATTR_TEXT.
Definition avrcp.h:1941
void(* set_absolute_volume)(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t absolute_volume)
Callback function for Set Absolute Volume command (TG).
Definition avrcp.h:2001
void(* change_path)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Change Path request callback.
Definition avrcp.h:1829
void(* set_browsed_player)(struct bt_avrcp_tg *tg, uint8_t tid, uint16_t player_id)
Set browsed player request callback.
Definition avrcp.h:1801
void(* register_notification)(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t event_id, uint32_t interval)
Register notification request callback.
Definition avrcp.h:1752
void(* passthrough_req)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Pass Through command request callback.
Definition avrcp.h:1883
void(* get_curr_player_app_setting_val)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Callback for PDU ID BT_AVRCP_PDU_ID_GET_CURR_PLAYER_APP_SETTING_VAL.
Definition avrcp.h:1915
void(* get_player_app_setting_val_text)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Callback for PDU ID BT_AVRCP_PDU_ID_GET_PLAYER_APP_SETTING_VAL_TEXT.
Definition avrcp.h:1954
void(* add_to_now_playing)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Callback for PDU ID BT_AVRCP_PDU_ID_ADD_TO_NOW_PLAYING.
Definition avrcp.h:2044
void(* browsing_connected)(struct bt_conn *conn, struct bt_avrcp_tg *tg)
An AVRCP TG browsing connection has been established.
Definition avrcp.h:1782
void(* search)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Search request callback.
Definition avrcp.h:1870
void(* get_item_attrs)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Get Item Attributes request callback.
Definition avrcp.h:1843
void(* inform_batt_status_of_ct)(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t battery_status)
Callback for PDU ID BT_AVRCP_PDU_ID_INFORM_BATT_STATUS_OF_CT.
Definition avrcp.h:1978
void(* get_play_status)(struct bt_avrcp_tg *tg, uint8_t tid)
Callback for PDU ID BT_AVRCP_PDU_ID_GET_PLAY_STATUS.
Definition avrcp.h:2010
void(* connected)(struct bt_conn *conn, struct bt_avrcp_tg *tg)
An AVRCP TG connection has been established.
Definition avrcp.h:1722
void(* unit_info_req)(struct bt_avrcp_tg *tg, uint8_t tid)
Unit info request callback.
Definition avrcp.h:1740
void(* disconnected)(struct bt_avrcp_tg *tg)
An AVRCP TG connection has been disconnected.
Definition avrcp.h:1731
void(* get_caps)(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t cap_id)
Get capabilities request callback.
Definition avrcp.h:1772
void(* subunit_info_req)(struct bt_avrcp_tg *tg, uint8_t tid)
Subunit Info Request callback.
Definition avrcp.h:1762
void(* list_player_app_setting_vals)(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t attr_id)
Callback for PDU ID BT_AVRCP_PDU_ID_LIST_PLAYER_APP_SETTING_VALS.
Definition avrcp.h:1903
void(* browsing_disconnected)(struct bt_avrcp_tg *tg)
An AVRCP TG browsing connection has been disconnected.
Definition avrcp.h:1791
void(* inform_displayable_char_set)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Callback for PDU ID BT_AVRCP_PDU_ID_INFORM_DISPLAYABLE_CHAR_SET.
Definition avrcp.h:1967
void(* get_element_attrs)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Callback for PDU ID BT_AVRCP_PDU_ID_GET_ELEMENT_ATTRS.
Definition avrcp.h:1991
void(* list_player_app_setting_attrs)(struct bt_avrcp_tg *tg, uint8_t tid)
Callback for PDU ID BT_AVRCP_PDU_ID_LIST_PLAYER_APP_SETTING_ATTRS.
Definition avrcp.h:1892
void(* get_total_number_of_items)(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t scope)
Get Total Number Of Items request callback.
Definition avrcp.h:1855
void(* play_item)(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)
Callback for PDU ID BT_AVRCP_PDU_ID_PLAY_ITEM.
Definition avrcp.h:2032
Definition avrcp.h:295
uint32_t company_id
Definition avrcp.h:297
bt_avrcp_subunit_type_t unit_type
Definition avrcp.h:296
Media Element Item Attributes structure.
Definition avrcp.h:447
struct bt_avrcp_media_attr attrs[]
attribute tuples (id/charset/len/value)
Definition avrcp.h:449
uint8_t num_attrs
Number of attributes.
Definition avrcp.h:448
Media Element Item Name structure.
Definition avrcp.h:440
uint16_t name_len
Length of the name in bytes.
Definition avrcp.h:442
uint8_t name[]
Name string data.
Definition avrcp.h:443
uint16_t charset_id
Character set ID for name, see bt_avrcp_charset_t.
Definition avrcp.h:441
Network buffer pool representation.
Definition net_buf.h:1079
Network buffer representation.
Definition net_buf.h:1006
uint8_t * data
Pointer to the start of data in the buffer.
Definition net_buf.h:1032
uint16_t len
Length of the data behind the data pointer.
Definition net_buf.h:1035