|
Zephyr API Documentation 4.3.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(* | 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. | |
| 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.
| tg | AVRCP TG connection object. |
| tid | The transaction label of the command. |
| buf | The 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. |
| 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. |
Get capabilities request callback.
This callback is called whenever an AVRCP get capabilities command is received.
| tg | AVRCP TG connection object. |
| tid | The transaction label of the request. |
| cap_id | The capability ID requested. |
| 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.
| tg | AVRCP TG connection object. |
| tid | The transaction label of the command. |
| buf | The 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. |
| 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.
| tg | AVRCP TG connection object. |
| tid | The transaction label of the command. |
| buf | The 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. |
| 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.
| tg | AVRCP TG connection object. |
| tid | The transaction label of the command. |
| 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.
| tg | AVRCP TG connection object. |
| tid | The transaction label of the command. |
| buf | The 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. |
| 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.
| tg | AVRCP TG connection object. |
| tid | The transaction label of the command. |
| buf | The 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. |
| 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.
| tg | AVRCP TG connection object. |
| tid | The transaction label of the command. |
| battery_status | Battery status value bt_avrcp_battery_status_t |
| 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.
| tg | AVRCP TG connection object. |
| tid | The transaction label of the command. |
| buf | The 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. |
| 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.
| tg | AVRCP TG connection object. |
| tid | The transaction label of the command. |
| 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.
| tg | AVRCP TG connection object. |
| tid | The transaction label of the command. |
| attr_id | Player application setting attribute ID for which the possible values should be listed (e.g., Equalizer, Repeat Mode, Shuffle, Scan). |
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. |
Callback for PDU ID BT_AVRCP_PDU_ID_PLAY_ITEM.
Called when the TG receives a vendor dependent command for PLAY_ITEM.
| tg | AVRCP TG connection object. |
| tid | The transaction label of the command. |
| buf | The buffer containing the PLAY_ITEM command payload, formatted as bt_avrcp_play_item_cmd. The application should parse fields in big-endian order. |
| 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.
| tg | AVRCP TG connection object. |
| tid | The transaction label of the request. |
| event_id | The event ID that the CT wants to register for bt_avrcp_evt_t. |
| interval | The playback interval for position changed event. other events will have this value set to 0 for ignoring. |
| 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.
| tg | AVRCP TG connection object. |
| tid | The transaction label of the command. |
| absolute_volume | The absolute volume value (0x00-0x7F). |
| 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.
| tg | AVRCP TG connection object. |
| tid | The transaction label of the command. |
| player_id | The player ID to be set as addressed player. |
| 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::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.
| tg | AVRCP TG connection object. |
| tid | The transaction label of the command. |
| buf | The 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. |
| 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. |