⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 clarke.h

📁 用于ti公司的2812芯片
💻 H
字号:
/* =================================================================================
File name:       CLARKE.H  (IQ version)                  
                    
Originator:	Digital Control Systems Group
			Texas Instruments

Description: 
Header file containing constants, data type definitions, and 
function prototypes for the CLARKE.
=====================================================================================
 History:
-------------------------------------------------------------------------------------
 04-15-2005	Version 3.20                                                   
------------------------------------------------------------------------------*/
#ifndef __CLARKE_H__
#define __CLARKE_H__

typedef struct {  _iq  As;  		// Input: phase-a stator variable
				  _iq  Bs;			// Input: phase-b stator variable 
				  _iq  Alpha;		// Output: stationary d-axis stator variable 
				  _iq  Beta;		// Output: stationary q-axis stator variable
		 	 	  void  (*calc)();	// Pointer to calculation function
				 } CLARKE;	            

typedef CLARKE *CLARKE_handle;
/*-----------------------------------------------------------------------------
Default initalizer for the CLARKE object.
-----------------------------------------------------------------------------*/                     
#define CLARKE_DEFAULTS { 0, \
                          0, \
                          0, \
                          0, \
              			  (void (*)(Uint32))clarke_calc }

/*------------------------------------------------------------------------------
Prototypes for the functions in CLARKE.C
------------------------------------------------------------------------------*/
void clarke_calc(CLARKE_handle);

typedef struct {  _iq  As;  		/* Output: phase-a stator variable  */
				  _iq  Bs;			/* Output: phase-b stator variable  */
				  _iq  Cs;			/* Output: phase-c stator variable  */
				  _iq  Alpha;			/* Input: stationary d-axis stator variable  */
				  _iq  Beta;			/* Input: stationary q-axis stator variable  */
		 	 	  void  (*calc)();	/* Pointer to calculation function */ 
				 } ICLARKE;	            

typedef ICLARKE *ICLARKE_handle;
/*-----------------------------------------------------------------------------
Default initalizer for the ICLARKE object.
-----------------------------------------------------------------------------*/                     
#define ICLARKE_DEFAULTS { 0, \
                          0, \
                          0, \
                          0, \
                          0,\
              			  (void (*)(long))iclarke_calc }

/*------------------------------------------------------------------------------
Prototypes for the functions in ICLARKE.C
------------------------------------------------------------------------------*/
void iclarke_calc(ICLARKE_handle);

#endif // __CLARKE_H__

⌨️ 快捷键说明

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