C++ DevKit
C++ set of OOP library
Loading...
Searching...
No Matches
register_address_MPU6050.h
1#pragma once
2
3//---define MPU6050 register addresses---
4//---------------------------------------
5#define SMPLRT_DIV_RA 0x19 // Register 25 – Sample Rate Divider
6#define CONFIG_RA 0x1A // Register 26 – Configuration FSYNC and DLPF
7#define GYRO_CONFIG_RA 0x1B // Register 27 – Gyroscope Configuration
8#define ACCEL_CONFIG_RA 0x1C // Register 28 – Accelerometer Configuration
9#define FIFO_EN_RA 0x23 // Register 35 – FIFO Enable
10#define I2C_MST_CTRL_RA 0x24 // Register 36 – I2C Master Control
11#define I2C_SLV0_ADDR_RA 0x25 // Registers 37 to 39 – I2C Slave 0 Control
12#define I2C_SLV0_REG_RA 0x26
13#define I2C_SLV0_CTRL_RA 0x27
14#define I2C_SLV1_ADDR_RA 0x28 // Registers 40 to 42 – I2C Slave 1 Control
15#define I2C_SLV1_REG_RA 0x29
16#define I2C_SLV1_CTRL_RA 0x2A
17#define I2C_SLV2_ADDR_RA 0x2B // Registers 43 to 45 – I2C Slave 2 Control
18#define I2C_SLV2_REG_RA 0x2C
19#define I2C_SLV2_CTRL_RA 0x2D
20#define I2C_SLV3_ADDR_RA 0x2E // Registers 46 to 48 – I2C Slave 3 Control
21#define I2C_SLV3_REG_RA 0x2F
22#define I2C_SLV3_CTRL_RA 0x30
23#define I2C_SLV4_ADDR_RA 0x31 // Registers 49 to 53 – I2C Slave 4 Control
24#define I2C_SLV4_REG_RA 0x32
25#define I2C_SLV4_DO_RA 0x33
26#define I2C_SLV4_CTRL_RA 0x34
27#define I2C_SLV4_DI_RA 0x35
28#define I2C_MST_STATUS_RA 0x36 // Register 54 – I2C Master Status
29#define INT_PIN_CFG_RA 0x37 // Register 55 – INT Pin / Bypass Enable Configuration
30#define INT_ENABLE_RA 0x38 // Register 56 – Interrupt Enable
31#define INT_STATUS_RA 0x3A // Register 58 – Interrupt Status
32#define ACCEL_XOUT_H_RA 0x3B // Registers 59 to 64 – Accelerometer Measurements
33#define ACCEL_YOUT_H_RA 0x3D
34#define ACCEL_ZOUT_H_RA 0x3F
35#define TEMP_OUT_H_RA 0x41 // Registers 65 and 66 – Temperature Measurement
36#define GYRO_XOUT_H_RA 0x43 // Registers 67 to 72 – Gyroscope Measurements
37#define GYRO_YOUT_H_RA 0x45
38#define GYRO_ZOUT_H_RA 0x47
39#define EXT_SENS_DATA_00_RA 0x49 // Registers 73 to 96 – External Sensor Data
40#define I2C_SLV0_DO_RA 0x63 // Register 99 – I2C Slave 0 Data Out
41#define I2C_SLV1_DO_RA 0x64 // Register 100 – I2C Slave 1 Data Out
42#define I2C_SLV2_DO_RA 0x65 // Register 101 – I2C Slave 2 Data Out
43#define I2C_SLV3_DO_RA 0x66 // Register 102 – I2C Slave 3 Data Out
44#define I2C_MST_DELAY_CTRL_RA 0x67 // Register 103 – I2C Master Delay Control
45#define SIGNAL_PATH_RESET_RA 0x68 // Register 104 – Signal Path Reset
46#define USER_CTRL_RA 0x6A // Register 106 – User Control
47#define PWR_MGMT_1_RA 0x6B // Register 107 – Power Management 1
48#define PWR_MGMT_2_RA 0x6C // Register 108 – Power Management 2
49#define FIFO_COUNT_H_RA 0x72 // Register 114 and 115 – FIFO Count Registers
50#define FIFO_COUNT_L_RA 0x73
51#define FIFO_R_W_RA 0x74 // Register 116 – FIFO Read Write
52#define WHO_AM_I_RA 0x75 // Register 117 – Who Am I
53
54