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

Configuration data for PWM audio output. More...

#include <PWMAudioBase.h>

Inheritance diagram for audio_tools::PWMConfig:
audio_tools::AudioBaseInfo

Public Member Functions

void logConfig ()
 
Pinspins ()
 Determines the pins (for all channels)
 
void setPins (Pins &pins)
 Defines the pins and the corresponding number of channels (=number of pins)
 
- 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

uint16_t buffer_size = PWM_BUFFER_SIZE
 
uint8_t buffers = PWM_BUFFERS
 
uint16_t pwm_frequency = PWM_AUDIO_FREQUENCY
 
uint8_t resolution = 8
 
uint16_t start_pin = PIN_PWM_START
 
uint8_t timer_id = 0
 
- Public Attributes inherited from audio_tools::AudioBaseInfo
int bits_per_sample =16
 
int channels = 0
 
int sample_rate = 0
 

Protected Attributes

Pins pins_data
 

Detailed Description

Configuration data for PWM audio output.

Author
Phil Schatzmann

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