www.pudn.com > IEC104_codeamaterial.rar > syscfg.h, change:2011-02-19,size:2326b


/*------------------------------------------------------------------------ 
 Module:		syscfg.h 
 Author:		solar 
 Project:		 
 Creation Date: 2009-10-20 
 Description:	 
------------------------------------------------------------------------*/ 
/*------------------------------------------------------------------------ 
 $Log: $ 
------------------------------------------------------------------------*/ 
 
#ifndef _SYSCFG_H 
#define _SYSCFG_H 
 
/*------------------------------------------------------------------------ 
 设备类型定义 
 
 四字节组成: BACK-FUN-EXT-RSV  
------------------------------------------------------------------------*/ 
#define  BACK_TYPE_MASK      0xF0000000   /*设备的底板类型*/ 
 
/*板类型最高字四位D31-D28必须大于0,否则当维护软件生成dwName 
  时会与sys.h中Cfg Attr定义冲突*/ 
 
#define  EXT_TYPE_MASK       0x0FFF0000   /*扩充接口板定义*/ 
#define  EXT_TYPE_DIO_MASK   0x000F0000   /*数字接口板定义*/ 
#define  EXT_TYPE_AIO_MASK   0x0FF00000   /*模拟接口板定义*/ 
 
#define  EXT_TYPE_NONE       0x00000000   /*通用板卡*/ 
 
#define  EXT_TYPE_DIO_DI     0x00010000   /*DI板卡*/ 
#define  EXT_TYPE_DIO_DO     0x00020000   /*DO板卡*/ 
 
 
#define  FUN_TYPE_MASK       0x0000F000   /*产品功能类型*/ 
 
/*------------------------------------------------------------------------ 
 用户类型定义 
------------------------------------------------------------------------*/ 
#define USER_DEFAULT	         0xFFFFFF 
#define USER_DEFAULT_CN          "缺省" 
#define USER_DEFAULT_EN          "" 
 
/*------------------------------------------------------------------------ 
产品定制 
------------------------------------------------------------------------*/ 
#define TYPE_BACK                EXT_TYPE_NONE 
#define TYPE_USER		   		 USER_DEFAULT 
 
#define __DEBUG__ 
 
#define INCLUDE_TIMER 
#undef INCLUDE_YX 
#undef INCLUDE_YK 
 
#if ((TYPE_BACK&EXT_TYPE_DIO_MASK) == EXT_TYPE_DIO_DI)  
#define INCLUDE_YX 
#endif 
 
#if ((TYPE_BACK&EXT_TYPE_DIO_MASK) == EXT_TYPE_DIO_DO)  
#define INCLUDE_YK 
#endif 
 
#undef	INCLUDE_COMMTEST 
 
#define  GetExtAioType(x)    ((x&EXT_TYPE_AIO_MASK)>>20) 
#define  GetExtDioType(x)    ((x&EXT_TYPE_DIO_MASK)>>16) 
#define  GetAppAioType(x)   ((x<<20)&EXT_TYPE_AIO_MASK) 
#define  GetAppDioType(x)   ((x<<16)&EXT_TYPE_DIO_MASK) 
 
 
#undef INCULDE_COS_CFG 
 
#endif