44 lines
1.3 KiB
C#
44 lines
1.3 KiB
C#
namespace Sick.SafetyScanners.DataStructures;
|
|
|
|
/// <summary>
|
|
/// Contains field sets data from a COLA2 variable command response
|
|
/// </summary>
|
|
public sealed class FieldSets
|
|
{
|
|
/// <summary>
|
|
/// Gets or sets the version indicator (e.g., "V" for version)
|
|
/// </summary>
|
|
public string VersionCVersion { get; init; } = string.Empty;
|
|
|
|
/// <summary>
|
|
/// Gets or sets the major version number
|
|
/// </summary>
|
|
public byte VersionMajorVersionNumber { get; init; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the minor version number
|
|
/// </summary>
|
|
public byte VersionMinorVersionNumber { get; init; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the version release number
|
|
/// </summary>
|
|
public byte VersionReleaseNumber { get; init; }
|
|
|
|
/// <summary>
|
|
/// Gets or sets the length of each field name (one per field set)
|
|
/// </summary>
|
|
public IReadOnlyList<uint> NameLengths { get; init; } = [];
|
|
|
|
/// <summary>
|
|
/// Gets or sets the field names (one per field set)
|
|
/// </summary>
|
|
public IReadOnlyList<string> FieldNames { get; init; } = [];
|
|
|
|
/// <summary>
|
|
/// Gets or sets whether each field set is defined
|
|
/// </summary>
|
|
public IReadOnlyList<bool> IsDefined { get; init; } = [];
|
|
}
|
|
|