#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