HPM APP
HPMicro Application solution
rdc_init.h
Go to the documentation of this file.
1 #ifndef RDC_INIT_H_
2 #define RDC_INIT_H_
3 
4 #include "board.h"
5 
18 typedef struct _tag_speed_Cal_Obj{
19 
22  float speedtheta;
25  float speedlasttheta ;
28  float speedthetalastn ;
31  int num ;
34  float o_speedout_filter ;
37  float o_speedout;
39 
40 extern SPEED_CAL g_speed_cal;
41 
46 void Pwm_Duty_Init(void);
56 void rdc_init(void);
57 
60 #endif //__RDC_INIT_H_
61 
void Pwm_TrigFor_interrupt_Init(void)
Config the PWM channel trig for speed calculation interrupt. ;配置pwm通道产生比较中断,用来进行电机速度计算
Definition: qeo_init.c:67
void Pwm_Duty_Init(void)
config PWM. ;pwm配置
Definition: qeo_init.c:50
void rdc_init(void)
rdc config. ;rdc初始化配置
Definition: rdc_cfg.c:169
SPEED_CAL g_speed_cal
Definition: rdc_init.c:33
struct _tag_speed_Cal_Obj SPEED_CAL
speed calculate struct ;速度计算结构体