rmp_cntl.h
来自「TI公司24X系列DSP控制无刷直流电机」· C头文件 代码 · 共 47 行
H
47 行
/* =================================================================================
File name: RMP_CNTL.H
Originator: Digital Control Systems Group
Texas Instruments
Description:
Header file containing constants, data type definitions, and
function prototypes for the RMPCNTL module.
=====================================================================================
History:
-------------------------------------------------------------------------------------
9-15-2000 Release Rev 1.00
------------------------------------------------------------------------------*/
#ifndef __RMP_CNTL_H__
#define __RMP_CNTL_H__
typedef struct { int target_value; /* Input: Target input (Q15) */
int rmp_dly_max; /* Parameter: Maximum delay rate */
int rmp_lo_limit; /* Parameter: Minimum limit (Q15) */
int rmp_hi_limit; /* Parameter: Maximum limit (Q15) */
int rmp_delay_cntl; /* Variable: Incremental delay */
int setpt_value; /* Output: Target output (Q15) */
int s_eq_t_flg; /* Output: Flag output */
int (*calc)(); /* Pointer to calculation function */
} RMPCNTL;
/*-----------------------------------------------------------------------------
Default initalizer for the RMPCNTL object.
-----------------------------------------------------------------------------*/
#define RMPCNTL_DEFAULTS { 0x0000, \
0x0040, \
0x8000, \
0x7FFF, \
0x0000, \
0x0000, \
0x0000, \
(int (*)(int))rmp_cntl_calc }
/*------------------------------------------------------------------------------
Prototypes for the functions in RMP_CNTL.ASM
------------------------------------------------------------------------------*/
void rmp_cntl_calc(RMPCNTL *);
#endif /* __RMP_CNTL_H__ */
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?