HPM APP
HPMicro Application solution
pmsm_speedctrl.h
Go to the documentation of this file.
1 /*
2  * Copyright (c) 2023 hpmicro
3  *
4  * SPDX-License-Identifier: BSD-3-Clause
5  *
6  */
7 #ifndef PMSM_SPEEDCTRL_H_
8 #define PMSM_SPEEDCTRL_H_
9 
10 #include "hpm_gptmr_drv.h"
11 #include "hpm_qei_drv.h"
12 #include "parm_global.h"
13 #include "libhpm_motor.h"
14 
29 int32_t pmsm_foc_get_pos(QEI_Type *ptr_qei, int32_t MAX_cnt);
30 
40 void motor_speed_ctrl(MOTOR_PARA *par, PWM_Type *ptr, MOTOR_CONTROL_Global* global_control, QEI_Type *ptr_qei, uint32_t MAX_cnt);
41 
44 #endif //__PMSM_SPEEDTCTRL_H
int32_t pmsm_foc_get_pos(QEI_Type *ptr_qei, int32_t MAX_cnt)
calculate Feedback position ;反馈位置计算
Definition: pmsm_speedctrl.c:13
void motor_speed_ctrl(MOTOR_PARA *par, PWM_Type *ptr, MOTOR_CONTROL_Global *global_control, QEI_Type *ptr_qei, uint32_t MAX_cnt)
pos_vel loop ;速度环/位置环API
Definition: pmsm_speedctrl.c:27
Global control variable ;全局控制变量
Definition: parm_global.h:326
Motor parameter structure ;电机参数结构体
Definition: parm_global.h:362