Class PlatformCAN

java.lang.Object
com.ctre.phoenix.platform.can.PlatformCAN

public class PlatformCAN
extends Object
Configures the can interface for API
  • Constructor Details

  • Method Details

    • setCANInterface

      @Deprecated public static int setCANInterface​(char[] canInterface)
      Deprecated.
      pass the CAN interface to device constructors instead, or call registerCANbus
      Set CAN interface
      Parameters:
      canInterface - Can interface to set, example "can0".
      Returns:
      ErrorCode generated by function
    • registerCANbus

      public static int registerCANbus​(char[] canbus)
      Registers a non-compliant CANbus
      Parameters:
      canbus - CANbus to register. Linux example: "can0".
      Returns:
      ErrorCode generated by function
    • setAutocacheLevel

      public static void setAutocacheLevel​(AutocacheState state)
      Set Autocache state
      Parameters:
      state - state of autocache