Skip to content

LssAddress Struct

The 128-bit LSS address: vendor-id, product code, revision number and serial number, each the corresponding sub-index of identity object 1018h (CiA 305 §3.3, CiA 301).

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

Implements IEquatable<LssAddress>

Constructors

LssAddress(uint, uint, uint, uint) Constructor

Constructs an address.

public LssAddress(uint vendorId, uint productCode, uint revisionNumber, uint serialNumber);

Parameters

vendorId UInt32

productCode UInt32

revisionNumber UInt32

serialNumber UInt32

Properties

LssAddress.ProductCode Property

Identity 1018h:02.

public uint ProductCode { get; }

Property Value

UInt32

LssAddress.RevisionNumber Property

Identity 1018h:03.

public uint RevisionNumber { get; }

Property Value

UInt32

LssAddress.SerialNumber Property

Identity 1018h:04.

public uint SerialNumber { get; }

Property Value

UInt32

LssAddress.this[int] Property

The four LSS numbers in the order Fastscan walks them (§6.7.2).

public uint this[int index] { get; }

Parameters

index Int32

Property Value

UInt32

LssAddress.VendorId Property

Identity 1018h:01.

public uint VendorId { get; }

Property Value

UInt32

Methods

LssAddress.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.

LssAddress.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.

LssAddress.ToString() Method

Returns the fully qualified type name of this instance.

public override string ToString();

Returns

String
The fully qualified type name.

Operators

LssAddress.operator ==(LssAddress, LssAddress) Operator

Value equality.

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

Parameters

left LssAddress

right LssAddress

Returns

Boolean

LssAddress.operator !=(LssAddress, LssAddress) Operator

Value inequality.

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

Parameters

left LssAddress

right LssAddress

Returns

Boolean