Skip to content

Struct SYN_SoftPWM

ClassList > SYN_SoftPWM

Software PWM channel descriptor.

  • #include <syn_soft_pwm.h>

Public Attributes

Type Name
bool active_high
uint16_t counter
uint16_t duty
SYN_GPIO_Pin pin
uint16_t resolution

Public Attributes Documentation

variable active_high

bool SYN_SoftPWM::active_high;

true = GPIO high during on-phase


variable counter

uint16_t SYN_SoftPWM::counter;

Current phase counter


variable duty

uint16_t SYN_SoftPWM::duty;

Duty cycle (0 to resolution)


variable pin

SYN_GPIO_Pin SYN_SoftPWM::pin;

Target GPIO pin identifier


variable resolution

uint16_t SYN_SoftPWM::resolution;

Total steps per period (e.g., 100)



The documentation for this class was generated from the following file src/syntropic/output/syn_soft_pwm.h