⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vhzprof.h

📁 TI的digital motor control lib的源代码。了解TI的编程规范
💻 H
字号:
/* =================================================================================
File name:        VHZPROF.H                       
                    
Originator:	Digital Control Systems Group
			Texas Instruments

Description: 
         Header file containing constants, data type definitions, and 
         function prototypes for the VHPROFILE module.
=====================================================================================
 History:
-------------------------------------------------------------------------------------
 9-15-2000	Release	Rev 1.0                                                   
------------------------------------------------------------------------------*/

#ifndef __VHZPROF_H__
#define __VHZPROF_H__

typedef struct { int freq;        /* Frequency input Q15                     */
                 int fl;          /* Freq below which vout=vmin : Q15 Input  */
                 int fh;          /* Freq above which vout=vmax : Q15 Input  */
                 int slope;      /* Slope of the Vhz profile   : Q15 Input   */
                 int vmax;       /* Voltage output above fmax  : Q15 Input   */
                 int vmin;       /* Voltage output below fmin  : Q15 Input   */
                 int vout;       /* Computed output voltage    : Q15 Output  */
                 int (*calc)();  /* Pointer to the calculation function      */
               } VHZPROFILE;
                   
                     
#define DEFAULT_PROFILE { 0x0000, \
                          0x0000, \
                          0x7fff, \
                          0x0000, \
                          0x0000, \
                          0x0000, \
                          0x0000, \
                          (int (*)(int))Vhz_Profile_Calculate }

/*------------------------------------------------------------------------------
Prototypes for the functions in VHZPROF.ASM
------------------------------------------------------------------------------*/
int Vhz_Profile_Calculate(VHZPROFILE *);

#endif /* __VHZPROF_H__ */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -