ak8963c_reg.h 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 __AK8963C_REG__
  16. #define __AK8963C_REG__
  17. /* Compass device dependent definition */
  18. #define AK8963C_CNTL1_SNG_MEASURE 0x11
  19. #define AK8963C_CNTL1_SELF_TEST 0x18
  20. #define AK8963C_CNTL1_FUSE_ACCESS 0x1F
  21. #define AK8963C_CNTL1_POWER_DOWN 0x10
  22. /* AK8963 register address */
  23. #define AK8963C_REG_WIA 0x00
  24. #define AK8963C_REG_INFO 0x01
  25. #define AK8963C_REG_ST1 0x02
  26. #define AK8963C_REG_HXL 0x03
  27. #define AK8963C_REG_HXH 0x04
  28. #define AK8963C_REG_HYL 0x05
  29. #define AK8963C_REG_HYH 0x06
  30. #define AK8963C_REG_HZL 0x07
  31. #define AK8963C_REG_HZH 0x08
  32. #define AK8963C_REG_ST2 0x09
  33. #define AK8963C_REG_CNTL1 0x0A
  34. #define AK8963C_REG_CNTL2 0x0B
  35. #define AK8963C_REG_ASTC 0x0C
  36. #define AK8963C_REG_TS1 0x0D
  37. #define AK8963C_REG_TS2 0x0E
  38. #define AK8963C_REG_I2CDIS 0x0F
  39. /* AK8963 fuse-rom address */
  40. #define AK8963C_FUSE_ASAX 0x10
  41. #define AK8963C_FUSE_ASAY 0x11
  42. #define AK8963C_FUSE_ASAZ 0x12
  43. #endif /* __AK8963C_REG__ */