16 lines
436 B
C#
16 lines
436 B
C#
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);
|
|
}
|
|
}
|
|
|