22 lines
482 B
C#
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);
|
|
}
|
|
}
|
|
}
|
|
}
|