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(); } } } }