rmp2cntl.h
来自「TI公司的DSP(LF2407A)编写的有霍尔位置传感器的无刷直流电机控制程序,」· C头文件 代码 · 共 46 行
H
46 行
/* =================================================================================
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 + =
减小字号Ctrl + -
显示快捷键?