field_prof.h

来自「TI公司24X系列DSP控制无刷直流电机」· C头文件 代码 · 共 43 行

H
43
字号
/* =================================================================================
File name:        FIELD_PROF.H                     
                    
Originator:	Digital Control Systems Group
			Texas Instruments

Description: 
Header file containing constants, data type definitions, and 
function prototypes for the FIELDPROF module.
=====================================================================================
 History:
-------------------------------------------------------------------------------------
 02-08-2001		Release	Rev 1.00                                                   
------------------------------------------------------------------------------*/

#ifndef __FIELD_PROF_H__
#define __FIELD_PROF_H__

typedef struct {  int  spd_ref_fp;      /* Input: Reference speed (Q15) */
				  int  spd_abs;         /* Variable: Absolute reference speed (Q15) */
				  int  spd_1;		 	/* Parameter: Rated speed (Q15) */
				  int  id_1;			/* Parameter: Maximum value of d-axis stator current (Q15) */			
		 	 	  int  id_ref_fp;		/* Output: Reference d-axis stator current (Q15) */
		 	 	  int  (*calc)();	  	/* Pointer to calculation function */ 
				 } FIELDPROF;	            

/*-----------------------------------------------------------------------------
Default initalizer for the FIELDPROF object.
-----------------------------------------------------------------------------*/                     
#define FIELDPROF_DEFAULTS { 0x0000, \
                          0x0000, \
                          0x4000, \
                          0x2800, \
                          0x0000, \
              			  (int (*)(int))field_profile_calc }

/*------------------------------------------------------------------------------
Prototypes for the functions in FIELD_PROF.ASM
------------------------------------------------------------------------------*/
void field_profile_calc(FIELDPROF *);

#endif /* __FIELD_PROF_H__ */

⌨️ 快捷键说明

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