25 lines
768 B
C#
25 lines
768 B
C#
using System;
|
|
|
|
namespace TBF.Rig.TestMethods.iPerlCommunication.communication.C4.IperlHatProtocol
|
|
{
|
|
public sealed class IperlHatFrame
|
|
{
|
|
public byte Start { get; }
|
|
public byte Direction { get; }
|
|
public byte End { get; }
|
|
public byte Length { get; }
|
|
|
|
public byte[] CommandInformation { get; }
|
|
public byte[] Payload { get; }
|
|
|
|
public IperlHatFrame(byte start, byte direction, byte length, byte[] commandBytes, byte[] payload, byte end)
|
|
{
|
|
Start = start;
|
|
Direction = direction;
|
|
Length = length;
|
|
CommandInformation = commandBytes ?? Array.Empty<byte>();
|
|
Payload = payload ?? Array.Empty<byte>();
|
|
End = end;
|
|
}
|
|
}
|
|
} |