Class TPCANBitrateCC

java.lang.Object
peak.can.basic.TPCANBitrateCC

public class TPCANBitrateCC extends Object
Represents a PCAN classic bit rate string. You can define your own bit rate with the CC string, as shown in this exemple: "f_clock_mhz=20, nom_brp=5, nom_tseg1=2, nom_tseg2=1, nom_sjw=1"
  • Constructor Details

    • TPCANBitrateCC

      public TPCANBitrateCC(String value)
      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

      public String getValue()
      Returns the string configuration of the bitrate code.
      Returns:
      The bitrate string configuration
    • setValue

      public void setValue(String value)
      Sets string configuration of the bitrate code.
      Parameters:
      value - The new bitrate string configuration