Skip to content

LssBitTiming Class

Table selector 0, the CiA 301 bit timing table as CiA 305 Table 4 indexes it. Index 5 is reserved. Index 9 selects automatic bit rate detection: a configure-bit-timing command cannot make a slave perform it (the master only names the index), but the procedure itself is CiA 801 and is available as LssBitRateDetection.

public static class LssBitTiming

Inheritance Object → LssBitTiming

Fields

LssBitTiming.AutomaticIndex Field

Table index of automatic bit rate detection. Not implemented here.

public const byte AutomaticIndex = 9;

Field Value

Byte

LssBitTiming.Cia301Table Field

Table selector for the CiA 301 bit timing table (§6.4.3).

public const byte Cia301Table = 0;

Field Value

Byte

LssBitTiming.ManufacturerTableFirst Field

First table selector a manufacturer may use for its own table (§7.5.2).

public const byte ManufacturerTableFirst = 128;

Field Value

Byte

LssBitTiming.ManufacturerTableLast Field

Last table selector a manufacturer may use for its own table.

public const byte ManufacturerTableLast = 254;

Field Value

Byte

Properties

LssBitTiming.Cia301Rates Property

Entries of table 0 that name a bit rate, in index order. Index 5 and 9 are absent.

public static System.Collections.Generic.IReadOnlyList<(byte Index,int BitsPerSecond)> Cia301Rates { get; }

Property Value

IReadOnlyList<<Byte,Int32>>

Methods

LssBitTiming.IsManufacturerTable(byte) Method

Whether tableSelector addresses a manufacturer-specific table.

public static bool IsManufacturerTable(byte tableSelector);

Parameters

tableSelector Byte

Returns

Boolean

LssBitTiming.TryGetCia301Index(int, byte) Method

CiA 301 table index of bitsPerSecond, when the table lists it.

public static bool TryGetCia301Index(int bitsPerSecond, out byte tableIndex);

Parameters

bitsPerSecond Int32

tableIndex Byte

Returns

Boolean

LssBitTiming.TryGetCia301Rate(byte, int) Method

Bit rate of CiA 301 table index tableIndex, when the index names one.

public static bool TryGetCia301Rate(byte tableIndex, out int bitsPerSecond);

Parameters

tableIndex Byte

bitsPerSecond Int32

Returns

Boolean