Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
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
19
#ifndef BMX055_INTERNAL_H
20
#define BMX055_INTERNAL_H
21
22
#ifdef __cplusplus
23
extern
"C"
{
24
#endif
25
30
#define REG_MAG_CHIPID (0x40U)
31
#define REG_MAG_CHIPID_VAL (0x32U)
32
#define REG_MAG_OPMODE (0x4CU)
33
#define REG_MAG_PWRCTRL (0x4BU)
34
#define REG_MAG_DATA (0x42U)
35
41
#define BIT_MAG_PWRCTRL_VAL (0x01U)
42
#define BIT_MAG_DATARDY (0x01U)
43
49
#define REG_ACC_CHIPID (0x00U)
50
#define REG_ACC_CHIPID_VAL (0xFAU)
51
#define REG_ACC_SHDW (0x13U)
52
#define REG_ACC_SHDW_ENABLE (0x00U)
53
#define REG_ACC_DATA (0x02U)
54
60
#define REG_ACC_RANGE (0x0FU)
61
#define BIT_ACC_RANGE_2G (0x03U)
62
#define BIT_ACC_RANGE_4G (0x05U)
63
#define BIT_ACC_RANGE_8G (0x08U)
64
#define BIT_ACC_RANGE_16G (0x0CU)
65
71
#define REG_GYRO_CHIPID (0x00U)
72
#define REG_GYRO_CHIPID_VAL (0x0FU)
73
#define REG_GYRO_SCALE (0x0FU)
74
#define REG_GYRO_SHDW (0x13U)
75
#define REG_GYRO_SHDW_EN (0x00U)
76
#define REG_GYRO_PWRMD (0x11U)
77
#define REG_GYRO_PWRMD_NORM (0x00U)
78
#define REG_GYRO_DATA (0x02U)
79
81
#ifdef __cplusplus
82
}
83
#endif
84
85
#endif
/* BMX055_INTERNAL_H */
86
Generated on Tue Nov 24 2020 19:46:50 by
1.8.17