Configuration data for PWM audio output. Define the pins as follows: config.pins = {PWM_PIN(pwm_led_0), PWM_PIN(pwm_led_2)}; which is a short for for the zephyr standard macros: config.pins = {PWM_DT_SPEC_GET(DT_NODELABEL(pwm_led_0)), PWM_DT_SPEC_GET(DT_NODELABEL(pwm_led_1))};.
More...
#include <PWMConfigZephyr.h>
Configuration data for PWM audio output. Define the pins as follows: config.pins = {PWM_PIN(pwm_led_0), PWM_PIN(pwm_led_2)}; which is a short for for the zephyr standard macros: config.pins = {PWM_DT_SPEC_GET(DT_NODELABEL(pwm_led_0)), PWM_DT_SPEC_GET(DT_NODELABEL(pwm_led_1))};.
- Author
- Phil Schatzmann
- Copyright
- GPLv3
◆ PWMConfigZephyr()
◆ clear()
◆ copyFrom()
◆ equals()
Returns true if alt values are the same like the current values.
◆ equalsExSampleRate()
Checks if only the sample rate is different.
◆ logConfig()
◆ logInfo()
◆ 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)
◆ buffer_size
size of an inidividual buffer
◆ buffers
◆ channels
Number of channels: 2=stereo, 1=mono.
◆ max_sample_rate
max sample sample rate that still produces good audio
◆ pins
Define the pwm pins in zephyr.
◆ pwm_frequency
◆ resolution
◆ sample_rate
The documentation for this struct was generated from the following file: