Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
|
#include <zephyr/bluetooth/classic/avrcp.h>
Data Fields | |
void(* | connected )(struct bt_conn *conn, struct bt_avrcp_tg *tg) |
An AVRCP TG connection has been established. | |
void(* | disconnected )(struct bt_avrcp_tg *tg) |
An AVRCP TG connection has been disconnected. | |
void(* | unit_info_req )(struct bt_avrcp_tg *tg, uint8_t tid) |
Unit info request callback. | |
void(* | subunit_info_req )(struct bt_avrcp_tg *tg, uint8_t tid) |
Subunit Info Request callback. | |
void(* | browsing_connected )(struct bt_conn *conn, struct bt_avrcp_tg *tg) |
An AVRCP TG browsing connection has been established. | |
void(* | browsing_disconnected )(struct bt_avrcp_tg *tg) |
An AVRCP TG browsing connection has been disconnected. | |
void(* | set_browsed_player_req )(struct bt_avrcp_tg *tg, uint8_t tid, uint16_t player_id) |
Set browsed player request callback. | |
void(* | passthrough_req )(struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf) |
Pass Through command request callback. |
void(* bt_avrcp_tg_cb::browsing_connected) (struct bt_conn *conn, struct bt_avrcp_tg *tg) |
An AVRCP TG browsing connection has been established.
This callback notifies the application of an avrcp browsing connection, i.e., an AVCTP browsing L2CAP connection.
conn | Connection object. |
tg | AVRCP TG connection object. |
void(* bt_avrcp_tg_cb::browsing_disconnected) (struct bt_avrcp_tg *tg) |
An AVRCP TG browsing connection has been disconnected.
This callback notifies the application that an avrcp browsing connection has been disconnected.
tg | AVRCP TG connection object. |
void(* bt_avrcp_tg_cb::connected) (struct bt_conn *conn, struct bt_avrcp_tg *tg) |
An AVRCP TG connection has been established.
This callback notifies the application of an avrcp connection, i.e., an AVCTP L2CAP connection.
conn | Connection object. |
tg | AVRCP TG connection object. |
void(* bt_avrcp_tg_cb::disconnected) (struct bt_avrcp_tg *tg) |
An AVRCP TG connection has been disconnected.
This callback notifies the application that an avrcp connection has been disconnected.
tg | AVRCP TG connection object. |
Pass Through command request callback.
This callback is called whenever an AVRCP Pass Through command is request.
tg | AVRCP TG connection object. |
tid | The transaction label of the request. |
buf | The buffer containing the PASS THROUGH command payload. The application can parse this payload according to the format defined in bt_avrcp_passthrough_rsp. Note that the data is encoded in big-endian format. |
void(* bt_avrcp_tg_cb::set_browsed_player_req) (struct bt_avrcp_tg *tg, uint8_t tid, uint16_t player_id) |
Set browsed player request callback.
This callback is called whenever an AVRCP set browsed player request is received.
tg | AVRCP TG connection object. |
tid | The transaction label of the request. |
player_id | The player ID to be set as browsed player. |
void(* bt_avrcp_tg_cb::subunit_info_req) (struct bt_avrcp_tg *tg, uint8_t tid) |
Subunit Info Request callback.
This callback is called whenever an AVRCP subunit info is requested.
tg | AVRCP TG connection object. |
tid | The transaction label of the request. |
void(* bt_avrcp_tg_cb::unit_info_req) (struct bt_avrcp_tg *tg, uint8_t tid) |
Unit info request callback.
This callback is called whenever an AVRCP unit info is requested.
tid | The transaction label of the request. |
tg | AVRCP TG connection object. |