PWM_Polarity Enum

Header: #include <applibs/pwm.h>

The polarity of a PWM channel.

typedef uint32_t PwmPolarity;

enum {
    PWM_Polarity_Normal,
    PWM_Polarity_Inversed,
};

Values

PWM_Polarity_Normal

Normal polarity, which specifies a high signal during the duty cycle, and a low signal for the remainder of the period. For example, a duty cycle of 100 nanoseconds (ns) with a period of 300 ns results in a high signal for 100 ns and a low signal for 200 ns.

PWM_Polarity_Inversed

Inverse polarity, which specifies a low signal during the duty cycle, and a high signal for the remainder of the period. For example, a duty cycle of 100 ns with a period of 300 ns results in a high signal for 200 ns and a low signal for 100 ns.