85 lines
2.3 KiB
C#
85 lines
2.3 KiB
C#
namespace Common.Hardware.Interfaces.Protocols.SIRT.Messages.Requests
|
|
{
|
|
using Common.Hardware.Interfaces.Ports.SIRT;
|
|
using Common.Hardware.Interfaces.Protocols.SIRT.Messages.Parameters;
|
|
|
|
using System;
|
|
|
|
public class WritePamRequest : SirtRequest
|
|
{
|
|
private readonly P811 parameter811 = default(Byte);
|
|
|
|
/// <summary>
|
|
/// <inheritdoc cref="P811.WakeUpModul"/>
|
|
/// </summary>
|
|
public Boolean WakeUpModul
|
|
{
|
|
get => this.parameter811.WakeUpModul;
|
|
set => this.parameter811.WakeUpModul = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <inheritdoc cref="P811.WakeUpCmd"/>
|
|
/// </summary>
|
|
public Boolean WakeUpCmd
|
|
{
|
|
get => this.parameter811.WakeUpCmd;
|
|
set => this.parameter811.WakeUpCmd = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <inheritdoc cref="P811.IgnoreTimeout"/>
|
|
/// </summary>
|
|
public Boolean IgnoreTimeout
|
|
{
|
|
get => this.parameter811.IgnoreTimeout;
|
|
set => this.parameter811.IgnoreTimeout = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <inheritdoc cref="P811.DelPamSemi"/>
|
|
/// </summary>
|
|
public Boolean DelPamSemi
|
|
{
|
|
get => this.parameter811.DelPamSemi;
|
|
set => this.parameter811.DelPamSemi = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <inheritdoc cref="P811.DelPamTx"/>
|
|
/// </summary>
|
|
public Boolean DelPamTx
|
|
{
|
|
get => this.parameter811.DelPamTx;
|
|
set => this.parameter811.DelPamTx = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <inheritdoc cref="P811.DelPamAdr"/>
|
|
/// </summary>
|
|
public Boolean DelPamAdr
|
|
{
|
|
get => this.parameter811.DelPamAdr;
|
|
set => this.parameter811.DelPamAdr = value;
|
|
}
|
|
|
|
/// <summary>
|
|
/// <inheritdoc cref="P811.DelPamAll"/>
|
|
/// </summary>
|
|
public Boolean DelPamAll
|
|
{
|
|
get => this.parameter811.DelPamAll;
|
|
set => this.parameter811.DelPamAll = value;
|
|
}
|
|
|
|
protected override Byte[] ToByteArray()
|
|
{
|
|
this.message.Start = SirtFixed.Pc2Sirt;
|
|
this.message.Cmd = SirtFixed.WritePam;
|
|
this.message.P1 = this.parameter811;
|
|
|
|
return base.ToByteArray();
|
|
}
|
|
}
|
|
}
|