softsvpwm_c.h
来自「f2407:电机控制」· C头文件 代码 · 共 22 行
H
22 行
/*-------------------------------------------------------------------
File name: softsvpwm_c.h
Discription:
This file include the definition of structure softsvpwm and the
function prototype statment of soft_svpwm.
-------------------------------------------------------------------*/
/*-------------------------------------------------------------------
structure type definition
-------------------------------------------------------------------*/
typedef struct
{ int Vdcinvt; //Q0, coefficient
int PWMPRD; //Q0, value of period register TxPR
int va; //Q0, CMPR1 register value as a fraction of associated period register, TxPR, value
int vb; //Q0, CMPR2 register value as a fraction of associated period register, TxPR, value
int vc; //Q0, CMPR3 register value as a fraction of associated period register, TxPR, value
}softsvpwm;
/*-------------------------------------------------------------------
function prototype statment
-------------------------------------------------------------------*/
extern void soft_svpwm(softsvpwm *p, int u_alfa, int u_beta);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?