LibDriver MPU6050  1.0.0
MPU6050 full-featured driver
driver_mpu6050_fifo.h
Go to the documentation of this file.
1 
37 #ifndef DRIVER_MPU6050_FIFO_H
38 #define DRIVER_MPU6050_FIFO_H
39 
41 
42 #ifdef __cplusplus
43 extern "C"{
44 #endif
45 
54 #define MPU6050_FIFO_DEFAULT_CLOCK_SOURCE MPU6050_CLOCK_SOURCE_PLL_X_GYRO
55 #define MPU6050_FIFO_DEFAULT_RATE 50
56 #define MPU6050_FIFO_DEFAULT_ACCELEROMETER_RANGE MPU6050_ACCELEROMETER_RANGE_2G
57 #define MPU6050_FIFO_DEFAULT_GYROSCOPE_RANGE MPU6050_GYROSCOPE_RANGE_2000DPS
58 #define MPU6050_FIFO_DEFAULT_LOW_PASS_FILTER MPU6050_LOW_PASS_FILTER_3
59 #define MPU6050_FIFO_DEFAULT_CYCLE_WAKE_UP MPU6050_BOOL_FALSE
60 #define MPU6050_FIFO_DEFAULT_WAKE_UP_FREQUENCY MPU6050_WAKE_UP_FREQUENCY_1P25_HZ
61 #define MPU6050_FIFO_DEFAULT_INTERRUPT_PIN_LEVEL MPU6050_PIN_LEVEL_LOW
62 #define MPU6050_FIFO_DEFAULT_INTERRUPT_PIN_TYPE MPU6050_PIN_TYPE_PUSH_PULL
63 #define MPU6050_FIFO_DEFAULT_INTERRUPT_MOTION MPU6050_BOOL_FALSE
64 #define MPU6050_FIFO_DEFAULT_INTERRUPT_FIFO_OVERFLOW MPU6050_BOOL_TRUE
65 #define MPU6050_FIFO_DEFAULT_INTERRUPT_DMP MPU6050_BOOL_FALSE
66 #define MPU6050_FIFO_DEFAULT_INTERRUPT_I2C_MAST MPU6050_BOOL_FALSE
67 #define MPU6050_FIFO_DEFAULT_INTERRUPT_DATA_READY MPU6050_BOOL_FALSE
68 #define MPU6050_FIFO_DEFAULT_INTERRUPT_LATCH MPU6050_BOOL_TRUE
69 #define MPU6050_FIFO_DEFAULT_INTERRUPT_READ_CLEAR MPU6050_BOOL_TRUE
70 #define MPU6050_FIFO_DEFAULT_EXTERN_SYNC MPU6050_EXTERN_SYNC_INPUT_DISABLED
71 #define MPU6050_FIFO_DEFAULT_FSYNC_INTERRUPT MPU6050_BOOL_FALSE
72 #define MPU6050_FIFO_DEFAULT_FSYNC_INTERRUPT_LEVEL MPU6050_PIN_LEVEL_LOW
73 #define MPU6050_FIFO_DEFAULT_IIC_MASTER MPU6050_BOOL_FALSE
74 #define MPU6050_FIFO_DEFAULT_IIC_BYPASS MPU6050_BOOL_FALSE
83 uint8_t mpu6050_fifo_irq_handler(void);
84 
93 uint8_t mpu6050_fifo_init(mpu6050_address_t addr_pin);
94 
107 uint8_t mpu6050_fifo_read(int16_t (*accel_raw)[3], float (*accel_g)[3],
108  int16_t (*gyro_raw)[3], float (*gyro_dps)[3],
109  uint16_t *len
110  );
111 
119 uint8_t mpu6050_fifo_deinit(void);
120 
125 #ifdef __cplusplus
126 }
127 #endif
128 
129 #endif
driver mpu6050 interface header file
mpu6050_address_t
mpu6050 address enumeration definition
Definition: driver_mpu6050.h:63
uint8_t mpu6050_fifo_deinit(void)
fifo example deinit
Definition: driver_mpu6050_fifo.c:560
uint8_t mpu6050_fifo_init(mpu6050_address_t addr_pin)
fifo example init
Definition: driver_mpu6050_fifo.c:68
uint8_t mpu6050_fifo_read(int16_t(*accel_raw)[3], float(*accel_g)[3], int16_t(*gyro_raw)[3], float(*gyro_dps)[3], uint16_t *len)
fifo example read
Definition: driver_mpu6050_fifo.c:538
uint8_t mpu6050_fifo_irq_handler(void)
fifo irq
Definition: driver_mpu6050_fifo.c:48