📄 volt_freq_c.h
字号:
/*------------------------------------------------------------------------
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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -