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(* 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.

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.

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

◆ 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: