📄 structdef.h
字号:
typedef struct __DATAREPORT //数据报定义{ unsigned long Type; //数据报类型 unsigned long DataLength; //长度 unsigned long StructLength; //结构长度 unsigned char Command; //命令 unsigned int DeviceWord; //子设备状态字 unsigned char Buffer[256]; //数据内容}DataReport,*pDataReport;typedef union __DEVICECONTROL //拆解子设备状态字{ unsigned int DeviceWord; struct __DEVICES { unsigned char by0; //LSB unsigned char by1; }Devices;}DeviceControl;typedef union __CHARTOINT //拆解子设备状态字{ unsigned int i; struct __CHAR2 { unsigned char by0; //LSB unsigned char by1; }ch2;}CharToInt;//设备状态标志typedef union __DEVICESTATE //拆解子设备状态字{ unsigned long l; struct __DEVICES1 { unsigned char by0; unsigned char by1; unsigned char by2; unsigned char by3; }ch4;}CharToLong;typedef union __CHARTOLONG //拆解子设备状态字{ unsigned long DeviceWord; struct __CHAR4 { unsigned char by0; unsigned char by1; unsigned char by2; unsigned char by3; }Device1;}DeviceState;typedef union __BYTEC{ unsigned char ch; struct _BITS { unsigned int b7:1; unsigned int b6:1; unsigned int b5:1; unsigned int b4:1; unsigned int b3:1; unsigned int b2:1; unsigned int b1:1; unsigned int b0:1; }bits;}byte_bit;typedef struct __PUBLISHCARD{ unsigned char State; //当前的卡机操作状态 0xa0==准备卡 0xa1==发卡 0xa2==状态查询 0xe0==错误 other==未定义状态 unsigned char Error; unsigned int CardNumber; unsigned int MaxCard; unsigned int PublishNumber; unsigned long Params; unsigned long ID;}CardPublish;typedef struct __GALOBESTATUS{ unsigned char HHrail; unsigned char CurrentUpPC; unsigned char CurrentDownPC; unsigned int BadCardNumber; unsigned char Cad; unsigned char Publish;}DevicesStatus;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -