示例#1
0
 /// <summary>Sends a power value to the component</summary>
 /// <param name="value">The power value to send</param>
 public void Send(PowerValue value)
 {
     _data.Power = value;
     _clock.Spike();
 }
 /// <summary>Sets the power values stored in the register</summary>
 /// <param name="values">The values to store</param>
 public void SetPowerValues(PowerSet values)
 {
     _enabled?.TurnOn();
     Send(new[] { values.A, values.B, values.C, values.D, values.E, values.F, values.G, values.H });
     _output.Spike();
 }