?? rmp3.h
字號:
/* =================================================================================
File name: RMP3.H
Originator: Digital Control Systems Group
Texas Instruments
Description:
This file defines handy constants for object initializations
contains prototypes for the functions in RMP3CNTL.ASM
and has definitions of structs etc.
=====================================================================================
History:
-------------------------------------------------------------------------------------
9-15-2000 Release Rev 1.0
------------------------------------------------------------------------------*/
#ifndef __RMP3CNT__
#define __RMP3CNT__
/*------------------------------------------------------------------------------
Define the structure of the RMP3CNTL
( This module implements a ramp down function )
-------------------------------------------------------------------------------*/
typedef struct{
int desired; /* Desired value of ramp3 */
int dly; /* ramp3 step delay */
int dly_cntr; /* counter for ramp3 step delay */
int min; /* minimun value of ramp3 */
int out; /* ramp3 output */
int done_flg; /* flag output for indicating ramp3 status */
int (*calc)(); /* pointer to calculation function */
}RMP3;
typedef RMP3 *RMP3_handle;
/*------------------------------------------------------------------------------
Object Initializers
------------------------------------------------------------------------------*/
#define RMP3_DEFAULTS { 0x0, \
0x0, \
0x0, \
0x50,\
0x0, \
0x0, \
(int (*) (int))rmp3_calc \
}
/*------------------------------------------------------------------------------
Function prototypes
------------------------------------------------------------------------------*/
void rmp3_calc(RMP3_handle);
#endif /* __RMP3CNT__ */
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -