iio-trig-bfin-timer.h 943 B

123456789101112131415161718192021222324
  1. #ifndef __IIO_BFIN_TIMER_TRIGGER_H__
  2. #define __IIO_BFIN_TIMER_TRIGGER_H__
  3. /**
  4. * struct iio_bfin_timer_trigger_pdata - timer trigger platform data
  5. * @output_enable: Enable external trigger pulse generation.
  6. * @active_low: Whether the trigger pulse is active low.
  7. * @duty_ns: Length of the trigger pulse in nanoseconds.
  8. *
  9. * This struct is used to configure the output pulse generation of the blackfin
  10. * timer trigger. If output_enable is set to true an external trigger signal
  11. * will generated on the pin corresponding to the timer. This is useful for
  12. * converters which needs an external signal to start conversion. active_low and
  13. * duty_ns are used to configure the type of the trigger pulse. If output_enable
  14. * is set to false no external trigger pulse will be generated and active_low
  15. * and duty_ns are ignored.
  16. **/
  17. struct iio_bfin_timer_trigger_pdata {
  18. bool output_enable;
  19. bool active_low;
  20. unsigned int duty_ns;
  21. };
  22. #endif