Paparazzi UAS v7.0_unstable
Paparazzi is a free software Unmanned Aircraft System.
Loading...
Searching...
No Matches
ak8963_regs.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 2014 Freek van Tienen <freek.v.tienen@gmail.com>
3 *
4 * This file is part of paparazzi.
5 *
6 * paparazzi is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2, or (at your option)
9 * any later version.
10 *
11 * paparazzi is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
15 *
16 * You should have received a copy of the GNU General Public License
17 * along with paparazzi; see the file COPYING. If not, write to
18 * the Free Software Foundation, 59 Temple Place - Suite 330,
19 * Boston, MA 02111-1307, USA.
20 */
21
28#ifndef AK8963_REGS_H
29#define AK8963_REGS_H
30
31#define AK8963_ADDR 0x1A
32
33/* Compass device dependent definition */
34#define AK8963_CNTL1_POWER_DOWN 0x10
35#define AK8963_CNTL1_SNG_MEASURE 0x11
36#define AK8963_CNTL1_CM_1 0x12
37#define AK8963_CNTL1_CM_2 0x16
38#define AK8963_CNTL1_EXT_TRIG 0x14
39#define AK8963_CNTL1_SELF_TEST 0x18
40#define AK8963_CNTL1_FUSE_ACCESS 0x1F
41
42/* AK8963 register address */
43#define AK8963_REG_WIA 0x00
44#define AK8963_REG_INFO 0x01
45#define AK8963_REG_ST1 0x02
46#define AK8963_REG_HXL 0x03
47#define AK8963_REG_HXH 0x04
48#define AK8963_REG_HYL 0x05
49#define AK8963_REG_HYH 0x06
50#define AK8963_REG_HZL 0x07
51#define AK8963_REG_HZH 0x08
52#define AK8963_REG_ST2 0x09
53#define AK8963_REG_CNTL1 0x0A
54#define AK8963_REG_CNTL2 0x0B
55#define AK8963_REG_ASTC 0x0C
56#define AK8963_REG_TS1 0x0D
57#define AK8963_REG_TS2 0x0E
58#define AK8963_REG_I2CDIS 0x0F
59
60/* AK8963 fuse-rom address */
61#define AK8963_FUSE_ASAX 0x10
62#define AK8963_FUSE_ASAY 0x11
63#define AK8963_FUSE_ASAZ 0x12
64
65#endif /* AK8963_REGS_H */