eregister prüfung abschluss parameters

This commit is contained in:
Stoyan Zlatev
2024-10-14 08:43:56 +02:00
parent 55b25af756
commit 4c230b97cf
46 changed files with 870 additions and 247 deletions
@@ -63,7 +63,7 @@
address ^= (UInt32)this.bytes[4] << 24;
address ^= (UInt32)this.bytes[5] << 16;
address ^= (UInt32)this.bytes[6] << 8;
address ^= (UInt32)this.bytes[7] << 0;
address ^= (UInt32)this.bytes[7];
return address;
}
@@ -72,7 +72,7 @@
this.bytes[4] = (Byte)(value >> 24);
this.bytes[5] = (Byte)(value >> 16);
this.bytes[6] = (Byte)(value >> 8);
this.bytes[7] = (Byte)(value >> 0);
this.bytes[7] = (Byte)value;
}
}
@@ -232,6 +232,17 @@
set => this.bits[7] = (Byte)(value ? 1 : 0);
}
public static P811 DelPamAfterSemi => new P811
{
DelPamSemi = true
};
public static P811 WupDelPamAfterSemi => new P811
{
WakeUpCmd = true,
DelPamSemi = true
};
public static implicit operator Byte(P811 param)
=> param.bits.GetByte();