QuakeGod
2024-07-27 842bb64195f958b050867c50db66fc0aa413dafb
提交 | 用户 | age
5dd1b7 1 #include "BoardType.h"
Q 2
3 #include "KBusDefine.h"
4
842bb6 5 #include "KMachine.h"
Q 6 //#include "KBus.h"
7
8
9 const stKMInfoBlock KMInfoBlock =
10 {
11 //    sizeof(stKMInfoBlock),
12     (BOARD_TYPE<<8) + BOARD_VER,            //nDeviceType     BOARD_VER,            //nDevieVer
13     0x0109,            //ProgVer
14     0x0102,            //KLinkVer
15     KBUS_VER,            //KBusVer
16 //    0x0100,            //KNetVer
17 //    0x0100,            //KWLVer
18     
19     4,                    //nCapacity1    ?K
20     1,                    //nCapacity2    ?k
21     
22     DINPUT,                    //nDInput;
23     DOUTPUT,                //nDOutput
24     
25     0,                    //nAInput
26     0,                    //nAOutput
27     0,                    //nHInput
28     0,                    //nHOutput
29     0,                    //nExt1;
30     0,                    //nExt2;
31     0,                    //nLogSize;
32     0,                    //nPorts;
33     0,                    //nManSize;
34     0,                    //nAbility;
35     6,                    //nSwitchBits;
36 };
37
38
39
5dd1b7 40 const stDeviceInfo MyDeviceInfo={
Q 41         
42         (BOARD_TYPE<<8) + BOARD_VER,            //nDeviceTypeVer //    unsigned short ClientType;        // 子机类型
43         0x0109,            //ProgVer                    //    unsigned short ClientVer;            // 子机版本
44
45         DINPUT,                                                //    unsigned char InBitCount;            // 输入开关量数量
46         DOUTPUT,                                            //    unsigned char OutBitCount;        // 输出开关量数量
47         0,                                //    unsigned char InDWCount;            // 输入数据字数
48         0,                                //    unsigned char OutDWCount;            // 输出数据字数
49         0,                                //    unsigned char AIWCount;                // 输入模拟量通道(字)数    // 16位为一个字(通道)
50         0,                                //    unsigned char AQWCount;                // 输出模拟量通道(字)数    // 16位为一个字(通道)
51 //    0,                                //    unsigned char AIBits;                    //  每通道位数        // 16位以下
52 //    0,                                //    unsigned char AQbits;                    //    每通道位数        // 16位以下
53 };
54
55 const stExDeviceInfo MyExDeviceInfo ={
56         (BOARD_TYPE<<8) + BOARD_VER,            //nDeviceTypeVer //    unsigned short ClientType;        // 子机类型
57         0x0109,            //ProgVer                    //    unsigned short ClientVer;            // 子机版本
58
59         DINPUT,                                                //    unsigned char InBitCount;            // 输入开关量数量
60         DOUTPUT,                                            //    unsigned char OutBitCount;        // 输出开关量数量
61         0,                                //    unsigned char InDWCount;            // 输入数据字数
62         0,                                //    unsigned char OutDWCount;            // 输出数据字数    
63         0,                                //    unsigned char AIWCount;                // 输入模拟量通道(字)数    // 16位为一个字(通道)
64         0,                                //    unsigned char AQWCount;                // 输出模拟量通道(字)数    // 16位为一个字(通道)
65 //    0,                                //    unsigned char AIBits;                    //  每通道位数        // 16位以下
66 //    0,                                //    unsigned char AQbits;                    //    每通道位数        // 16位以下
67
68 };
69