HardwareDriver/mpu6050/m451/hal.h

10 lines
305 B
C
Raw Normal View History

2019-04-04 16:11:03 +00:00
#ifndef __HAL__
#define __HAL__
2019-04-06 04:14:25 +00:00
int MPUWriteReg(char ad,char RegAddr, char pucDATD_AA);
2019-04-04 16:11:03 +00:00
int MPUWriteAddr();
2019-04-06 04:14:25 +00:00
char MPUReadReg(char ad,int unAddr/*, int unLength*/);
int MPUReadBuf(char slaveAddress,int unAddr, char *pucDATD_AA, int unLength);
void MpuGetData(void); //读取陀螺仪数据加滤波
2019-04-04 16:11:03 +00:00
#endif