bmx055_internal.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2017 Freie Universität Berlin
3  *
4  * This file is subject to the terms and conditions of the GNU Lesser
5  * General Public License v2.1. See the file LICENSE in the top level
6  * directory for more details.
7  */
8 
9 #pragma once
10 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
29 #define REG_MAG_CHIPID (0x40U)
30 #define REG_MAG_CHIPID_VAL (0x32U)
31 #define REG_MAG_OPMODE (0x4CU)
32 #define REG_MAG_PWRCTRL (0x4BU)
33 #define REG_MAG_DATA (0x42U)
40 #define BIT_MAG_PWRCTRL_VAL (0x01U)
41 #define BIT_MAG_DATARDY (0x01U)
48 #define REG_ACC_CHIPID (0x00U)
49 #define REG_ACC_CHIPID_VAL (0xFAU)
50 #define REG_ACC_SHDW (0x13U)
51 #define REG_ACC_SHDW_ENABLE (0x00U)
52 #define REG_ACC_DATA (0x02U)
59 #define REG_ACC_RANGE (0x0FU)
60 #define BIT_ACC_RANGE_2G (0x03U)
61 #define BIT_ACC_RANGE_4G (0x05U)
62 #define BIT_ACC_RANGE_8G (0x08U)
63 #define BIT_ACC_RANGE_16G (0x0CU)
70 #define REG_GYRO_CHIPID (0x00U)
71 #define REG_GYRO_CHIPID_VAL (0x0FU)
72 #define REG_GYRO_SCALE (0x0FU)
73 #define REG_GYRO_SHDW (0x13U)
74 #define REG_GYRO_SHDW_EN (0x00U)
75 #define REG_GYRO_PWRMD (0x11U)
76 #define REG_GYRO_PWRMD_NORM (0x00U)
77 #define REG_GYRO_DATA (0x02U)
80 #ifdef __cplusplus
81 }
82 #endif
83