volt_freq_c.h
来自「《DSP原理及电机控制应用-基于240x系列》2008新购的DSP原理及电机控制」· C头文件 代码 · 共 35 行
H
35 行
/*------------------------------------------------------------------------
File name: volt_freq_c.h
Description:
This file include the function prototype statment and the type define
of the output structure variable. Some nessecary defult values of the output
variable are included in the file too.
-------------------------------------------------------------------------*/
/*------------------------------------------------------------------------
structure type variable definition:
--------------------------------------------------------------------------*/
typedef struct
{ int slope; //Q12, slope between voltage and frequence in the VHz control
//for rating voltage, vref=0x1000, and rating freuqence=0x7fff
//slope=2^12*vref/frequence=2^12*0x1000/0x7fff=0x200
int uout; //Q15, return of function
}vhz_volt;
/*--------------------------------------------------------------------------
defult value of structure variable:
---------------------------------------------------------------------------*/
/*vhz_volt DEFULT_VALUE
{ 0x2000;
0x0;
};*/
/*---------------------------------------------------------------------------
function prototype statment
----------------------------------------------------------------------------*/
extern void volt_freq(vhz_volt *p, int freq);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?