rmp_cntl.h
来自「TI公司的DSP(LF2407A)编写的有霍尔位置传感器的无刷直流电机控制程序,」· C头文件 代码 · 共 39 行
H
39 行
/* =================================================================================
File name: RMP_CNTL.H
Description:
Header file containing constants, data type definitions, and
function prototypes for the RMPCNTL module.
=====================================================================================
History:
-------------------------------------------------------------------------------------
5-15-2007 Release Rev2.00
------------------------------------------------------------------------------*/
typedef struct { int TargetValue; /* Input: Target input (Q15) */
int RampDelayMax; /* Parameter: Maximum delay rate */
int RampLowLimit; /* Parameter: Minimum limit (Q15) */
int RampHighLimit; /* Parameter: Maximum limit (Q15) */
int RampDelayCount; /* Variable: Incremental delay */
int SetpointValue; /* Output: Target output (Q15) */
int EqualFlag; /* Output: Flag output */
int (*calc)(); /* Pointer to calculation function */
} RMPCNTL;
typedef RMPCNTL *RMPCNTL_handle;/*-----------------------------------------------------------------------------
Default initalizer for the RMPCNTL object.
-----------------------------------------------------------------------------*/
#define RMPCNTL_DEFAULTS { 0x0000, \
0x05, \
0x8000, \
0x7FFF, \
0x0000, \
0x0000, \
0x0000, \
(int (*)(int))rmp_cntl_calc }
/*------------------------------------------------------------------------------
Prototypes for the functions in RMP_CNTL.ASM
------------------------------------------------------------------------------*/
void rmp_cntl_calc(RMPCNTL_handle);
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?