Files
Linux_Drivers/i2c/ex2/mpu6050.h
2023-12-24 10:29:22 +00:00

19 lines
258 B
C
Executable File

#ifndef _MPU6050_H
#define _MPU6050_H
struct atg_val {
short accelx;
short accely;
short accelz;
short temp;
short gyrox;
short gyroy;
short gyroz;
};
#define MPU6050_MAGIC 'm'
#define MPU6050_GET_VAL _IOR(MPU6050_MAGIC, 0, struct atg_val)
#endif