arduino-audio-tools
Loading...
Searching...
No Matches
Classes | Namespaces | Macros
PWMConfigZephyr.h File Reference
#include "stdint.h"
#include "vector"
#include <zephyr/drivers/pwm.h>

Go to the source code of this file.

Classes

struct  PWMConfigZephyr
 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...
 

Namespaces

namespace  audio_tools
 Generic Implementation of sound input and output for desktop environments using portaudio.
 

Macros

#define PWM_PIN(pin_label)   PWM_DT_SPEC_GET(DT_NODELABEL(pin_label))
 Macro to get the pwm_dt_spec.
 

Macro Definition Documentation

◆ PWM_PIN

#define PWM_PIN (   pin_label)    PWM_DT_SPEC_GET(DT_NODELABEL(pin_label))

Macro to get the pwm_dt_spec.