esp32-audio-player 0.1.0
Audio player engine for ESP32
Loading...
Searching...
No Matches
audio_i2s_config_t Struct Reference

#include <i2s_sink.h>

Data Fields

int port
 I2S controller number (0 or 1)
 
int bck_gpio
 bit clock (BCK, SCK on some boards)
 
int ws_gpio
 word select (LRCK, LCK)
 
int dout_gpio
 data to the DAC (DIN)
 
int mclk_gpio
 master clock to the DAC, -1 when the DAC derives it from BCK
 
uint16_t mclk_multiple
 MCLK / sample rate; 0 = 256 (128 above 96 kHz)
 
int mute_gpio
 DAC soft-mute input (PCM5102A XSMT), -1 = none.
 
uint8_t mute_active_level
 level of mute_gpio while muted (PCM5102A XSMT: 0)
 
int amp_enable_gpio
 amplifier enable, high while the output is open, -1 = none
 
uint32_t max_sample_rate
 highest rate the DAC takes, 0 = 192000
 
bool accept_dop
 pass DoP (DSD) frames to the DAC
 
uint16_t fifo_ms
 FIFO in front of the DMA at the highest rate, 0 = 200.
 
int8_t feeder_core
 core of the feeder task, -1 = any
 
uint8_t feeder_priority
 FreeRTOS priority, above the audio task.
 
const char * dac_name
 shown by describe(), NULL = "I2S"
 

Field Documentation

◆ accept_dop

bool audio_i2s_config_t::accept_dop

pass DoP (DSD) frames to the DAC

◆ amp_enable_gpio

int audio_i2s_config_t::amp_enable_gpio

amplifier enable, high while the output is open, -1 = none

◆ bck_gpio

int audio_i2s_config_t::bck_gpio

bit clock (BCK, SCK on some boards)

◆ dac_name

const char* audio_i2s_config_t::dac_name

shown by describe(), NULL = "I2S"

◆ dout_gpio

int audio_i2s_config_t::dout_gpio

data to the DAC (DIN)

◆ feeder_core

int8_t audio_i2s_config_t::feeder_core

core of the feeder task, -1 = any

◆ feeder_priority

uint8_t audio_i2s_config_t::feeder_priority

FreeRTOS priority, above the audio task.

◆ fifo_ms

uint16_t audio_i2s_config_t::fifo_ms

FIFO in front of the DMA at the highest rate, 0 = 200.

◆ max_sample_rate

uint32_t audio_i2s_config_t::max_sample_rate

highest rate the DAC takes, 0 = 192000

◆ mclk_gpio

int audio_i2s_config_t::mclk_gpio

master clock to the DAC, -1 when the DAC derives it from BCK

◆ mclk_multiple

uint16_t audio_i2s_config_t::mclk_multiple

MCLK / sample rate; 0 = 256 (128 above 96 kHz)

◆ mute_active_level

uint8_t audio_i2s_config_t::mute_active_level

level of mute_gpio while muted (PCM5102A XSMT: 0)

◆ mute_gpio

int audio_i2s_config_t::mute_gpio

DAC soft-mute input (PCM5102A XSMT), -1 = none.

◆ port

int audio_i2s_config_t::port

I2S controller number (0 or 1)

◆ ws_gpio

int audio_i2s_config_t::ws_gpio

word select (LRCK, LCK)


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