Table of Contents

Class CanFdFrame

Namespace
Suucha.Can.Core.Models
Assembly
Suucha.Can.Core.dll

Represents a CANFD frame (extended CAN frame with flexible data rate)

public class CanFdFrame : CanFrame
Inheritance
CanFdFrame
Inherited Members

Constructors

CanFdFrame()

Creates a new CANFD frame

public CanFdFrame()

CanFdFrame(uint, byte[], bool, bool)

Creates a new CANFD frame with specified ID and data

public CanFdFrame(uint id, byte[] data, bool isExtended = false, bool isBitRateSwitching = false)

Parameters

id uint

CAN identifier

data byte[]

Frame data (up to 64 bytes)

isExtended bool

Whether this is an extended frame

isBitRateSwitching bool

Whether bit rate switching is enabled

Properties

IsBitRateSwitching

Whether bit rate switching is enabled (data phase uses faster rate)

public bool IsBitRateSwitching { get; set; }

Property Value

bool

IsErrorStateIndicator

Whether error state indicator is set

public bool IsErrorStateIndicator { get; set; }

Property Value

bool

IsFdFrame

Whether this is a CANFD frame (vs traditional CAN)

public bool IsFdFrame { get; set; }

Property Value

bool

Methods

ToString()

Returns a string representation of this CANFD frame

public override string ToString()

Returns

string