Enum CANError

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<CANError>

    public enum CANError
    extends java.lang.Enum<CANError>
    • Enum Constant Detail

      • kError

        public static final CANError kError
      • kTimeout

        public static final CANError kTimeout
      • kNotImplmented

        public static final CANError kNotImplmented
      • kHALError

        public static final CANError kHALError
      • kCantFindFirmware

        public static final CANError kCantFindFirmware
      • kFirmwareTooOld

        public static final CANError kFirmwareTooOld
      • kFirmwareTooNew

        public static final CANError kFirmwareTooNew
      • kParamInvalidID

        public static final CANError kParamInvalidID
      • kParamMismatchType

        public static final CANError kParamMismatchType
      • kParamAccessMode

        public static final CANError kParamAccessMode
      • kParamInvalid

        public static final CANError kParamInvalid
      • kParamNotImplementedDeprecated

        public static final CANError kParamNotImplementedDeprecated
      • kFollowConfigMismatch

        public static final CANError kFollowConfigMismatch
      • kInvalid

        public static final CANError kInvalid
      • kSetpointOutOfRange

        public static final CANError kSetpointOutOfRange
    • Field Detail

      • value

        public final int value
    • Method Detail

      • values

        public static CANError[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (CANError c : CANError.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static CANError valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null
      • fromInt

        public static CANError fromInt​(int id)