dsp281x_en.h

来自「附件程序是我用DSP2812开发的无刷直流电机控制程序」· C头文件 代码 · 共 50 行

H
50
字号
/* ==================================================================================
File name:        DSP281x_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 DSP281x_EN.C.

Target: TMS320F281x family

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

#ifndef __DSP281X_EN_H__
#define __DSP281X_EN_H__

#include "DSP281X_BMSK.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  // __DSP281X_EN_H__

⌨️ 快捷键说明

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