invensense_mpu6050.h 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. /*
  2. * Copyright (C) 2012 Invensense, Inc.
  3. *
  4. * This software is licensed under the terms of the GNU General Public
  5. * License version 2, as published by the Free Software Foundation, and
  6. * may be copied, distributed, and modified under those terms.
  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 __INV_MPU6050_PLATFORM_H_
  14. #define __INV_MPU6050_PLATFORM_H_
  15. /**
  16. * struct inv_mpu6050_platform_data - Platform data for the mpu driver
  17. * @orientation: Orientation matrix of the chip
  18. *
  19. * Contains platform specific information on how to configure the MPU6050 to
  20. * work on this platform. The orientation matricies are 3x3 rotation matricies
  21. * that are applied to the data to rotate from the mounting orientation to the
  22. * platform orientation. The values must be one of 0, 1, or -1 and each row and
  23. * column should have exactly 1 non-zero value.
  24. */
  25. struct inv_mpu6050_platform_data {
  26. __s8 orientation[9];
  27. };
  28. #endif