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

📄 volt_cal.h

📁 TI的digital motor control lib的源代码。了解TI的编程规范
💻 H
字号:
/* =================================================================================
File name:        VOLT_CAL.H                       
                    
Originator:	Digital Control Systems Group
			Texas Instruments

Description: 
         Header file containing constants, data type definitions, and 
         function prototypes for the VOLT_CAL module.
=====================================================================================
 History:
-------------------------------------------------------------------------------------
 9-15-2000	Release	Rev 1.0                                                   
------------------------------------------------------------------------------*/

#ifndef __VOLT_CAL_H__
#define __VOLT_CAL_H__

typedef struct 	{ int  DC_bus;		/* Input: DC-bus voltage (Q15) */ 
			  	  int  Mfunc_V1;  	/* Input: Modulation voltage phase A (Q15) */ 
		  	  	  int  Mfunc_V2;	/* Input: Modulation voltage phase B (Q15) */ 	
		   	  	  int  Mfunc_V3;	/* Input: Modulation voltage phase C (Q15) */ 
	  	  	  	  int  Vphase_A;	/* Output: Phase voltage phase A (Q15) */ 
		   	  	  int  Vphase_B;	/* Output: Phase voltage phase B (Q15) */ 
		  	  	  int  Vphase_C;	/* Output: Phase voltage phase C (Q15) */ 
		  	  	  int  Vdirect;		/* Output: Stationary d-axis phase voltage (Q15) */ 
		  	  	  int  Vquadra;  	/* Output: Stationary q-axis phase voltage (Q15) */
		  	  	  int  (*calc)();	/* Pointer to calculation function */ 
				} PHASEVOLTAGE;	                   

/*-----------------------------------------------------------------------------
Default initalizer for the PHASE_VOLTAGE object.
-----------------------------------------------------------------------------*/                     
#define PHASEVOLTAGE_DEFAULTS { 0x0000, \
                          		0x0000, \
                          		0x0000, \
                          		0x0000, \
                          		0x0000, \
                          		0x0000, \
                          		0x0000, \
		         				0x0000, \
 		          				0x0000, \
                  				(int (*)(int))phase_voltage_calc }

/*------------------------------------------------------------------------------
Prototypes for the functions in VOLT_CAL.ASM
------------------------------------------------------------------------------*/
void phase_voltage_calc(PHASEVOLTAGE *);

#endif /* __VOLT_CAL_H__ */

⌨️ 快捷键说明

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