Package com.ctre.phoenix.platform.can
Class PlatformCAN
java.lang.Object
com.ctre.phoenix.platform.can.PlatformCAN
Configures the can interface for API
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic intregisterCANbus(char[] canbus) Registers a non-compliant CANbusstatic voidsetAutocacheLevel(AutocacheState state) Set Autocache statestatic intsetCANInterface(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
-