TM STM32Fxxx HAL Libraries  v1.0.0
Libraries for STM32Fxxx (F0, F4 and F7 series) devices based on HAL drivers from ST from Tilen Majerle

Library Typedefs. More...

Data Structures

struct  _TM_MPU6050_t
 Main MPU6050 structure. More...
 
union  _TM_MPU6050_Interrupt_t
 Interrupts union and structure. More...
 

Typedefs

typedef enum _TM_MPU6050_Device_t TM_MPU6050_Device_t
 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.
 
typedef enum _TM_MPU6050_Result_t TM_MPU6050_Result_t
 MPU6050 result enumeration.
 
typedef enum _TM_MPU6050_Accelerometer_t TM_MPU6050_Accelerometer_t
 Parameters for accelerometer range.
 
typedef enum _TM_MPU6050_Gyroscope_t TM_MPU6050_Gyroscope_t
 Parameters for gyroscope range.
 
typedef struct _TM_MPU6050_t TM_MPU6050_t
 Main MPU6050 structure.
 
typedef union _TM_MPU6050_Interrupt_t TM_MPU6050_Interrupt_t
 Interrupts union and structure.
 

Enumerations

enum  _TM_MPU6050_Device_t { TM_MPU6050_Device_0 = 0x00, 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_Error, 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_Error 

Unknown error

TM_MPU6050_Result_DeviceNotConnected 

There is no device with valid slave address

TM_MPU6050_Result_DeviceInvalid 

Connected device with address is not MPU6050