ang_gen.h
来自「2802 步进电机控制器」· C头文件 代码 · 共 36 行
H
36 行
/* =================================================================================
File name: ANG_GEN.H (IQ version)
Originator: ECS Development
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
------------------------------------------------------------------------------*/
#ifndef __ANGGEN_H__
#define __ANGGEN_H__
typedef struct { _iq Freq; // Input: Ramp frequency (pu)
_iq StepAngleMax; // Parameter: Maximum step angle (pu)
_iq AngleVar; // Variable: Step angle (pu)
_iq AngleOut; // Output: Ramp signal (pu)
void (*calc)(); // Pointer to calculation function
} ANGGEN;
/*------------------------------------------------------------------------------
Object Initializers
------------------------------------------------------------------------------*/
#define ANGGEN_DEFAULTS {0,0,0,0, \
(void (*)(unsigned long))anggen_calc }
/*------------------------------------------------------------------------------
Funtion prototypes
------------------------------------------------------------------------------*/
void anggen_calc(ANGGEN *);
#endif // __ANGGEN_H__
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?