Initial commit

This commit is contained in:
2026-08-11 16:20:44 +09:00
commit 15535f4e1a
117 changed files with 23897 additions and 0 deletions

37
BMS_D1000/BMSData.cs Normal file
View File

@@ -0,0 +1,37 @@
using System;
using System.Runtime.InteropServices;
namespace BMS_D900.Utils.DataStructs
{
[Serializable]
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct UdpClassA_Request
{
public UdpHeader Header;
[MarshalAs(UnmanagedType.U2, SizeConst = 2)]
public ushort MID;
[MarshalAs(UnmanagedType.U2, SizeConst = 2)]
public ushort Position;
[MarshalAs(UnmanagedType.U1, SizeConst = 1)]
public byte MessageFlag;
}
[Serializable]
[StructLayout(LayoutKind.Sequential, Pack = 1)]
public struct UdpClassA_Response
{
public UdpHeader Header;
[MarshalAs(UnmanagedType.U2, SizeConst = 2)]
public ushort MID;
[MarshalAs(UnmanagedType.U2, SizeConst = 2)]
public ushort Position;
[MarshalAs(UnmanagedType.U1, SizeConst = 1)]
public byte MessageFlag;
}
}