?? ramp.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 + -