M5Unified
|
#include <Speaker_Class.hpp>
Public Attributes | |
int | pin_data_out = I2S_PIN_NO_CHANGE |
i2s_data_out (for spk) More... | |
int | pin_bck = I2S_PIN_NO_CHANGE |
i2s_bck More... | |
int | pin_ws = I2S_PIN_NO_CHANGE |
i2s_ws (lrck) More... | |
uint32_t | sample_rate = 64000 |
output sampling rate (Hz) More... | |
bool | stereo = false |
use stereo output More... | |
bool | buzzer = false |
use single gpio buzzer, ( need only pin_data_out ) More... | |
bool | use_dac = false |
uint8_t | dac_zero_level = 0 |
Zero level reference value when using DAC ( 0=Dynamic change ) More... | |
uint8_t | magnification = 16 |
multiplier for output value More... | |
size_t | dma_buf_len = 256 |
for I2S dma_buf_len (max 1024) More... | |
size_t | dma_buf_count = 8 |
for I2S dma_buf_count More... | |
uint8_t | task_priority = 2 |
background task priority More... | |
uint8_t | task_pinned_core = ~0 |
background task pinned core More... | |
i2s_port_t | i2s_port = i2s_port_t::I2S_NUM_0 |
I2S port. More... | |
Definition at line 27 of file Speaker_Class.hpp.
bool m5::speaker_config_t::buzzer = false |
use single gpio buzzer, ( need only pin_data_out )
Definition at line 45 of file Speaker_Class.hpp.
uint8_t m5::speaker_config_t::dac_zero_level = 0 |
Zero level reference value when using DAC ( 0=Dynamic change )
Definition at line 52 of file Speaker_Class.hpp.
size_t m5::speaker_config_t::dma_buf_count = 8 |
for I2S dma_buf_count
Definition at line 61 of file Speaker_Class.hpp.
size_t m5::speaker_config_t::dma_buf_len = 256 |
for I2S dma_buf_len (max 1024)
Definition at line 58 of file Speaker_Class.hpp.
i2s_port_t m5::speaker_config_t::i2s_port = i2s_port_t::I2S_NUM_0 |
I2S port.
Definition at line 70 of file Speaker_Class.hpp.
uint8_t m5::speaker_config_t::magnification = 16 |
multiplier for output value
Definition at line 55 of file Speaker_Class.hpp.
int m5::speaker_config_t::pin_bck = I2S_PIN_NO_CHANGE |
i2s_bck
Definition at line 33 of file Speaker_Class.hpp.
int m5::speaker_config_t::pin_data_out = I2S_PIN_NO_CHANGE |
i2s_data_out (for spk)
Definition at line 30 of file Speaker_Class.hpp.
int m5::speaker_config_t::pin_ws = I2S_PIN_NO_CHANGE |
i2s_ws (lrck)
Definition at line 36 of file Speaker_Class.hpp.
uint32_t m5::speaker_config_t::sample_rate = 64000 |
output sampling rate (Hz)
Definition at line 39 of file Speaker_Class.hpp.
bool m5::speaker_config_t::stereo = false |
use stereo output
Definition at line 42 of file Speaker_Class.hpp.
uint8_t m5::speaker_config_t::task_pinned_core = ~0 |
background task pinned core
Definition at line 67 of file Speaker_Class.hpp.
uint8_t m5::speaker_config_t::task_priority = 2 |
background task priority
Definition at line 64 of file Speaker_Class.hpp.
bool m5::speaker_config_t::use_dac = false |
use DAC speaker, ( need only pin_data_out ) ( for ESP32, only GPIO_NUM_25 or GPIO_NUM_26 ) ※ for ESP32, need i2s_port = I2S_NUM_0
. ( DAC+I2S_NUM_1 is not available )
Definition at line 49 of file Speaker_Class.hpp.