Add NOP packet.

This commit is contained in:
2019-10-13 20:54:10 +01:00
parent 03af9b7f2e
commit 7fd5b16b1d
3 changed files with 56 additions and 6 deletions

View File

@@ -53,4 +53,17 @@ namespace DiscImageChef.Devices.Remote
public readonly DicPacketHeader hdr;
public readonly ushort devices;
}
[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Ansi, Pack = 1)]
public struct DicPacketNop
{
public DicPacketHeader hdr;
public byte reasonCode;
[MarshalAs(UnmanagedType.ByValArray, SizeConst = 3)]
public readonly byte[] spare;
[MarshalAs(UnmanagedType.ByValTStr, SizeConst = 256)]
public string reason;
}
}