save
This commit is contained in:
15
BlazorApp/Models/CanMessage.cs
Normal file
15
BlazorApp/Models/CanMessage.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
namespace BlazorApp.Models
|
||||
{
|
||||
public class CanMessage
|
||||
{
|
||||
public uint Id { get; set; }
|
||||
public byte Length { get; set; }
|
||||
public byte[] Data { get; set; } = new byte[8];
|
||||
public DateTime Timestamp { get; set; }
|
||||
|
||||
// ===== CANopen Info =====
|
||||
public string Meaning => CanopenDecoder.GetMeaning(Id);
|
||||
public string ValueText => CanopenDecoder.GetValue(Id, Data, Length);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user