Configuration for VS1053Stream.
More...
#include <VS1053Stream.h>
Configuration for VS1053Stream.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ VS1053Config()
◆ clear()
◆ copyFrom()
◆ equals()
Returns true if alt values are the same like the current values.
◆ equalsExSampleRate()
Checks if only the sample rate is different.
◆ logInfo()
| virtual void logInfo |
( |
const char * |
source = "" | ) |
|
|
inlinevirtualinherited |
◆ operator bool()
Returns true if all components are defined (no component is 0)
◆ operator!=()
Returns true if alt values are the different from the current values.
◆ operator==()
Returns true if alt values are the same like the current values.
◆ set()
Copies the values from info.
◆ setAudioInfo()
◆ bits_per_sample
Number of bits per sample (int16_t = 16 bits)
◆ channels
Number of channels: 2=stereo, 1=mono.
◆ cs_pin
Chip-select (control) pin for the VS1053 SPI interface. Set this to the board-specific CS pin (e.g. VS1053_CS).
◆ cs_sd_pin
Optional chip-select pin for an attached SD card (if present).
◆ dcs_pin
Data/command select (DCS) pin used by some VS1053 modules.
◆ dreq_pin
Data request (DREQ) pin — used by the VS1053 to signal it can accept more data. Configure this to the board's DREQ pin (e.g. VS1053_DREQ).
◆ is_encoded_data
| bool is_encoded_data = false |
When true the stream expects encoded input data (MP3/WAV/etc). When false (default) the stream treats input as raw PCM samples.
◆ is_midi
When true enable MIDI streaming mode (this also forces encoded mode).
◆ is_start_spi
If true the driver will call SPI.begin() during initialization. Set to false if SPI is managed externally by the application.
◆ mode
Operation mode (transmit/receive). Default: TX_MODE (playback).
◆ reset_pin
Optional reset pin for the VS1053 module. Set to -1 if unused. When valid the pin will be toggled during initialization.
◆ sample_rate
The documentation for this class was generated from the following file: