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

📄 fault_log.h

📁 基于TMS320F2812的电动机控制源码(使用C语言)
💻 H
字号:
/* =================================================================================
File name:        FAULT_LOG.H                     
                    
Originator:	newimage R&D

Description: 
Header file containing constants, data type definitions, and 
function prototypes for the DATALOG module.
=====================================================================================
 History:
-------------------------------------------------------------------------------------
 06-10-2006	Release	Rev 1.0                                                   
------------------------------------------------------------------------------*/
#ifndef _FAULTLOG_H
#define _FAULTLOG_H

#define FAULT_LOG_MAX  10
/* module update every 
*/

typedef struct { 
				 int 	logheader;			//for logUpdate index
				 int	faultcode;	
				 int 	log[FAULT_LOG_MAX][5];	//faultcode/hour/minute/secend/milsecend	
		  	  	 void  (*update)();			/* Pointer to update function */ 
				 } FAULTLOG;	              

/*-----------------------------------------------------------------------------
Default initalizer for the DATALOG object.
-----------------------------------------------------------------------------*/                     
#define FAULTLOG_DEFAULTS {  0, \
							 0, \
                          	{0,0,0,0,0,0,0,0,0,0,\
                           	 0,0,0,0,0,0,0,0,0,0,\
                           	 0,0,0,0,0,0,0,0,0,0,\
							 0,0,0,0,0,0,0,0,0,0,\
							 0,0,0,0,0,0,0,0,0,0},\
                         	(void (*)(long))fault_log_update }

/*------------------------------------------------------------------------------
Prototypes for the functions in DATA_LOG.C
------------------------------------------------------------------------------*/
void fault_log_update(FAULTLOG *); 



#endif  /* faultlog.h */

⌨️ 快捷键说明

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