Important
The retrieved value can be converted to the BitrateFD type. Example (C#): BitrateFD bitrate = stringBuffer;
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.
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.
This parameter can only be read. It cannot be modified.
Possible values are strings representing the nominal and data bit rate used by a CAN FD capable hardware.
Does not apply.
Get: It can be read on initialized or uninitialized PCAN-Channels.
The following code shows how to retrieve CAN FD bit rate information from a USB Channel:
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}");
}Dim channelUsed As PcanChannel = PcanChannel.Usb01
Dim buffer As String = Nothing
If Api.GetValue(channelUsed, PcanParameter.BitrateFdInformation, buffer) = PcanStatus.OK Then
Dim bitrateFD As BitrateFD = CType(buffer, BitrateFD)
Console.WriteLine($"The channel {channelUsed} uses following bit rate:")
Console.WriteLine($" Frequency: {bitrateFD.Frequency}")
Console.WriteLine($" Nominal: {bitrateFD.Nominal}")
Console.WriteLine($" Data: {bitrateFD.Data}")
End IfPcanChannel channelUsed = PcanChannel::Usb01;
String^ buffer;
if (Api::GetValue(channelUsed, PcanParameter::BitrateFdInformation, buffer) == PcanStatus::OK)
{
BitrateFD^ bitrateFD = (BitrateFD^)buffer;
Console::WriteLine("The channel {0} uses following bit rate:", channelUsed);
Console::WriteLine(" Frequency: {0}", bitrateFD->Frequency);
Console::WriteLine(" Nominal: {0}", bitrateFD->Nominal);
Console::WriteLine(" Data: {0}", bitrateFD->Data);
}