mpu3050.h 822 B

123456789101112131415161718192021222324252627282930313233
  1. /*
  2. * Copyright (c) 2012, The Linux Foundation. All rights reserved.
  3. *
  4. * This program is free software; you can redistribute it and/or modify
  5. * it under the terms of the GNU General Public License version 2 and
  6. * only version 2 as published by the Free Software Foundation.
  7. *
  8. * This program is distributed in the hope that it will be useful,
  9. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  10. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  11. * GNU General Public License for more details.
  12. */
  13. #ifndef __MPU3050_H__
  14. #define __MPU3050_H__
  15. struct mpu3050_gyro_platform_data {
  16. int poll_interval;
  17. int min_interval;
  18. int (*init)(void);
  19. void (*exit)(void);
  20. int (*power_on)(void);
  21. int (*power_off)(void);
  22. int gpio_int;
  23. int gpio_en;
  24. int gpio_fsync;
  25. };
  26. #endif /* __MPU3050_H__ */