LssServiceResult Struct¶
Outcome of a confirmed LSS configuration service (configure node-id, configure bit timing, store). A timeout is not an outcome of the service: it is LssTimeoutException (CiA 305 annex A.2).
public readonly struct LssServiceResult : System.IEquatable<CanKit.Pro.CANopen.Lss.LssServiceResult>
Implements IEquatable<LssServiceResult>
Constructors¶
LssServiceResult(byte, byte) Constructor¶
Constructs a result. specError is meaningful only when errorCode is ManufacturerSpecific; otherwise the protocol reserves it and this value is what the slave sent.
Parameters¶
errorCode Byte
specError Byte
Properties¶
LssServiceResult.ErrorCode Property¶
Error code from the slave. 00h is success. The meaning of the other codes
depends on the service (CiA 305 §7.5).
Property Value¶
LssServiceResult.IsManufacturerSpecific Property¶
The slave reported ManufacturerSpecific.
Property Value¶
LssServiceResult.SpecError Property¶
Implementation-specific code. The slave sends it when ErrorCode is ManufacturerSpecific; otherwise the field is reserved.
Property Value¶
LssServiceResult.Succeeded Property¶
The slave reported success (ErrorCode00h).
Property Value¶
LssServiceResult.Success Property¶
Protocol succeeded.
Property Value¶
Methods¶
LssServiceResult.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.
LssServiceResult.GetHashCode() Method¶
Returns the hash code for this instance.
Returns¶
Int32
A 32-bit signed integer that is the hash code for this instance.
LssServiceResult.ToString() Method¶
Returns the fully qualified type name of this instance.
Returns¶
String
The fully qualified type name.
Operators¶
LssServiceResult.operator ==(LssServiceResult, LssServiceResult) Operator¶
Value equality.
public static bool operator ==(CanKit.Pro.CANopen.Lss.LssServiceResult left, CanKit.Pro.CANopen.Lss.LssServiceResult right);
Parameters¶
left LssServiceResult
right LssServiceResult
Returns¶
LssServiceResult.operator !=(LssServiceResult, LssServiceResult) Operator¶
Value inequality.
public static bool operator !=(CanKit.Pro.CANopen.Lss.LssServiceResult left, CanKit.Pro.CANopen.Lss.LssServiceResult right);
Parameters¶
left LssServiceResult
right LssServiceResult