ak09911c_reg.h 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. /*
  2. * Copyright (C) 2010, Samsung Electronics Co. Ltd. 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 as published by
  6. * the Free Software Foundation; either version 2 of the License, or
  7. * (at your option) any later version.
  8. *
  9. * This program is distributed in the hope that it will be useful,
  10. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. * GNU General Public License for more details.
  13. *
  14. */
  15. #ifndef __AK09911C_REG__
  16. #define __AK09911C_REG__
  17. /* Compass device dependent definition */
  18. #define AK09911C_REG_WIA1 0x00
  19. #define AK09911C_REG_WIA2 0x01
  20. #define AK09911C_REG_INFO1 0x02
  21. #define AK09911C_REG_INFO2 0x03
  22. #define AK09911C_REG_ST1 0x10
  23. #define AK09911C_REG_HXL 0x11
  24. #define AK09911C_REG_HXH 0x12
  25. #define AK09911C_REG_HYL 0x13
  26. #define AK09911C_REG_HYH 0x14
  27. #define AK09911C_REG_HZL 0x15
  28. #define AK09911C_REG_HZH 0x16
  29. #define AK09911C_REG_TMPS 0x17
  30. #define AK09911C_REG_ST2 0x18
  31. #define AK09911C_REG_CNTL1 0x30
  32. #define AK09911C_REG_CNTL2 0x31
  33. #define AK09911C_REG_CNTL3 0x32
  34. #define AK09911C_FUSE_ASAX 0x60
  35. #define AK09911C_FUSE_ASAY 0x61
  36. #define AK09911C_FUSE_ASAZ 0x62
  37. #define AK09911C_MODE_SNG_MEASURE 0x01
  38. #define AK09911C_MODE_SELF_TEST 0x10
  39. #define AK09911C_MODE_FUSE_ACCESS 0x1F
  40. #define AK09911C_MODE_POWERDOWN 0x00
  41. #define AK09911C_RESET_DATA 0x01
  42. #endif /* __AK09911C_REG__ */