Skip to content

LssIdentityRange Struct

Vendor-id, product code and inclusive ranges of revision and serial number, as the identify remote slave service selects them (CiA 305 §6.6.2, §7.7.1).

public readonly struct LssIdentityRange : System.IEquatable<CanKit.Pro.CANopen.Lss.LssIdentityRange>

Implements IEquatable<LssIdentityRange>

Constructors

LssIdentityRange(LssAddress) Constructor

A range that matches exactly address.

public LssIdentityRange(CanKit.Pro.CANopen.Lss.LssAddress address);

Parameters

address LssAddress

LssIdentityRange(uint, uint, uint, uint, uint, uint) Constructor

Constructs a range. Both bounds are included.

public LssIdentityRange(uint vendorId, uint productCode, uint revisionLow, uint revisionHigh, uint serialLow, uint serialHigh);

Parameters

vendorId UInt32

productCode UInt32

revisionLow UInt32

revisionHigh UInt32

serialLow UInt32

serialHigh UInt32

Exceptions

ArgumentException
A low bound is above its high bound.

Properties

LssIdentityRange.ProductCode Property

Product code that must match.

public uint ProductCode { get; }

Property Value

UInt32

LssIdentityRange.RevisionHigh Property

Highest revision number that matches, inclusive.

public uint RevisionHigh { get; }

Property Value

UInt32

LssIdentityRange.RevisionLow Property

Lowest revision number that matches, inclusive.

public uint RevisionLow { get; }

Property Value

UInt32

LssIdentityRange.SerialHigh Property

Highest serial number that matches, inclusive.

public uint SerialHigh { get; }

Property Value

UInt32

LssIdentityRange.SerialLow Property

Lowest serial number that matches, inclusive.

public uint SerialLow { get; }

Property Value

UInt32

LssIdentityRange.VendorId Property

Vendor-id that must match.

public uint VendorId { get; }

Property Value

UInt32

Methods

LssIdentityRange.Contains(LssAddress) Method

Whether address lies in this range, bounds included.

public bool Contains(CanKit.Pro.CANopen.Lss.LssAddress address);

Parameters

address LssAddress

Returns

Boolean

LssIdentityRange.Equals(object) Method

Indicates whether this instance and a specified object are equal.

public override bool Equals(object? obj);

Parameters

obj Object

The object to compare with the current instance.

Returns

Boolean
true if obj and this instance are the same type and represent the same value; otherwise, false.

LssIdentityRange.GetHashCode() Method

Returns the hash code for this instance.

public override int GetHashCode();

Returns

Int32
A 32-bit signed integer that is the hash code for this instance.

Operators

LssIdentityRange.operator ==(LssIdentityRange, LssIdentityRange) Operator

Value equality.

public static bool operator ==(CanKit.Pro.CANopen.Lss.LssIdentityRange left, CanKit.Pro.CANopen.Lss.LssIdentityRange right);

Parameters

left LssIdentityRange

right LssIdentityRange

Returns

Boolean

LssIdentityRange.operator !=(LssIdentityRange, LssIdentityRange) Operator

Value inequality.

public static bool operator !=(CanKit.Pro.CANopen.Lss.LssIdentityRange left, CanKit.Pro.CANopen.Lss.LssIdentityRange right);

Parameters

left LssIdentityRange

right LssIdentityRange

Returns

Boolean