26#include "bitbang_i2c.h"
29 unsigned char regs[0x76];
38void mpu6050_set_addr(
mpu6050_t* mpu,
unsigned char addr);
40void mpu6050_set_temp(
mpu6050_t* mpu,
double temp);
41void mpu6050_set_accel(
mpu6050_t* mpu,
double x,
double y,
double z);
42void mpu6050_set_gyro(
mpu6050_t* mpu,
double x,
double y,
double z);
43void mpu6050_set_accel_raw(
mpu6050_t* mpu,
short x,
short y,
short z);
44void mpu6050_set_gyro_raw(
mpu6050_t* mpu,
short x,
short y,
short z);
46unsigned char mpu6050_io_I2C(
mpu6050_t* mpu,
unsigned char scl,
unsigned char sda);
49#define SELF_TEST_X 0x0D
50#define SELF_TEST_Y 0x0E
51#define SELF_TEST_Z 0x0F
53#define SELF_TEST_A 0x10
55#define SMPLRT_DIV 0x19
57#define GYRO_CONFIG 0x1B
58#define ACCEL_CONFIG 0x1C
61#define I2C_MST_CTRL 0x24
63#define I2C_MST_STATUS 0x36
64#define INT_PIN_CONFIG 0x37
65#define INT_ENABLED 0x38
67#define INT_STATUS 0x3A
68#define ACCEL_XOUT_H 0x3B
69#define ACCEL_XOUT_L 0x3C
70#define ACCEL_YOUT_H 0x3D
71#define ACCEL_YOUT_L 0x3E
72#define ACCEL_ZOUT_H 0x3F
73#define ACCEL_ZOUT_L 0x40
74#define TEMP_OUT_H 0x41
75#define TEMP_OUT_L 0x42
76#define GYRO_XOUT_H 0x43
77#define GYRO_XOUT_L 0x44
78#define GYRO_YOUT_H 0x45
79#define GYRO_YOUT_L 0x46
80#define GYRO_ZOUT_H 0x47
81#define GYRO_ZOUT_L 0x48
82#define EXT_SENS_DATA_00 0x49
84#define EXT_SENS_DATA_23 0x60
86#define I2C_SLV0_DO 0x63
87#define I2C_SLV0_D1 0x64
88#define I2C_SLV0_D2 0x65
89#define I2C_SLV0_D3 0x66
90#define I2C_MST_DELAY_CTRL 0x67
91#define SIGNAL_PATH_RESET 0x68
94#define PWR_MGMT_1 0x6B
95#define PWR_MGMT_2 0x6C
97#define FIFO_COUNT_H 0x72
98#define FIFO_COUNT_L 0x73
Definition bitbang_i2c.h:39
Definition sen_mpu6050.h:28