drive.h
来自「无刷直流电机的无传感器控制TI程序」· C头文件 代码 · 共 38 行
H
38 行
/* ==================================================================================
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 + =
减小字号Ctrl + -
显示快捷键?