http://blog.sina.com.cn/s/blog_14c6479ae0102vk3s.html
1.rampgen.h
=================================================================================
File name: RAMPGEN.H (IQ version)
Description:
This file contains type definitions, constants and initializers for
the ramp generation functions contained in RAMPGEN.C
=====================================================================================
#ifndef __RAMPGEN_H__
#define __RAMPGEN_H__
typedef struct
{
_iq Freq; // Input: Ramp frequency (pu)
_iq StepAngleMax; // Parameter: Maximum step angle (pu)
_iq Angle; // Variable: Step angle (pu)
_iq Gain; // Input: Ramp gain (pu)
_iq Out; // Output: Ramp signal (pu)
_iq Offset; // Input: Ramp offset (pu)
void (*calc)(); // Pointer to calculation function
} RAMPGEN;
typedef RAMPGEN *RAMPGEN_handle;
--------------------------</