initial commit

This commit is contained in:
chi
2025-04-22 11:36:27 +09:00
commit 5d286d5179
24 changed files with 1754 additions and 0 deletions

20
enigprotocol/Packet.cs Normal file
View File

@@ -0,0 +1,20 @@
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];
}
}
}