AVRCP API. More...
#include <stdint.h>#include <bluetooth/bluetooth.h>#include <bluetooth/bt_avrcp_cmds.h>#include <bluetooth/bt_common.h>Go to the source code of this file.
Classes | |
| struct | avrcTrackInfo |
| struct | bt_avrcp_notify_ops_s |
| Bluetooth AVRCP application callbacks. More... | |
| struct | bt_avrcp_ops_s |
| Bluetooth AVRCP application callbacks. More... | |
| struct | bt_avrcp_state_s |
| Bluetooth AVRCP context. More... | |
Typedefs | |
| typedef struct avrcTrackInfo | BT_AVRC_TRACK_INFO |
Enumerations | |
| enum | BT_AVRCP_ROLE { BT_AVRCP_CONTROLLER = 0 , BT_AVRCP_TARGET = 1 } |
| AVRCP role. More... | |
Functions | |
| bool | bt_avrcp_is_supported (void) |
| Get AVRCP support or not support. More... | |
| int | bt_avrcp_connect (struct bt_acl_state_s *bt_acl_state) |
| Bluetooth AVRCP connect Connect to peer device with AVRCP. More... | |
| int | bt_avrcp_disconnect (struct bt_acl_state_s *bt_acl_state) |
| Bluetooth AVRCP disconnect Disconnect to peer device with AVRCP. More... | |
| int | bt_avrcp_send_command (struct bt_acl_state_s *bt_acl_state, BT_AVRCP_CMD_ID cmd_id, bool press) |
| Bluetooth send AVRCP command Send command to target device. More... | |
| int | bt_register_notification (struct bt_avrcp_notify_ops_s *bt_avrcp_notify_ops) |
| Bluetooth AVRCP Register notification Set callback about AVRCP notification. More... | |
| int | bt_avrcp_register_cb (struct bt_avrcp_ops_s *bt_avrcp_ops) |
| Bluetooth AVRCP Register connection status callback Set callback about AVRCP connection. More... | |
AVRCP API.
This API is for using AVRCP and includes Function and Callback
| enum BT_AVRCP_ROLE |
| bool bt_avrcp_is_supported | ( | void | ) |
Get AVRCP support or not support.
| Suppot | or Not support |
| int bt_avrcp_connect | ( | struct bt_acl_state_s * | bt_acl_state | ) |
Bluetooth AVRCP connect Connect to peer device with AVRCP.
| [in] | bt_acl_state | Bluetooth context bt_acl_state_s |
| error | code |
| int bt_avrcp_disconnect | ( | struct bt_acl_state_s * | bt_acl_state | ) |
Bluetooth AVRCP disconnect Disconnect to peer device with AVRCP.
| [in] | bt_acl_state | Bluetooth context bt_acl_state_s |
| error | code |
| int bt_avrcp_send_command | ( | struct bt_acl_state_s * | bt_acl_state, |
| BT_AVRCP_CMD_ID | cmd_id, | ||
| bool | press | ||
| ) |
Bluetooth send AVRCP command Send command to target device.
| [in] | bt_acl_state | Bluetooth context bt_acl_state_s |
| [in] | cmd_id | Command ID BT_AVRCP_CMD_ID |
| [in] | press | Button status (press/release) |
| error | code |
| int bt_register_notification | ( | struct bt_avrcp_notify_ops_s * | bt_avrcp_notify_ops | ) |
Bluetooth AVRCP Register notification Set callback about AVRCP notification.
| [in] | bt_avrcp_notify_ops | Notification callbacks bt_avrcp_notify_ops_s |
| error | code |
| int bt_avrcp_register_cb | ( | struct bt_avrcp_ops_s * | bt_avrcp_ops | ) |
Bluetooth AVRCP Register connection status callback Set callback about AVRCP connection.
| [in] | bt_avrcp_ops | connection callbacks bt_avrcp_ops_s |
| error | code |