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

📄 ramp.h

📁 DSP2808控制步进电机
💻 H
字号:
/* =================================================================================
File name:        RAMP.H  (IQ version)                  
                    
Originator:		ECS Development

Description: 
Header file containing constants, data type definitions, and 
function prototypes for the RAMP module.
=====================================================================================
 History:
-------------------------------------------------------------------------------------
 04-15-2005	Version 3.20                                                   
------------------------------------------------------------------------------*/
#ifndef __RAMP_H__
#define __RAMP_H__

typedef struct { _iq           TargetIn; 	    // Input: Target input (pu)
				 unsigned long DelayRate;	    // Parameter: Maximum delay rate (Q0) - independently with global Q			
		 	 	 _iq           MaxLimit;	    // Parameter: Minimum limit (pu)				  
				 _iq           MinLimit;	    // Parameter: Maximum limit (pu)
				 unsigned long DelayCounter;    // Variable: Incremental delay (Q0) - independently with global Q	
				 _iq           TargetOut;    	// Output: Target output (pu)				 
				 unsigned int  EqualFlag;		// Output: Flag output (Q0) - independently with global Q
		  	  	 void (*calc)();	  	// Pointer to calculation function
				 } RAMP;	            

/*-----------------------------------------------------------------------------
Default initalizer for the RAMP object.
-----------------------------------------------------------------------------*/                     
#define RAMP_DEFAULTS { 0, \
                           40, \
                          	_IQ(1), \
                          	_IQ(-1), \
                          	0, \
                          	0, \
                          	0, \
                   			(void (*)(unsigned long))ramp_calc }

/*------------------------------------------------------------------------------
Prototypes for the functions in RAMP.C
------------------------------------------------------------------------------*/
void ramp_calc(RAMP *);

#endif // __RAMP_H__

⌨️ 快捷键说明

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