Files
ENIGProtocol/enigprotocol/Packet.cs
backuppc 1eb59a0127 ..
2025-11-05 14:28:32 +09:00

20 lines
500 B
C#

namespace ENIG
{
// 패킷 구조체
public class Packet
{
public const byte STX = 0x02;
public const byte ETX = 0x03;
public byte Length { get; set; }
public byte ID { get; set; }
public byte Command { get; set; }
public byte[] Data { get; set; }
public ushort CRC16 { get; set; }
public byte[] RawData { get; set; }
public Packet()
{
Data = new byte[0];
}
}
}