Developer World
Spresense SDK Library v3.2.0-ebc0364
bt_avrcp.h File Reference

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

Detailed Description

AVRCP API.

Author
Sony Semiconductor Solutions Corporation

This API is for using AVRCP and includes Function and Callback

Enumeration Type Documentation

◆ BT_AVRCP_ROLE

AVRCP role.

Enumerator
BT_AVRCP_CONTROLLER 

Controller

BT_AVRCP_TARGET 

Target

Function Documentation

◆ bt_avrcp_is_supported()

bool bt_avrcp_is_supported ( void  )

Get AVRCP support or not support.

Return values
Suppotor Not support

◆ bt_avrcp_connect()

int bt_avrcp_connect ( struct bt_acl_state_s bt_acl_state)

Bluetooth AVRCP connect Connect to peer device with AVRCP.

Parameters
[in]bt_acl_stateBluetooth context bt_acl_state_s
Return values
errorcode

◆ bt_avrcp_disconnect()

int bt_avrcp_disconnect ( struct bt_acl_state_s bt_acl_state)

Bluetooth AVRCP disconnect Disconnect to peer device with AVRCP.

Parameters
[in]bt_acl_stateBluetooth context bt_acl_state_s
Return values
errorcode

◆ bt_avrcp_send_command()

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.

Parameters
[in]bt_acl_stateBluetooth context bt_acl_state_s
[in]cmd_idCommand ID BT_AVRCP_CMD_ID
[in]pressButton status (press/release)
Return values
errorcode

◆ bt_register_notification()

int bt_register_notification ( struct bt_avrcp_notify_ops_s bt_avrcp_notify_ops)

Bluetooth AVRCP Register notification Set callback about AVRCP notification.

Parameters
[in]bt_avrcp_notify_opsNotification callbacks bt_avrcp_notify_ops_s
Return values
errorcode

◆ bt_avrcp_register_cb()

int bt_avrcp_register_cb ( struct bt_avrcp_ops_s bt_avrcp_ops)

Bluetooth AVRCP Register connection status callback Set callback about AVRCP connection.

Parameters
[in]bt_avrcp_opsconnection callbacks bt_avrcp_ops_s
Return values
errorcode