Class CanData
Data for a can transmission.
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
Namespace: Loehnert.Lisrt.Communication.Can
Assembly: Loehnert.Lisrt.Communication.Can.dll
Syntax
public class CanData
Constructors
CanData(UInt32, Byte[], Boolean)
Initializes a new instance of the CanData class.
Declaration
public CanData(uint deviceID, byte[] data, bool isExtendedID = false)
Parameters
Type | Name | Description |
---|---|---|
System.UInt32 | deviceID | Device id. |
System.Byte[] | data | Transmission data. |
Boolean | isExtendedID | Value indicating if the id is extended. |
Properties
Data
Gets the data.
Declaration
public byte[] Data { get; }
Property Value
Type | Description |
---|---|
System.Byte[] |
DeviceID
Gets the device id.
Declaration
public uint DeviceID { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
IsExtendedID
Gets a value indicating whether the id is extended.
Declaration
public bool IsExtendedID { get; }
Property Value
Type | Description |
---|---|
Boolean |
MaxExtededID
Gets the maximum extended id.
Declaration
public static uint MaxExtededID { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
MaxID
Gets the maximum standard id.
Declaration
public static uint MaxID { get; }
Property Value
Type | Description |
---|---|
System.UInt32 |
Methods
ToString()
Returns a string that represents the current object.
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
String | A string that represents the current object. |
Overrides
System.Object.ToString()