arduino-audio-tools
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Protected Member Functions | Friends | List of all members
audio_tools::AudioKitStreamConfig Class Reference

Configuration for AudioKitStream: we use as subclass of I2SConfig. More...

#include <AudioKit.h>

Inheritance diagram for audio_tools::AudioKitStreamConfig:
audio_tools::I2SConfig audio_tools::AudioBaseInfo

Public Member Functions

AudioKitConfig toAudioKitConfig ()
 convert to config object needed by HAL
 
- Public Member Functions inherited from audio_tools::I2SConfig
 I2SConfig (const I2SConfig &cfg)=default
 Default Copy Constructor.
 
 I2SConfig (RxTxMode mode)
 Constructor.
 
void logInfo ()
 
- Public Member Functions inherited from audio_tools::AudioBaseInfo
 AudioBaseInfo (const AudioBaseInfo &)=default
 
void copyFrom (AudioBaseInfo info)
 
virtual void logInfo ()
 
bool operator!= (AudioBaseInfo alt)
 
AudioBaseInfooperator= (const AudioBaseInfo &info)
 
bool operator== (AudioBaseInfo alt)
 
void setAudioInfo (AudioBaseInfo info)
 

Public Attributes

bool default_actions_active = true
 
audio_hal_adc_input_t input_device = AUDIOKIT_DEFAULT_INPUT
 
int masterclock_pin = 0
 
audio_hal_dac_output_t output_device = AUDIOKIT_DEFAULT_OUTPUT
 
bool sd_active = true
 
- Public Attributes inherited from audio_tools::I2SConfig
bool auto_clear
 
int buffer_count = I2S_BUFFER_COUNT
 
int buffer_size = I2S_BUFFER_SIZE
 
uint32_t fixed_mclk = 0
 
I2SFormat i2s_format = I2S_STD_FORMAT
 
bool is_master = true
 
int pin_bck = PIN_I2S_BCK
 
int pin_data
 
int pin_data_rx
 
int pin_mck = -1
 
int pin_ws = PIN_I2S_WS
 
int port_no = 0
 
RxTxMode rx_tx_mode = TX_MODE
 public settings
 
I2SSignalType signal_type = Digital
 
bool use_apll = I2S_USE_APLL
 
- Public Attributes inherited from audio_tools::AudioBaseInfo
int bits_per_sample =16
 
int channels = 0
 
int sample_rate = 0
 

Protected Member Functions

audio_hal_iface_bits_t toBits ()
 
audio_hal_codec_mode_t toCodecMode ()
 Convert to audio_hal_codec_mode_t.
 
audio_hal_iface_format_t toFormat ()
 Convert to audio_hal_iface_format_t.
 
audio_hal_iface_mode_t toMode ()
 
audio_hal_iface_samples_t toSampleRate ()
 Convert to audio_hal_iface_samples_t.
 

Friends

class AudioKitStream
 

Detailed Description

Configuration for AudioKitStream: we use as subclass of I2SConfig.

Author
Phil Schatzmann

Member Function Documentation

◆ toMode()

audio_hal_iface_mode_t audio_tools::AudioKitStreamConfig::toMode ( )
inlineprotected

Determine if ESP32 is master or slave - this is just the oposite of the HAL device


The documentation for this class was generated from the following file: