Name

struct pwm_args — board-dependent PWM arguments

Synopsis

struct pwm_args {
  unsigned int period;
  enum pwm_polarity polarity;
};  

Members

period

reference period

polarity

reference polarity

Description

This structure describes board-dependent arguments attached to a PWM device. These arguments are usually retrieved from the PWM lookup table or device tree.

Do not confuse this with the PWM state

PWM arguments represent the initial configuration that users want to use on this PWM device rather than the current PWM hardware state.