Lines Matching +full:pwm +full:- +full:0
1 /* SPDX-License-Identifier: GPL-2.0+ */
3 * header file for pwm driver.
13 /* struct pwm_ops: Operations for the PWM uclass */
16 * set_config() - Set the PWM configuration
18 * @dev: PWM device to update
19 * @channel: PWM channel to update
20 * @period_ns: PWM period in nanoseconds
21 * @duty_ns: PWM duty period in nanoseconds
22 * @return 0 if OK, -ve on error
28 * set_enable() - Enable or disable the PWM
30 * @dev: PWM device to update
31 * @channel: PWM channel to update
33 * @return 0 if OK, -ve on error
37 * set_invert() - Set the PWM invert
39 * @dev: PWM device to update
40 * @channel: PWM channel to update
42 * @return 0 if OK, -ve on error
47 #define pwm_get_ops(dev) ((struct pwm_ops *)(dev)->driver->ops)
50 * pwm_set_config() - Set the PWM configuration
52 * @dev: PWM device to update
53 * @channel: PWM channel to update
54 * @period_ns: PWM period in nanoseconds
55 * @duty_ns: PWM duty period in nanoseconds
56 * @return 0 if OK, -ve on error
62 * pwm_set_enable() - Enable or disable the PWM
64 * @dev: PWM device to update
65 * @channel: PWM channel to update
67 * @return 0 if OK, -ve on error
72 * pwm_set_invert() - Set pwm default polarity
74 * @dev: PWM device to update
75 * @channel: PWM channel to update
77 * @return 0 if OK, -ve on error