Zephyr API Documentation 4.2.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
bt_avrcp_tg_cb Struct Reference

#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.

Field Documentation

◆ browsing_connected

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.

Parameters
connConnection object.
tgAVRCP TG connection object.

◆ browsing_disconnected

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.

Parameters
tgAVRCP TG connection object.

◆ connected

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.

Parameters
connConnection object.
tgAVRCP TG connection object.

◆ disconnected

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.

Parameters
tgAVRCP TG connection object.

◆ passthrough_req

void(* bt_avrcp_tg_cb::passthrough_req) (struct bt_avrcp_tg *tg, uint8_t tid, struct net_buf *buf)

Pass Through command request callback.

This callback is called whenever an AVRCP Pass Through command is request.

Parameters
tgAVRCP TG connection object.
tidThe transaction label of the request.
bufThe 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.

◆ set_browsed_player_req

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.

Parameters
tgAVRCP TG connection object.
tidThe transaction label of the request.
player_idThe player ID to be set as browsed player.

◆ subunit_info_req

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.

Parameters
tgAVRCP TG connection object.
tidThe transaction label of the request.

◆ unit_info_req

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.

Parameters
tidThe transaction label of the request.
tgAVRCP TG connection object.

The documentation for this struct was generated from the following file: