Files
laatzen/Common/SIRTBroadcaster.Client/Parameters/Parameter.cs
T
2023-08-22 14:58:05 +02:00

22 lines
482 B
C#

namespace SIRTBroadcaster.Abstraction.Parameters
{
using SIRTBroadcaster.Abstraction.Values;
public abstract class Parameter
{
protected readonly byte value;
protected readonly Bit[] bits;
protected Parameter(byte value)
{
this.value = value;
this.bits = new Bit[8];
for (int i = 0; i < 8; i++)
{
this.bits[i] = (byte)(value >> i & 1);
}
}
}
}