Loading...
Searching...
No Matches
bmx055_internal.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2017 Freie Universität Berlin
3 * SPDX-License-Identifier: LGPL-2.1-only
4 */
5
6#pragma once
7
17
18#ifdef __cplusplus
19extern "C" {
20#endif
21
26#define REG_MAG_CHIPID (0x40U)
27#define REG_MAG_CHIPID_VAL (0x32U)
28#define REG_MAG_OPMODE (0x4CU)
29#define REG_MAG_PWRCTRL (0x4BU)
30#define REG_MAG_DATA (0x42U)
32
37#define BIT_MAG_PWRCTRL_VAL (0x01U)
38#define BIT_MAG_DATARDY (0x01U)
40
45#define REG_ACC_CHIPID (0x00U)
46#define REG_ACC_CHIPID_VAL (0xFAU)
47#define REG_ACC_SHDW (0x13U)
48#define REG_ACC_SHDW_ENABLE (0x00U)
49#define REG_ACC_DATA (0x02U)
51
56#define REG_ACC_RANGE (0x0FU)
57#define BIT_ACC_RANGE_2G (0x03U)
58#define BIT_ACC_RANGE_4G (0x05U)
59#define BIT_ACC_RANGE_8G (0x08U)
60#define BIT_ACC_RANGE_16G (0x0CU)
62
67#define REG_GYRO_CHIPID (0x00U)
68#define REG_GYRO_CHIPID_VAL (0x0FU)
69#define REG_GYRO_SCALE (0x0FU)
70#define REG_GYRO_SHDW (0x13U)
71#define REG_GYRO_SHDW_EN (0x00U)
72#define REG_GYRO_PWRMD (0x11U)
73#define REG_GYRO_PWRMD_NORM (0x00U)
74#define REG_GYRO_DATA (0x02U)
76
77#ifdef __cplusplus
78}
79#endif
80