#include "BoardType.h" #include "KBusDefine.h" #include "KMachine.h" //#include "KBus.h" const stKMInfoBlock KMInfoBlock = { // sizeof(stKMInfoBlock), (BOARD_TYPE<<8) + BOARD_VER, //nDeviceType BOARD_VER, //nDevieVer 0x0109, //ProgVer 0x0102, //KLinkVer KBUS_VER, //KBusVer // 0x0100, //KNetVer // 0x0100, //KWLVer 4, //nCapacity1 ?K 1, //nCapacity2 ?k DINPUT, //nDInput; DOUTPUT, //nDOutput 0, //nAInput 0, //nAOutput 0, //nHInput 0, //nHOutput 0, //nExt1; 0, //nExt2; 0, //nLogSize; 0, //nPorts; 0, //nManSize; 0, //nAbility; 6, //nSwitchBits; }; const stDeviceInfo MyDeviceInfo={ (BOARD_TYPE<<8) + BOARD_VER, //nDeviceTypeVer // unsigned short ClientType; // ×Ó»úÀàÐÍ 0x0109, //ProgVer // unsigned short ClientVer; // ×Ó»ú°æ±¾ DINPUT, // unsigned char InBitCount; // ÊäÈ뿪¹ØÁ¿ÊýÁ¿ DOUTPUT, // unsigned char OutBitCount; // Êä³ö¿ª¹ØÁ¿ÊýÁ¿ 0, // unsigned char InDWCount; // ÊäÈëÊý¾Ý×ÖÊý 0, // unsigned char OutDWCount; // Êä³öÊý¾Ý×ÖÊý 0, // unsigned char AIWCount; // ÊäÈëÄ£ÄâÁ¿Í¨µÀ(×Ö)Êý // 16λΪһ¸ö×Ö(ͨµÀ) 0, // unsigned char AQWCount; // Êä³öÄ£ÄâÁ¿Í¨µÀ(×Ö)Êý // 16λΪһ¸ö×Ö(ͨµÀ) // 0, // unsigned char AIBits; // ÿͨµÀλÊý // 16λÒÔÏ // 0, // unsigned char AQbits; // ÿͨµÀλÊý // 16λÒÔÏ }; const stExDeviceInfo MyExDeviceInfo ={ (BOARD_TYPE<<8) + BOARD_VER, //nDeviceTypeVer // unsigned short ClientType; // ×Ó»úÀàÐÍ 0x0109, //ProgVer // unsigned short ClientVer; // ×Ó»ú°æ±¾ DINPUT, // unsigned char InBitCount; // ÊäÈ뿪¹ØÁ¿ÊýÁ¿ DOUTPUT, // unsigned char OutBitCount; // Êä³ö¿ª¹ØÁ¿ÊýÁ¿ 0, // unsigned char InDWCount; // ÊäÈëÊý¾Ý×ÖÊý 0, // unsigned char OutDWCount; // Êä³öÊý¾Ý×ÖÊý 0, // unsigned char AIWCount; // ÊäÈëÄ£ÄâÁ¿Í¨µÀ(×Ö)Êý // 16λΪһ¸ö×Ö(ͨµÀ) 0, // unsigned char AQWCount; // Êä³öÄ£ÄâÁ¿Í¨µÀ(×Ö)Êý // 16λΪһ¸ö×Ö(ͨµÀ) // 0, // unsigned char AIBits; // ÿͨµÀλÊý // 16λÒÔÏ // 0, // unsigned char AQbits; // ÿͨµÀλÊý // 16λÒÔÏ };