rotary_encoder.h 362 B

1234567891011121314151617
  1. #ifndef __ROTARY_ENCODER_H__
  2. #define __ROTARY_ENCODER_H__
  3. struct rotary_encoder_platform_data {
  4. unsigned int steps;
  5. unsigned int axis;
  6. unsigned int gpio_a;
  7. unsigned int gpio_b;
  8. unsigned int inverted_a;
  9. unsigned int inverted_b;
  10. unsigned int steps_per_period;
  11. bool relative_axis;
  12. bool rollover;
  13. bool wakeup_source;
  14. };
  15. #endif /* __ROTARY_ENCODER_H__ */