BitrateXL(BitrateXLClockFrequency, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, UInt32, Boolean, Boolean) Constructor
Initializes an instance of a
BitrateXL object.
Namespace: Peak.Can.BasicAssembly: PCANBasic.NET (in PCANBasic.NET.dll) Version: 5.1.0
public BitrateXL(
BitrateXLClockFrequency frequency = BitrateXLClockFrequency.Mhz_160,
uint prescaler = 0,
uint nominalTseg1 = 0,
uint nominalTseg2 = 0,
uint nominalSjw = 0,
uint fdTseg1 = 0,
uint fdTseg2 = 0,
uint fdSjw = 0,
uint fdOffset = 0,
uint xlTseg1 = 0,
uint xlTseg2 = 0,
uint xlSjw = 0,
uint xlOffset = 0,
bool errorSignaling = true,
bool transceiverModeSwitch = false
)
Public Sub New (
Optional frequency As BitrateXLClockFrequency = BitrateXLClockFrequency.Mhz_160,
Optional prescaler As UInteger = 0,
Optional nominalTseg1 As UInteger = 0,
Optional nominalTseg2 As UInteger = 0,
Optional nominalSjw As UInteger = 0,
Optional fdTseg1 As UInteger = 0,
Optional fdTseg2 As UInteger = 0,
Optional fdSjw As UInteger = 0,
Optional fdOffset As UInteger = 0,
Optional xlTseg1 As UInteger = 0,
Optional xlTseg2 As UInteger = 0,
Optional xlSjw As UInteger = 0,
Optional xlOffset As UInteger = 0,
Optional errorSignaling As Boolean = true,
Optional transceiverModeSwitch As Boolean = false
)
public:
BitrateXL(
BitrateXLClockFrequency frequency = BitrateXLClockFrequency::Mhz_160,
unsigned int prescaler = 0,
unsigned int nominalTseg1 = 0,
unsigned int nominalTseg2 = 0,
unsigned int nominalSjw = 0,
unsigned int fdTseg1 = 0,
unsigned int fdTseg2 = 0,
unsigned int fdSjw = 0,
unsigned int fdOffset = 0,
unsigned int xlTseg1 = 0,
unsigned int xlTseg2 = 0,
unsigned int xlSjw = 0,
unsigned int xlOffset = 0,
bool errorSignaling = true,
bool transceiverModeSwitch = false
)
Parameters
- frequency BitrateXLClockFrequency (Optional)
- The clock frequency to use for the CAN XL bit rate.
- prescaler UInt32 (Optional)
- The prescaler value for the CAN XL bit rate.
- nominalTseg1 UInt32 (Optional)
- The time segment 1 used for the arbitration phase.
- nominalTseg2 UInt32 (Optional)
- The time segment 2 used for the arbitration phase.
- nominalSjw UInt32 (Optional)
- The synchronization jump width used for the arbitration phase.
- fdTseg1 UInt32 (Optional)
- The time segment 1 used for the flexible data phase.
- fdTseg2 UInt32 (Optional)
- The time segment 2 used for the flexible data phase.
- fdSjw UInt32 (Optional)
- The synchronization jump width used for the flexible data phase.
- fdOffset UInt32 (Optional)
- The secondary sample point used for the flexible data phase.
- xlTseg1 UInt32 (Optional)
- The time segment 1 used for the extended data length phase.
- xlTseg2 UInt32 (Optional)
- The time segment 2 used for the extended data length phase.
- xlSjw UInt32 (Optional)
- The synchronization jump width used for the extended data length phase.
- xlOffset UInt32 (Optional)
- The secondary sample point used for the extended data length phase.
- errorSignaling Boolean (Optional)
- A value indicating whether error signaling is enabled for the CAN XL bit rate.
- transceiverModeSwitch Boolean (Optional)
- A value indicating whether transceiver mode switching is enabled for the CAN XL bit rate.