Initial commit
This commit is contained in:
@@ -0,0 +1,43 @@
|
||||
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; } = [];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user