Arduino A2DP
All Classes Files Functions Variables Typedefs Enumerations Enumerator Friends Modules Pages
Classes | Typedefs | Enumerations | Variables
ESP32 A2DP

A Simple ESP32 Bluetooth A2DP Library (to implement a Music Receiver or Sender) that supports Arduino, PlatformIO and Espressif IDF. More...

Classes

class  A2DPVolumeControl
 Abstract class for handling of the volume of the audio data. More...
 
class  BluetoothA2DPOutput
 Abstract Output Class. More...
 
class  BluetoothA2DPSink
 A2DP Bluethooth Sink - We initialize and start the Bluetooth A2DP Sink. The example https://github.com/espressif/esp-idf/tree/master/examples/bluetooth/bluedroid/classic_bt/a2dp_sink was refactered into a C++ class. More...
 
class  BluetoothA2DPSinkQueued
 The BluetoothA2DPSinkQueued is using a separate Task with an additinal Queue to write the I2S data. application. More...
 
class  BluetoothA2DPSource
 A2DP Bluetooth Source. More...
 

Typedefs

typedef uint8_t esp_bd_addr_t[ESP_BD_ADDR_LEN]
 Bluetooth address.
 

Enumerations

enum  APP_AV_STATE {
  APP_AV_STATE_IDLE , APP_AV_STATE_DISCOVERING , APP_AV_STATE_DISCOVERED , APP_AV_STATE_UNCONNECTED ,
  APP_AV_STATE_CONNECTING , APP_AV_STATE_CONNECTED , APP_AV_STATE_DISCONNECTING
}
 Buetooth A2DP global state.
 
enum  esp_a2d_audio_state_t { ESP_A2D_AUDIO_STATE_SUSPEND = 0 , ESP_A2D_AUDIO_STATE_STARTED , ESP_A2D_AUDIO_STATE_STOPPED = ESP_A2D_AUDIO_STATE_SUSPEND , ESP_A2D_AUDIO_STATE_REMOTE_SUSPEND = ESP_A2D_AUDIO_STATE_SUSPEND }
 Buetooth A2DP datapath states. More...
 
enum  esp_a2d_connection_state_t { ESP_A2D_CONNECTION_STATE_DISCONNECTED = 0 , ESP_A2D_CONNECTION_STATE_CONNECTING , ESP_A2D_CONNECTION_STATE_CONNECTED , ESP_A2D_CONNECTION_STATE_DISCONNECTING }
 Buetooth A2DP connection states. More...
 
enum  esp_avrc_playback_stat_t {
  ESP_AVRC_PLAYBACK_STOPPED = 0 , ESP_AVRC_PLAYBACK_PLAYING = 1 , ESP_AVRC_PLAYBACK_PAUSED = 2 , ESP_AVRC_PLAYBACK_FWD_SEEK = 3 ,
  ESP_AVRC_PLAYBACK_REV_SEEK = 4 , ESP_AVRC_PLAYBACK_ERROR = 0xFF
}
 AVRCP current status of playback. More...
 
enum  esp_avrc_rn_event_ids_t
 AVRC event notification ids.
 
enum  esp_bt_discovery_mode_t { ESP_BT_NON_DISCOVERABLE , ESP_BT_LIMITED_DISCOVERABLE , ESP_BT_GENERAL_DISCOVERABLE }
 AVRCP discovery mode. More...
 
enum  esp_bt_mode_t { ESP_BT_MODE_IDLE = 0x00 , ESP_BT_MODE_BLE = 0x01 , ESP_BT_MODE_CLASSIC_BT = 0x02 , ESP_BT_MODE_BTDM = 0x03 }
 Bluetooth Controller mode. More...
 
enum  ReconnectStatus { NoReconnect , AutoReconnect , IsReconnecting }
 Buetooth A2DP Reconnect Status.
 

Variables

enum esp_avrc_rn_event_ids_t ESP_AVRC_RN_PLAY_STATUS_CHANGE = 0x01
 AVRC event notification ids. More...
 

Detailed Description

A Simple ESP32 Bluetooth A2DP Library (to implement a Music Receiver or Sender) that supports Arduino, PlatformIO and Espressif IDF.

Enumeration Type Documentation

◆ esp_a2d_audio_state_t

Buetooth A2DP datapath states.

Enumerator
ESP_A2D_AUDIO_STATE_SUSPEND 

audio stream datapath suspended by remote device

ESP_A2D_AUDIO_STATE_STARTED 

audio stream datapath started

ESP_A2D_AUDIO_STATE_STOPPED 
Note
Deprecated
ESP_A2D_AUDIO_STATE_REMOTE_SUSPEND 
Note
Deprecated

◆ esp_a2d_connection_state_t

Buetooth A2DP connection states.

Enumerator
ESP_A2D_CONNECTION_STATE_DISCONNECTED 

connection released

ESP_A2D_CONNECTION_STATE_CONNECTING 

connecting remote device

ESP_A2D_CONNECTION_STATE_CONNECTED 

connection established

ESP_A2D_CONNECTION_STATE_DISCONNECTING 

disconnecting remote device

◆ esp_avrc_playback_stat_t

AVRCP current status of playback.

Enumerator
ESP_AVRC_PLAYBACK_STOPPED 

stopped

ESP_AVRC_PLAYBACK_PLAYING 

playing

ESP_AVRC_PLAYBACK_PAUSED 

paused

ESP_AVRC_PLAYBACK_FWD_SEEK 

forward seek

ESP_AVRC_PLAYBACK_REV_SEEK 

reverse seek

ESP_AVRC_PLAYBACK_ERROR 

error

◆ esp_bt_discovery_mode_t

AVRCP discovery mode.

Enumerator
ESP_BT_NON_DISCOVERABLE 

Non-discoverable

ESP_BT_LIMITED_DISCOVERABLE 

Limited Discoverable

ESP_BT_GENERAL_DISCOVERABLE 

General Discoverable

◆ esp_bt_mode_t

Bluetooth Controller mode.

Enumerator
ESP_BT_MODE_IDLE 

Bluetooth is not operating.

ESP_BT_MODE_BLE 

Bluetooth is operating in BLE mode.

ESP_BT_MODE_CLASSIC_BT 

Bluetooth is operating in Classic Bluetooth mode.

ESP_BT_MODE_BTDM 

Bluetooth is operating in Dual mode.

Variable Documentation

◆ ESP_AVRC_RN_PLAY_STATUS_CHANGE

ESP_AVRC_RN_PLAY_STATUS_CHANGE = 0x01

AVRC event notification ids.

track status change, eg. from playing to paused