Zephyr API Documentation  3.0.0
A Scalable Open Source RTOS
3.0.0
All Data Structures Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
pwm.h File Reference

Go to the source code of this file.

Macros

PWM polarity flags

The PWM_POLARITY_* flags are used with pwm_pin_set_cycles(), pwm_pin_set_usec(), pwm_pin_set_nsec() or pwm_pin_configure_capture() to specify the polarity of a PWM pin.

#define PWM_POLARITY_NORMAL   (0 << 0)
 
#define PWM_POLARITY_INVERTED   (1 << 0)
 

Macro Definition Documentation

◆ PWM_POLARITY_INVERTED

#define PWM_POLARITY_INVERTED   (1 << 0)

PWM pin inverted polarity (active-low pulse).

◆ PWM_POLARITY_NORMAL

#define PWM_POLARITY_NORMAL   (0 << 0)

PWM pin normal polarity (active-high pulse).