Zephyr API Documentation 4.3.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(* register_notification )(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t event_id, uint32_t interval)
 Register notification request callback.
void(* subunit_info_req )(struct bt_avrcp_tg *tg, uint8_t tid)
 Subunit Info Request callback.
void(* get_caps )(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t cap_id)
 Get capabilities 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(* 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.
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.
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.
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.
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.
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.
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.
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.
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.
void(* set_absolute_volume )(struct bt_avrcp_tg *tg, uint8_t tid, uint8_t absolute_volume)
 Callback function for Set Absolute Volume command (TG).
void(* get_play_status )(struct bt_avrcp_tg *tg, uint8_t tid)
 Callback for PDU ID BT_AVRCP_PDU_ID_GET_PLAY_STATUS.
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.
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.
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.

Field Documentation

◆ add_to_now_playing

void(* bt_avrcp_tg_cb::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.

Called when the TG receives a vendor dependent command for ADD_TO_NOW_PLAYING.

Parameters
tgAVRCP TG connection object.
tidThe transaction label of the command.
bufThe buffer containing the ADD_TO_NOW_PLAYING command payload, formatted as bt_avrcp_add_to_now_playing_cmd. The application should parse fields in big-endian order.

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

◆ get_caps

void(* bt_avrcp_tg_cb::get_caps) (struct bt_avrcp_tg *tg, uint8_t tid, uint8_t cap_id)

Get capabilities request callback.

This callback is called whenever an AVRCP get capabilities command is received.

Parameters
tgAVRCP TG connection object.
tidThe transaction label of the request.
cap_idThe capability ID requested.

◆ get_curr_player_app_setting_val

void(* bt_avrcp_tg_cb::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.

Called when the TG receives a vendor dependent command GET_CURR_PLAYER_APP_SETTING_VAL.

Parameters
tgAVRCP TG connection object.
tidThe transaction label of the command.
bufThe buffer containing the GET_CURR_PLAYER_APP_SETTING_VAL command payload, formatted as bt_avrcp_get_curr_player_app_setting_val_cmd. The application should parse fields in big-endian order.

◆ get_element_attrs

void(* bt_avrcp_tg_cb::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.

Called when the TG receives a vendor dependent command for GET_ELEMENT_ATTRS.

Parameters
tgAVRCP TG connection object.
tidThe transaction label of the command.
bufThe buffer containing the GET_ELEMENT_ATTRS command payload, formatted as bt_avrcp_get_element_attrs_cmd. The application should parse fields in big-endian order.

◆ get_play_status

void(* bt_avrcp_tg_cb::get_play_status) (struct bt_avrcp_tg *tg, uint8_t tid)

Callback for PDU ID BT_AVRCP_PDU_ID_GET_PLAY_STATUS.

Called when the TG receives a vendor dependent command for GET_PLAY_STATUS.

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

◆ get_player_app_setting_attr_text

void(* bt_avrcp_tg_cb::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.

Called when the TG receives a vendor dependent command GET_PLAYER_APP_SETTING_ATTR_TEXT.

Parameters
tgAVRCP TG connection object.
tidThe transaction label of the command.
bufThe buffer containing the GET_PLAYER_APP_SETTING_VAL_TEXT command payload, formatted as bt_avrcp_get_player_app_setting_val_text_cmd. The application should parse fields in big-endian order.

◆ get_player_app_setting_val_text

void(* bt_avrcp_tg_cb::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.

Called when the TG receives a vendor dependent command GET_PLAYER_APP_SETTING_VAL_TEXT.

Parameters
tgAVRCP TG connection object.
tidThe transaction label of the command.
bufThe buffer containing the GET_PLAYER_APP_SETTING_VAL_TEXT command payload, formatted as bt_avrcp_get_player_app_setting_val_text_cmd. The application should parse fields in big-endian order.

◆ inform_batt_status_of_ct

void(* bt_avrcp_tg_cb::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.

Called when the TG receives a vendor dependent command for INFORM_BATT_STATUS_OF_CT.

Parameters
tgAVRCP TG connection object.
tidThe transaction label of the command.
battery_statusBattery status value bt_avrcp_battery_status_t

◆ inform_displayable_char_set

void(* bt_avrcp_tg_cb::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.

Called when the TG receives a vendor dependent command for INFORM_DISPLAYABLE_CHAR_SET.

Parameters
tgAVRCP TG connection object.
tidThe transaction label of the command.
bufThe buffer containing the INFORM_DISPLAYABLE_CHAR_SET command payload, formatted as bt_avrcp_inform_displayable_char_set_cmd. The application should parse fields in big-endian order.

◆ list_player_app_setting_attrs

void(* bt_avrcp_tg_cb::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.

Called when the TG receives a vendor dependent command LIST_PLAYER_APP_SETTING_ATTRS.

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

◆ list_player_app_setting_vals

void(* bt_avrcp_tg_cb::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.

Called when the TG receives a vendor dependent command for LIST_PLAYER_APP_SETTING_VALS.

Parameters
tgAVRCP TG connection object.
tidThe transaction label of the command.
attr_idPlayer application setting attribute ID for which the possible values should be listed (e.g., Equalizer, Repeat Mode, Shuffle, Scan).

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

◆ play_item

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

Callback for PDU ID BT_AVRCP_PDU_ID_PLAY_ITEM.

Called when the TG receives a vendor dependent command for PLAY_ITEM.

Parameters
tgAVRCP TG connection object.
tidThe transaction label of the command.
bufThe buffer containing the PLAY_ITEM command payload, formatted as bt_avrcp_play_item_cmd. The application should parse fields in big-endian order.

◆ register_notification

void(* bt_avrcp_tg_cb::register_notification) (struct bt_avrcp_tg *tg, uint8_t tid, uint8_t event_id, uint32_t interval)

Register notification request callback.

This callback is called whenever an AVRCP register notification is requested.

Parameters
tgAVRCP TG connection object.
tidThe transaction label of the request.
event_idThe event ID that the CT wants to register for bt_avrcp_evt_t.
intervalThe playback interval for position changed event. other events will have this value set to 0 for ignoring.

◆ set_absolute_volume

void(* bt_avrcp_tg_cb::set_absolute_volume) (struct bt_avrcp_tg *tg, uint8_t tid, uint8_t absolute_volume)

Callback function for Set Absolute Volume command (TG).

Called when the Set Absolute Volume command is received from the CT.

Parameters
tgAVRCP TG connection object.
tidThe transaction label of the command.
absolute_volumeThe absolute volume value (0x00-0x7F).

◆ set_addressed_player

void(* bt_avrcp_tg_cb::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.

Called when the TG receives a vendor dependent command for SET_ADDRESSED_PLAYER.

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

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

◆ set_player_app_setting_val

void(* bt_avrcp_tg_cb::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.

Called when the TG receives a vendor dependent command for SET_PLAYER_APP_SETTING_VAL.

Parameters
tgAVRCP TG connection object.
tidThe transaction label of the command.
bufThe buffer containing the SET_PLAYER_APP_SETTING_VAL command payload, formatted as bt_avrcp_set_player_app_setting_val_cmd. The application should parse fields in big-endian order.

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