f281x_en.h

来自「有关TI公司用于交流电机控制程序(包含文档以及源码)」· C头文件 代码 · 共 50 行

H
50
字号
/* ==================================================================================
File name:        F281X_EN.H                     
                    
Originator:	Digital Control Systems Group
			Texas Instruments
Description:  
Header file containing data type and object definitions and 
initializers. Also contains prototypes for the functions in F281X_EN.C.

Target: TMS320F281x family

=====================================================================================
 History:
-------------------------------------------------------------------------------------
 04-15-2005	Version 3.20: Using DSP281x v. 1.00 or higher 
---------------------------------------------------------------------------------- */

#ifndef __F281X_EN_H__
#define __F281X_EN_H__

#include "f281xbmsk.h"

/*-----------------------------------------------------------------------------
Define the structure of the DRIVE Object 
-----------------------------------------------------------------------------*/
typedef struct {   
        Uint16 EnableFlag;     // Input: Enable/Disable (1/0) flag (Q0)
        void (*init)();        // Pointer to the init function      
        void (*update)();      // Pointer to the update function
        } DRIVE ;    
        
typedef DRIVE *DRIVE_handle;
/*------------------------------------------------------------------------------
Default Initializers for the F28X DRIVE Object 
------------------------------------------------------------------------------*/
#define F281X_EV1_DRIVE {0,   \
                       (void (*)(Uint32))F281X_EV1_DRIVE_Init,  \
                       (void (*)(Uint32))F281X_EV1_DRIVE_Update \
                       }

#define DRIVE_DEFAULTS 	F281X_EV1_DRIVE
/*------------------------------------------------------------------------------
 Prototypes for the functions in F281X_EN.C
------------------------------------------------------------------------------*/
void F281X_EV1_DRIVE_Init(DRIVE_handle);
void F281X_EV1_DRIVE_Update(DRIVE_handle);

#endif  // __F281X_EN_H__

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?