struct pwm_device — PWM channel object
struct pwm_device { const char * label; unsigned long flags; unsigned int hwpwm; unsigned int pwm; struct pwm_chip * chip; void * chip_data; struct mutex lock; unsigned int period; unsigned int duty_cycle; enum pwm_polarity polarity; };
name of the PWM device
flags associated with the PWM device
per-chip relative index of the PWM device
global index of the PWM device
PWM chip providing this PWM device
chip-private data associated with the PWM device
used to serialize accesses to the PWM device where necessary
period of the PWM signal (in nanoseconds)
duty cycle of the PWM signal (in nanoseconds)
polarity of the PWM signal