pwm.h 595 B

12345678910111213141516171819202122232425262728293031
  1. #ifndef __LINUX_PWM_H
  2. #define __LINUX_PWM_H
  3. struct pwm_device;
  4. /*
  5. * pwm_request - request a PWM device
  6. */
  7. struct pwm_device *pwm_request(int pwm_id, const char *label);
  8. /*
  9. * pwm_free - free a PWM device
  10. */
  11. void pwm_free(struct pwm_device *pwm);
  12. /*
  13. * pwm_config - change a PWM device configuration
  14. */
  15. int pwm_config(struct pwm_device *pwm, int duty_ns, int period_ns);
  16. /*
  17. * pwm_enable - start a PWM output toggling
  18. */
  19. int pwm_enable(struct pwm_device *pwm);
  20. /*
  21. * pwm_disable - stop a PWM output toggling
  22. */
  23. void pwm_disable(struct pwm_device *pwm);
  24. #endif /* __ASM_ARCH_PWM_H */