10#define MPU6886_ADDRESS 0x68
11#define MPU6886_WHOAMI 0x75
12#define MPU6886_ACCEL_INTEL_CTRL 0x69
13#define MPU6886_SMPLRT_DIV 0x19
14#define MPU6886_INT_PIN_CFG 0x37
15#define MPU6886_INT_ENABLE 0x38
16#define MPU6886_ACCEL_XOUT_H 0x3B
17#define MPU6886_ACCEL_XOUT_L 0x3C
18#define MPU6886_ACCEL_YOUT_H 0x3D
19#define MPU6886_ACCEL_YOUT_L 0x3E
20#define MPU6886_ACCEL_ZOUT_H 0x3F
21#define MPU6886_ACCEL_ZOUT_L 0x40
23#define MPU6886_TEMP_OUT_H 0x41
24#define MPU6886_TEMP_OUT_L 0x42
26#define MPU6886_GYRO_XOUT_H 0x43
27#define MPU6886_GYRO_XOUT_L 0x44
28#define MPU6886_GYRO_YOUT_H 0x45
29#define MPU6886_GYRO_YOUT_L 0x46
30#define MPU6886_GYRO_ZOUT_H 0x47
31#define MPU6886_GYRO_ZOUT_L 0x48
33#define MPU6886_USER_CTRL 0x6A
34#define MPU6886_PWR_MGMT_1 0x6B
35#define MPU6886_PWR_MGMT_2 0x6C
36#define MPU6886_CONFIG 0x1A
37#define MPU6886_GYRO_CONFIG 0x1B
38#define MPU6886_ACCEL_CONFIG 0x1C
39#define MPU6886_ACCEL_CONFIG2 0x1D
40#define MPU6886_FIFO_EN 0x23
void MPU6886_GetAccelData(float *ax, float *ay, float *az)
Retrieves the accelerometer measurements from the MPU6886.
Definition: mpu6886.c:162
float MPU6886_GetAccRes(acc_scale_t scale)
Retrieves the resolution of the accelerometer measurements on the MPU6886.
Definition: mpu6886.c:128
void MPU6886_SetAccelFSR(acc_scale_t scale)
Sets the full-scale range of the accelerometer on the MPU6886.
Definition: mpu6886.c:153
int MPU6886_Init(void)
Initializes the MPU6886 over I2C.
Definition: mpu6886.c:22
void MPU6886_GetTempAdc(int16_t *t)
Retrieves the internal temperature measurement from the 16-bit ADC on the MPU6886.
Definition: mpu6886.c:108
void MPU6886_GetGyroAdc(int16_t *gx, int16_t *gy, int16_t *gz)
Retrieves the gyroscope measurements from the 16-bit ADC on the MPU6886.
Definition: mpu6886.c:99
float MPU6886_GetGyroRes(gyro_scale_t scale)
Retrieves the resolution of the gyroscope measurements on the MPU6886.
Definition: mpu6886.c:114
void MPU6886_GetGyroData(float *roll, float *yaw, float *pitch)
Retrieves the gyroscope measurements from the MPU6886.
Definition: mpu6886.c:173
void MPU6886_SetGyroFSR(gyro_scale_t scale)
Sets the full-scale range of the gyroscope on the MPU6886.
Definition: mpu6886.c:145
void MPU6886_GetTempData(float *t)
Retrieves the internal temperature measurement from the MPU6886.
Definition: mpu6886.c:184
acc_scale_t
List of possible accelerometer scalars in Gs.
Definition: mpu6886.h:46
@ MPU6886_AFS_8G
Definition: mpu6886.h:49
@ MPU6886_AFS_16G
Definition: mpu6886.h:50
@ MPU6886_AFS_4G
Definition: mpu6886.h:48
@ MPU6886_AFS_2G
Definition: mpu6886.h:47
void MPU6886_GetAccelAdc(int16_t *ax, int16_t *ay, int16_t *az)
Retrieves the accelerometer measurements from the 16-bit ADC on the MPU6886.
Definition: mpu6886.c:90
gyro_scale_t
List of possible gyroscope scalars in degrees per second.
Definition: mpu6886.h:58
@ MPU6886_GFS_500DPS
Definition: mpu6886.h:60
@ MPU6886_GFS_250DPS
Definition: mpu6886.h:59
@ MPU6886_GFS_1000DPS
Definition: mpu6886.h:61
@ MPU6886_GFS_2000DPS
Definition: mpu6886.h:62