Package peak.can.basic
Class TPCANBitrateFD
java.lang.Object
peak.can.basic.TPCANBitrateFD
FD bit rates for the CAN FD controller. You can
define your own bit rate with the FD string, as shown in this exemple:
"f_clock_mhz=20, nom_brp=5, nom_tseg1=2, nom_tseg2=1, nom_sjw=1,
data_brp=2, data_tseg1=3, data_tseg2=1, data_sjw=1"
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TPCANBitrateFD
Creates a CAN FD bitrate- Parameters:
value
- A CAN FD bitrate string (for instance: "f_clock_mhz=20, nom_brp=5, nom_tseg1=2, nom_tseg2=1, nom_sjw=1, data_brp=2, data_tseg1=3, data_tseg2=1, data_sjw=1")
-
-
Method Details
-
getValue
Returns the string configuration of the bitrate code.- Returns:
- The bitrate string configuration
-
setValue
Sets string configuration of the bitrate code.- Parameters:
value
- The new bitrate string configuration
-