Package com.ctre.phoenix.platform.can
Class PlatformCAN
java.lang.Object
com.ctre.phoenix.platform.can.PlatformCAN
public class PlatformCAN extends Object
Configures the can interface for API
-
Constructor Summary
Constructors Constructor Description PlatformCAN()
-
Method Summary
Modifier and Type Method Description static int
registerCANbus(char[] canbus)
Registers a non-compliant CANbusstatic void
setAutocacheLevel(AutocacheState state)
Set Autocache statestatic int
setCANInterface(char[] canInterface)
Deprecated.pass the CAN interface to device constructors instead, or call registerCANbus
-
Constructor Details
-
PlatformCAN
public PlatformCAN()
-
-
Method Details
-
setCANInterface
Deprecated.pass the CAN interface to device constructors instead, or call registerCANbusSet CAN interface- Parameters:
canInterface
- Can interface to set, example "can0".- Returns:
- ErrorCode generated by function
-
registerCANbus
Registers a non-compliant CANbus- Parameters:
canbus
- CANbus to register. Linux example: "can0".- Returns:
- ErrorCode generated by function
-
setAutocacheLevel
Set Autocache state- Parameters:
state
- state of autocache
-