📄 rmp2cntl.h
字号:
/* =================================================================================
File name: RMP2.H
Originator: Digital Control Systems Group
Texas Instruments
Description:
This file defines handy constants for object initializations
contains prototypes for the functions in RMP2CNTL.ASM.
and has definitions of structs etc.
=====================================================================================
History:
-------------------------------------------------------------------------------------
9-15-2000 Release Rev 1.00
------------------------------------------------------------------------------*/
#ifndef __RMP2_CNTL_H__
#define __RMP2_CNTL_H__
typedef struct { int DesiredInput; // Input: Desired ramp input (Q15) - independently with global Q
int Ramp2Max; // Parameter: Maximum limit (Q15) - independently with global Q
int Ramp2Min; // Parameter: Minimum limit (Q15) - independently with global Q
int Ramp2DelayCount; // Variable: Incremental delay (Q0) - independently with global Q
int Ramp2Delay; // Parameter: Ramp2 delay expressed in no of sampling period (Q0) - independently with global Q
int Out; // Output: Ramp2 output (Q15)
void (*calc)(); // Pointer to calculation function
} RMP2;
typedef RMP2 *RMP2_handle;
/*-----------------------------------------------------------------------------
Default initalizer for the RMP2 object.
-----------------------------------------------------------------------------*/
#define RMP2_DEFAULTS { 0, \
0x7FFF, \
0x000F, \
0, \
50, \
0, \
(void (*)(int))rmp2_cntl_calc }
/*------------------------------------------------------------------------------
Prototypes for the functions in RMP2CNTL.C
------------------------------------------------------------------------------*/
void rmp2_cntl_calc(RMP2_handle);
#endif // __RMP2_CNTL_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -