laatzen/Common/Hardware/Common.Hardware.SIRT/Tasks/ReadPamTask.cs
2025-11-20 08:46:37 +01:00

23 lines
576 B
C#

namespace Common.Hardware.SIRT.Tasks
{
public class ReadPamTask : SIRTTask
{
public ReadPamTask()
{
this.request.Command = SIRTConstants.R_PAM;
this.request.Address = 0xFFFFFFFF;
}
public byte[] Payload { get; private set; }
public override void Receive(SIRTMessage response)
{
if (response.Command == SIRTConstants.ACKN_ANSW && response.P1 == 0)
{
this.Payload = response.Payload;
this.SetCompleted();
}
}
}
}