Toggle navigation
Documentation
The friendly Operating System for the Internet of Things
Loading...
Searching...
No Matches
mpu9x50_internal.h
Go to the documentation of this file.
1
/*
2
* Copyright (C) 2020 HAW Hamburg
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
18
#ifndef MPU9X50_INTERNAL_H
19
#define MPU9X50_INTERNAL_H
20
21
#ifdef __cplusplus
22
extern
"C"
{
23
#endif
24
29
#define MPU9X50_PWR_WAKEUP (0x00)
30
#define MPU9X50_PWR_PLL (0x01)
31
#define MPU9X50_PWR_RESET (0x80)
38
#define MPU9X50_PWR_GYRO (0x07)
39
#define MPU9X50_PWR_ACCEL (0x38)
46
#define MPU9X50_COMP_MODE_SLEEP_MS (1)
47
#define MPU9X50_BYPASS_SLEEP_MS (3)
48
#define MPU9X50_PWR_CHANGE_SLEEP_MS (50)
49
#define MPU9X50_RESET_SLEEP_MS (100)
56
#define MPU9X50_COMP_POWER_DOWN (0x00)
57
#define MPU9X50_COMP_SINGLE_MEASURE (0x01)
58
#define MPU9X50_COMP_SELF_TEST (0x08)
59
#define MPU9X50_COMP_FUSE_ROM (0x0F)
60
#define MPU9X50_COMP_WHOAMI_ANSWER (0x48)
67
#ifdef MODULE_MPU9150
68
#define MPU9X50_TEMP_SENSITIVITY 340
69
#define MPU9X50_TEMP_OFFSET 35
70
#elif defined(MODULE_MPU9250)
71
#define MPU9X50_TEMP_SENSITIVITY 333.87
72
#define MPU9X50_TEMP_OFFSET 21
73
#else
74
#error "MPU9X50 DRIVER not selected or supported"
75
#endif
78
#ifdef __cplusplus
79
}
80
#endif
81
82
#endif
/* MPU9X50_INTERNAL_H */
Generated on Thu Nov 21 2024 13:53:01 by
1.9.8