Zephyr API Documentation 4.0.99
A Scalable Open Source RTOS
Loading...
Searching...
No Matches
avrcp.h File Reference

Audio Video Remote Control Profile header. More...

Go to the source code of this file.

Data Structures

struct  bt_avrcp_unit_info_rsp
 
struct  bt_avrcp_subunit_info_rsp
 
struct  bt_avrcp_cb
 

Functions

struct bt_avrcp * bt_avrcp_connect (struct bt_conn *conn)
 Connect AVRCP.
 
int bt_avrcp_disconnect (struct bt_avrcp *avrcp)
 Disconnect AVRCP.
 
int bt_avrcp_register_cb (const struct bt_avrcp_cb *cb)
 Register callback.
 
int bt_avrcp_get_unit_info (struct bt_avrcp *avrcp)
 Get AVRCP Unit Info.
 
int bt_avrcp_get_subunit_info (struct bt_avrcp *avrcp)
 Get AVRCP Subunit Info.
 

Detailed Description

Audio Video Remote Control Profile header.

Function Documentation

◆ bt_avrcp_connect()

struct bt_avrcp * bt_avrcp_connect ( struct bt_conn * conn)

Connect AVRCP.

This function is to be called after the conn parameter is obtained by performing a GAP procedure. The API is to be used to establish AVRCP connection between devices.

Parameters
connPointer to bt_conn structure.
Returns
pointer to struct bt_avrcp in case of success or NULL in case of error.

◆ bt_avrcp_disconnect()

int bt_avrcp_disconnect ( struct bt_avrcp * avrcp)

Disconnect AVRCP.

This function close AVCTP L2CAP connection.

Parameters
avrcpThe AVRCP instance.
Returns
0 in case of success or error code in case of error.

◆ bt_avrcp_get_subunit_info()

int bt_avrcp_get_subunit_info ( struct bt_avrcp * avrcp)

Get AVRCP Subunit Info.

This function obtains information about the subunit(s) of an AV/C unit. A device with AVRCP may support other subunits than the panel subunit if other profiles co-exist in the device.

Parameters
avrcpThe AVRCP instance.
Returns
0 in case of success or error code in case of error.

◆ bt_avrcp_get_unit_info()

int bt_avrcp_get_unit_info ( struct bt_avrcp * avrcp)

Get AVRCP Unit Info.

This function obtains information that pertains to the AV/C unit as a whole.

Parameters
avrcpThe AVRCP instance.
Returns
0 in case of success or error code in case of error.

◆ bt_avrcp_register_cb()

int bt_avrcp_register_cb ( const struct bt_avrcp_cb * cb)

Register callback.

Register AVRCP callbacks to monitor the state and interact with the remote device.

Parameters
cbThe callback function.
Returns
0 in case of success or error code in case of error.