rampgen.h

来自「TI公司28XDSP控制永磁同步电机(PMSM)」· C头文件 代码 · 共 37 行

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

Description: 
This file contains type definitions, constants and initializers for
the ramp generation functions contained in RAMPGEN.C
=====================================================================================
 History:
-------------------------------------------------------------------------------------
 04-15-2005	Version 3.20                                                
------------------------------------------------------------------------------*/

typedef struct { float32  Freq; 		// Input: Ramp frequency (pu)
		 	     float32  StepAngleMax;	// Parameter: Maximum step angle (pu)		
	 	 	     float32  Angle;		// Variable: Step angle (pu) 				  
			     float32  Gain;			// Input: Ramp gain (pu) 
			     float32  Out;			// Output: Ramp signal (pu)
			     float32  Offset;		// Input: Ramp offset (pu)				 
	  	  	     void  (*calc)();	  	// Pointer to calculation function
			   } RAMPGEN;	            

typedef RAMPGEN *RAMPGEN_handle;  
/*------------------------------------------------------------------------------
      Object Initializers
------------------------------------------------------------------------------*/                       
#define RAMPGEN_DEFAULTS {0,0,0,1,0,1, \
                         (void (*)(Uint32))rampgen_calc }

/*------------------------------------------------------------------------------
      Funtion prototypes
------------------------------------------------------------------------------*/                                               
void rampgen_calc(RAMPGEN_handle);

⌨️ 快捷键说明

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