36 lines
998 B
C#
36 lines
998 B
C#
namespace Common.Hardware.Interfaces.Protocols.SIRT.Messages.Requests
|
|
{
|
|
using Common.Hardware.Interfaces.Ports.SIRT;
|
|
|
|
using System;
|
|
|
|
public class ReadPamRequest : SirtRequest
|
|
{
|
|
/// <summary>
|
|
/// <list>
|
|
/// <item>
|
|
/// <term>true</term>
|
|
/// <description>shows content of PAM structure of this address</description>
|
|
/// </item>
|
|
/// <item>
|
|
/// <term>false</term>
|
|
/// <description>show stored PAM for this address</description>
|
|
/// </item>
|
|
/// </list>
|
|
/// </summary>
|
|
public Boolean PamStruct
|
|
{
|
|
get => this.message.P1 == 1;
|
|
set => this.message.P1 = (Byte)(value ? 1 : 0);
|
|
}
|
|
|
|
protected override Byte[] ToByteArray()
|
|
{
|
|
this.message.Start = SirtFixed.Pc2Sirt;
|
|
this.message.Cmd = SirtFixed.ReadPam;
|
|
|
|
return base.ToByteArray();
|
|
}
|
|
}
|
|
}
|