Arduino A2DP
Loading...
Searching...
No Matches
Classes | Macros | Typedefs | Enumerations | Functions
BluetoothA2DPCommon.h File Reference
#include "config.h"
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <stdbool.h>
#include <string.h>
#include <math.h>
#include "freertos/FreeRTOS.h"
#include "freertos/timers.h"
#include "freertos/xtensa_api.h"
#include "freertos/FreeRTOSConfig.h"
#include "freertos/queue.h"
#include "freertos/task.h"
#include "esp_bt.h"
#include "esp_bt_main.h"
#include "esp_bt_device.h"
#include "esp_gap_bt_api.h"
#include "esp_a2dp_api.h"
#include "driver/i2s.h"
#include "esp_avrc_api.h"
#include "esp_spp_api.h"
#include "nvs.h"
#include "nvs_flash.h"
#include "SoundData.h"
#include "A2DPVolumeControl.h"
#include "esp_task_wdt.h"
#include "esp_log.h"

Go to the source code of this file.

Classes

struct  app_msg_t
 Internal message to be sent for BluetoothA2DPSink and BluetoothA2DPSource. More...
 
class  BluetoothA2DPCommon
 Common Bluetooth A2DP functions. More...
 

Macros

#define BT_AV_TAG   "BT_AV"
 
#define BT_RC_CT_TAG   "RCCT"
 
#define BT_APP_TAG   "BT_API"
 
#define APP_RC_CT_TL_GET_CAPS   (0)
 
#define APP_RC_CT_TL_GET_META_DATA   (1)
 
#define APP_RC_CT_TL_RN_TRACK_CHANGE   (2)
 
#define APP_RC_CT_TL_RN_PLAYBACK_CHANGE   (3)
 
#define APP_RC_CT_TL_RN_PLAY_POS_CHANGE   (4)
 

Typedefs

typedef void(* app_callback_t) (uint16_t event, void *param)
 handler for the dispatched work
 

Enumerations

enum  ReconnectStatus { NoReconnect , AutoReconnect , IsReconnecting }
 

Functions

bool btStart ()
 Startup logic as implemented by Arduino - This is not available if we use this library outside of Arduino.
 
void delay (long millis)
 call vTaskDelay to deley for the indicated number of milliseconds
 
unsigned long millis ()
 

Detailed Description

Author
Phil Schatzmann

Function Documentation

◆ btStart()

bool btStart ( )

Startup logic as implemented by Arduino - This is not available if we use this library outside of Arduino.

Returns
true
false

◆ delay()

void delay ( long  millis)

call vTaskDelay to deley for the indicated number of milliseconds