初始化CRICS
This commit is contained in:
23
RCUHost/Protocols/DeviceHeader.cs
Normal file
23
RCUHost/Protocols/DeviceHeader.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
|
||||
namespace RCUHost.Protocols
|
||||
{
|
||||
[StructLayoutAttribute(LayoutKind.Sequential, Pack = 1)]
|
||||
public struct DeviceHeader
|
||||
{
|
||||
/// 目标模块设备, 0是主控器,其它的模块按地址拨码开关
|
||||
public byte NodeAddr;
|
||||
|
||||
/// 命令类型
|
||||
public ushort CmdType;
|
||||
|
||||
/// unsigned char
|
||||
public byte AskAck;
|
||||
|
||||
public HostNumber RoomNumber;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user