Lines Matching +full:invert +full:- +full:enable
8 * SPDX-License-Identifier: GPL-2.0+
17 * set_config() - Set the PWM configuration
23 * @return 0 if OK, -ve on error
29 * set_enable() - Enable or disable the PWM
33 * @enable: true to enable, false to disable
34 * @return 0 if OK, -ve on error
36 int (*set_enable)(struct udevice *dev, uint channel, bool enable);
38 * set_invert() - Set the PWM invert
42 * @polarity: true to invert, false to keep normal polarity
43 * @return 0 if OK, -ve on error
48 #define pwm_get_ops(dev) ((struct pwm_ops *)(dev)->driver->ops)
51 * pwm_set_config() - Set the PWM configuration
57 * @return 0 if OK, -ve on error
63 * pwm_set_enable() - Enable or disable the PWM
67 * @enable: true to enable, false to disable
68 * @return 0 if OK, -ve on error
70 int pwm_set_enable(struct udevice *dev, uint channel, bool enable);
73 * pwm_set_invert() - Set pwm default polarity
77 * @polarity: true to invert, false to keep normal polarity
78 * @return 0 if OK, -ve on error
84 int pwm_init (int pwm_id, int div, int invert);