BitrateFdInformation

This parameter is used to obtain information about the bit rate of a Channel, that was initialized to work with CAN FD, or CAN XL communication.

Availability

It is available since PCAN-Basic version 4.0.0.

It can be read without initialization since PCAN-Basic version 4.4.0.

It supports CAN XL since PCAN-Basic version 5.0.0.

Supported By

Access Mode

This parameter can only be read. It cannot be modified.

Possible Values

Possible values are strings representing the nominal and data bit rate used by a CAN FD capable hardware.

  Important

The retrieved value can be converted to the BitrateFD type. Example (C#): BitrateFD bitrate = stringBuffer;

Default Value

Does not apply.

Initialization Status

Get: It can be read on initialized or uninitialized PCAN-Channels.

Example

The following code shows how to retrieve CAN FD bit rate information from a USB Channel:

C#
PcanChannel channelUsed = PcanChannel.Usb01;
string buffer;

if (Api.GetValue(channelUsed, PcanParameter.BitrateFdInformation, out buffer) == PcanStatus.OK)
{
    BitrateFD bitrateFD = (BitrateFD)buffer;
    Console.WriteLine($"The channel {channelUsed} uses following bit rate:");
    Console.WriteLine($"  Frequency: {bitrateFD.Frequency}");
    Console.WriteLine($"  Nominal: {bitrateFD.Nominal}");
    Console.WriteLine($"  Data: {bitrateFD.Data}");
}

See Also