as5011.h 545 B

1234567891011121314151617181920
  1. #ifndef _AS5011_H
  2. #define _AS5011_H
  3. /*
  4. * Copyright (c) 2010, 2011 Fabien Marteau <fabien.marteau@armadeus.com>
  5. *
  6. * This program is free software; you can redistribute it and/or modify it
  7. * under the terms of the GNU General Public License version 2 as published by
  8. * the Free Software Foundation.
  9. */
  10. struct as5011_platform_data {
  11. unsigned int button_gpio;
  12. unsigned int axis_irq; /* irq number */
  13. unsigned long axis_irqflags;
  14. char xp, xn; /* threshold for x axis */
  15. char yp, yn; /* threshold for y axis */
  16. };
  17. #endif /* _AS5011_H */