arduino-audio-tools
|
Mapping information for one complementary PWM audio channel. More...
#include <PWMComplementaryDriverESP32.h>
Public Attributes | |
int | gpio_high |
int | gpio_low |
mcpwm_timer_t | timer |
mcpwm_unit_t | unit |
Mapping information for one complementary PWM audio channel.
A single logical audio PWM channel is produced by one MCPWM timer within an MCPWM unit. Each timer provides two generator outputs (A and B) which we map to a high-side MOSFET gate (gpio_high / PWMxA) and a low-side MOSFET gate (gpio_low / PWMxB). When dead time is enabled the peripheral inserts blanking around switching edges to avoid shoot-through between the high and low transistors on a half bridge.