A message for defining the selected CAN bus speed.

interface CanBusSpeed {
    bitRate: number;
    numberOfSamplePoints: number;
    prescaler: number;
    syncJumpWidth: number;
    timeSegment1: number;
    timeSegment2: number;
}

Properties

bitRate: number

Bit rate (measured in bits per second); or one of the predefined constants (canBITRATE_xxx for classic CAN and canFD_BITRATE_xxx for CAN FD).

numberOfSamplePoints: number

The number of sampling points; can be 1 or 3.

prescaler: number

The prescaler

syncJumpWidth: number

The Synchronization Jump Width.

timeSegment1: number

Time segment 1, that is, the number of quanta from (but not including) the Sync Segment to the sampling point.

timeSegment2: number

Time segment 2, that is, the number of quanta from the sampling point to the end of the bit.