Skip to content

LssBitRateProbe Class

One candidate bit rate DetectAsync(Func<int,ICanBus>, LssBitRateDetectionOptions, CancellationToken) listened at.

public sealed class LssBitRateProbe

Inheritance Object → LssBitRateProbe

Constructors

LssBitRateProbe(int, LssBitRateProbeOutcome, int, BusState) Constructor

Constructs a probe record.

public LssBitRateProbe(int bitsPerSecond, CanKit.Pro.CANopen.Lss.LssBitRateProbeOutcome outcome, int errorFrames, CanKit.Abstractions.API.Common.Definitions.BusState busState);

Parameters

bitsPerSecond Int32

outcome LssBitRateProbeOutcome

errorFrames Int32

busState BusState

Properties

LssBitRateProbe.BitsPerSecond Property

The candidate, in bits per second.

public int BitsPerSecond { get; }

Property Value

Int32

LssBitRateProbe.BusState Property

ICanBus.BusState as the probe ended. BusState.ErrActive on a healthy controller; a degraded state is what rejects a candidate that drew no error frame.

public CanKit.Abstractions.API.Common.Definitions.BusState BusState { get; }

Property Value

BusState

LssBitRateProbe.ErrorFrames Property

Error frames the controller reported while listening at this candidate.

public int ErrorFrames { get; }

Property Value

Int32

LssBitRateProbe.Outcome Property

What the listen showed.

public CanKit.Pro.CANopen.Lss.LssBitRateProbeOutcome Outcome { get; }

Property Value

LssBitRateProbeOutcome