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_ct *ct) |
An AVRCP CT connection has been established. | |
void(* | disconnected )(struct bt_avrcp_ct *ct) |
An AVRCP CT connection has been disconnected. | |
void(* | browsing_connected )(struct bt_conn *conn, struct bt_avrcp_ct *ct) |
An AVRCP CT browsing connection has been established. | |
void(* | browsing_disconnected )(struct bt_avrcp_ct *ct) |
An AVRCP CT browsing connection has been disconnected. | |
void(* | get_cap_rsp )(struct bt_avrcp_ct *ct, uint8_t tid, const struct bt_avrcp_get_cap_rsp *rsp) |
Callback function for bt_avrcp_get_cap(). | |
void(* | unit_info_rsp )(struct bt_avrcp_ct *ct, uint8_t tid, struct bt_avrcp_unit_info_rsp *rsp) |
Callback function for bt_avrcp_get_unit_info(). | |
void(* | subunit_info_rsp )(struct bt_avrcp_ct *ct, uint8_t tid, struct bt_avrcp_subunit_info_rsp *rsp) |
Callback function for bt_avrcp_get_subunit_info(). | |
void(* | passthrough_rsp )(struct bt_avrcp_ct *ct, uint8_t tid, bt_avrcp_rsp_t result, const struct bt_avrcp_passthrough_rsp *rsp) |
Callback function for bt_avrcp_passthrough(). | |
void(* | browsed_player_rsp )(struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf) |
Callback function for bt_avrcp_ct_set_browsed_player(). |
void(* bt_avrcp_ct_cb::browsed_player_rsp) (struct bt_avrcp_ct *ct, uint8_t tid, struct net_buf *buf) |
Callback function for bt_avrcp_ct_set_browsed_player().
Called when the set browsed player process is completed.
ct | AVRCP CT connection object. |
tid | The transaction label of the response. |
buf | The response buffer containing the set browsed player response data. The application can parse this payload according to the format defined in bt_avrcp_set_browsed_player_rsp. Note that the data is encoded in big-endian format. |
void(* bt_avrcp_ct_cb::browsing_connected) (struct bt_conn *conn, struct bt_avrcp_ct *ct) |
An AVRCP CT 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. |
ct | AVRCP CT connection object. |
void(* bt_avrcp_ct_cb::browsing_disconnected) (struct bt_avrcp_ct *ct) |
An AVRCP CT browsing connection has been disconnected.
This callback notifies the application that an avrcp browsing connection has been disconnected.
ct | AVRCP CT connection object. |
void(* bt_avrcp_ct_cb::connected) (struct bt_conn *conn, struct bt_avrcp_ct *ct) |
An AVRCP CT connection has been established.
This callback notifies the application of an avrcp connection, i.e., an AVCTP L2CAP connection.
conn | Connection object. |
ct | AVRCP CT connection object. |
void(* bt_avrcp_ct_cb::disconnected) (struct bt_avrcp_ct *ct) |
An AVRCP CT connection has been disconnected.
This callback notifies the application that an avrcp connection has been disconnected.
ct | AVRCP CT connection object. |
void(* bt_avrcp_ct_cb::get_cap_rsp) (struct bt_avrcp_ct *ct, uint8_t tid, const struct bt_avrcp_get_cap_rsp *rsp) |
Callback function for bt_avrcp_get_cap().
Called when the get capabilities process is completed.
ct | AVRCP CT connection object. |
tid | The transaction label of the response. |
rsp | The response for Get Capabilities command. |
void(* bt_avrcp_ct_cb::passthrough_rsp) (struct bt_avrcp_ct *ct, uint8_t tid, bt_avrcp_rsp_t result, const struct bt_avrcp_passthrough_rsp *rsp) |
Callback function for bt_avrcp_passthrough().
Called when a passthrough response is received.
ct | AVRCP CT connection object. |
tid | The transaction label of the response. |
result | The result of the operation. |
rsp | The response for PASS THROUGH command. |
void(* bt_avrcp_ct_cb::subunit_info_rsp) (struct bt_avrcp_ct *ct, uint8_t tid, struct bt_avrcp_subunit_info_rsp *rsp) |
Callback function for bt_avrcp_get_subunit_info().
Called when the get subunit info process is completed.
ct | AVRCP CT connection object. |
tid | The transaction label of the response. |
rsp | The response for SUBUNIT INFO command. |
void(* bt_avrcp_ct_cb::unit_info_rsp) (struct bt_avrcp_ct *ct, uint8_t tid, struct bt_avrcp_unit_info_rsp *rsp) |
Callback function for bt_avrcp_get_unit_info().
Called when the get unit info process is completed.
ct | AVRCP CT connection object. |
tid | The transaction label of the response. |
rsp | The response for UNIT INFO command. |