Class TPCANBitrateXL

java.lang.Object
peak.can.basic.TPCANBitrateXL

public class TPCANBitrateXL extends Object
XL bit rates for the CAN XL controller. You can define your own bit rate with the XL string, as shown in this exemple: "f_clock=160000000,brp=1,nom_tseg1=255,nom_tseg2=64,nom_sjw=64, fd_tseg1=63,fd_tseg2=16,fd_sjw=16,fd_ssp_offset=0,xl_tseg1=10, xl_tseg2=9,xl_sjw=9,xl_ssp_offset=10, xl_error_signaling=1,xl_transceiver_mode_switch=0"
  • Constructor Details

    • TPCANBitrateXL

      public TPCANBitrateXL(String value)
      Creates a CAN XL bitrate
      Parameters:
      value - A CAN XL bitrate string (for instance: "f_clock=160000000,brp=1,nom_tseg1=255,nom_tseg2=64,nom_sjw=64, fd_tseg1=63,fd_tseg2=16,fd_sjw=16,fd_ssp_offset=0,xl_tseg1=10, xl_tseg2=9,xl_sjw=9,xl_ssp_offset=10, xl_error_signaling=1,xl_transceiver_mode_switch=0")
  • 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