📄 drive.h
字号:
/* ==================================================================================
File name: DRIVE.H
Originator: Digital Control Systems Group
Texas Instruments
Description:
Interface header file for the F243/F240x PWM Drive enable/disable.
=====================================================================================
History:
-------------------------------------------------------------------------------------
04-09-2001 Release Rev 1.0
---------------------------------------------------------------------------------- */
#ifndef __DRIVE_H__
#define __DRIVE_H__
/*-----------------------------------------------------------------------------
Define the structure of the DRIVE Object
-----------------------------------------------------------------------------*/
typedef struct { int enable_flg; /* Input: Enable drive flag: 1=enable, 0=disable */
int (*init)(); /* Pointer to the init function */
int (*calc)(); /* Pointer to the calc function */
} DRIVE;
#define DRIVE_DEFAULTS { 0, \
(int (*)(int))F24xx_drive_drv_init, \
(int (*)(int))F24xx_drive_drv_calc \
}
void F24xx_drive_drv_init(DRIVE *);
void F24xx_drive_drv_calc(DRIVE *);
#endif /* __DRIVE_H__ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -