Files
Gamble/MPU6050/APP/as5600.h
2023-12-18 14:36:22 +08:00

21 lines
397 B
C

#ifndef _AS5600_H
#define _AS5600_H
#include "system.h"
#include "foc_math.h"
extern long cpr;
extern float full_rotation_offset;
extern long angle_data_prev;
extern unsigned long velocity_calc_timestamp;
extern float angle_prev;
void I2C_Init_(void);
unsigned short I2C_getRawCount(I2C_TypeDef* I2Cx);
void MagneticSensor_Init(void);
float getAngle(void);
float getVelocity(void);
#endif