TM STM32F4xx Libraries  v1.0.0
Libraries for STM32F4xx devices from Tilen Majerle
TM_MPU6050_Typedefs

Library Typedefs. More...

Data Structures

struct  TM_MPU6050_t
 Main MPU6050 structure. More...
 

Enumerations

enum  TM_MPU6050_Device_t { TM_MPU6050_Device_0 = 0, TM_MPU6050_Device_1 = 0x02 }
 MPU6050 can have 2 different slave addresses, depends on it's input AD0 pin This feature allows you to use 2 different sensors with this library at the same time. More...
 
enum  TM_MPU6050_Result_t { TM_MPU6050_Result_Ok = 0x00, TM_MPU6050_Result_DeviceNotConnected, TM_MPU6050_Result_DeviceInvalid }
 MPU6050 result enumeration. More...
 
enum  TM_MPU6050_Accelerometer_t { TM_MPU6050_Accelerometer_2G = 0x00, TM_MPU6050_Accelerometer_4G = 0x01, TM_MPU6050_Accelerometer_8G = 0x02, TM_MPU6050_Accelerometer_16G = 0x03 }
 Parameters for accelerometer range. More...
 
enum  TM_MPU6050_Gyroscope_t { TM_MPU6050_Gyroscope_250s = 0x00, TM_MPU6050_Gyroscope_500s = 0x01, TM_MPU6050_Gyroscope_1000s = 0x02, TM_MPU6050_Gyroscope_2000s = 0x03 }
 Parameters for gyroscope range. More...
 

Detailed Description

Library Typedefs.

Enumeration Type Documentation

Parameters for accelerometer range.

Enumerator
TM_MPU6050_Accelerometer_2G 

Range is +- 2G

TM_MPU6050_Accelerometer_4G 

Range is +- 4G

TM_MPU6050_Accelerometer_8G 

Range is +- 8G

TM_MPU6050_Accelerometer_16G 

Range is +- 16G

MPU6050 can have 2 different slave addresses, depends on it's input AD0 pin This feature allows you to use 2 different sensors with this library at the same time.

Enumerator
TM_MPU6050_Device_0 

AD0 pin is set to low

TM_MPU6050_Device_1 

AD0 pin is set to high

Parameters for gyroscope range.

Enumerator
TM_MPU6050_Gyroscope_250s 

Range is +- 250 degrees/s

TM_MPU6050_Gyroscope_500s 

Range is +- 500 degrees/s

TM_MPU6050_Gyroscope_1000s 

Range is +- 1000 degrees/s

TM_MPU6050_Gyroscope_2000s 

Range is +- 2000 degrees/s

MPU6050 result enumeration.

Enumerator
TM_MPU6050_Result_Ok 

Everything OK

TM_MPU6050_Result_DeviceNotConnected 

There is no device with valid slave address

TM_MPU6050_Result_DeviceInvalid 

Connected device with address is not MPU6050