Lines Matching +full:- +full:pwm
2 * header file for pwm driver.
8 * SPDX-License-Identifier: GPL-2.0+
14 /* struct pwm_ops: Operations for the PWM uclass */
17 * set_config() - Set the PWM configuration
19 * @dev: PWM device to update
20 * @channel: PWM channel to update
21 * @period_ns: PWM period in nanoseconds
22 * @duty_ns: PWM duty period in nanoseconds
23 * @return 0 if OK, -ve on error
29 * set_enable() - Enable or disable the PWM
31 * @dev: PWM device to update
32 * @channel: PWM channel to update
34 * @return 0 if OK, -ve on error
38 * set_invert() - Set the PWM invert
40 * @dev: PWM device to update
41 * @channel: PWM channel to update
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
53 * @dev: PWM device to update
54 * @channel: PWM channel to update
55 * @period_ns: PWM period in nanoseconds
56 * @duty_ns: PWM duty period in nanoseconds
57 * @return 0 if OK, -ve on error
63 * pwm_set_enable() - Enable or disable the PWM
65 * @dev: PWM device to update
66 * @channel: PWM channel to update
68 * @return 0 if OK, -ve on error
73 * pwm_set_invert() - Set pwm default polarity
75 * @dev: PWM device to update
76 * @channel: PWM channel to update
78 * @return 0 if OK, -ve on error