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.
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.
Property Value¶
LssIdentityRange.RevisionHigh Property¶
Highest revision number that matches, inclusive.
Property Value¶
LssIdentityRange.RevisionLow Property¶
Lowest revision number that matches, inclusive.
Property Value¶
LssIdentityRange.SerialHigh Property¶
Highest serial number that matches, inclusive.
Property Value¶
LssIdentityRange.SerialLow Property¶
Lowest serial number that matches, inclusive.
Property Value¶
LssIdentityRange.VendorId Property¶
Vendor-id that must match.
Property Value¶
Methods¶
LssIdentityRange.Contains(LssAddress) Method¶
Whether address lies in this range, bounds included.
Parameters¶
address LssAddress
Returns¶
LssIdentityRange.Equals(object) Method¶
Indicates whether this instance and a specified object are equal.
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.
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¶
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