47 lines
1.2 KiB
C#
47 lines
1.2 KiB
C#
using System;
|
|
|
|
namespace Xylem.Common.Logic.ProductionOrderCore
|
|
{
|
|
/// <summary>
|
|
/// Source for final properties of Cordonel
|
|
/// </summary>
|
|
public enum ProgrammingSource
|
|
{
|
|
Vako,
|
|
Csd,
|
|
Order
|
|
}
|
|
|
|
/// <summary>
|
|
/// Values for single registers
|
|
/// </summary>
|
|
public class ProgrammingParameters
|
|
{
|
|
/// <summary>
|
|
/// Single register setup value assignment
|
|
/// </summary>
|
|
/// <param name="registerName"></param>
|
|
/// <param name="registerValue"></param>
|
|
/// <param name="programmingSource"></param>
|
|
public ProgrammingParameters(String registerName, Byte[] registerValue,
|
|
ProgrammingSource programmingSource = ProgrammingSource.Vako)
|
|
{
|
|
RegisterName = registerName;
|
|
RegisterValue = registerValue;
|
|
Source = programmingSource;
|
|
}
|
|
|
|
/// <summary>
|
|
/// The register name
|
|
/// </summary>
|
|
public String RegisterName { get; set; }
|
|
|
|
/// <summary>
|
|
/// The register value converted to raw bytes by register converter
|
|
/// </summary>
|
|
public Byte[] RegisterValue { get; set; }
|
|
|
|
public ProgrammingSource Source { get; set; }
|
|
}
|
|
}
|