Enum CANOpenService
- java.lang.Object
-
- java.lang.Enum<CANOpenService>
-
- org.apache.plc4x.java.canopen.readwrite.CANOpenService
-
- All Implemented Interfaces:
Serializable,Comparable<CANOpenService>
public enum CANOpenService extends Enum<CANOpenService>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description EMCYHEARTBEATNMTRECEIVE_PDO_1RECEIVE_PDO_2RECEIVE_PDO_3RECEIVE_PDO_4RECEIVE_SDOSYNCTIMETRANSMIT_PDO_1TRANSMIT_PDO_2TRANSMIT_PDO_3TRANSMIT_PDO_4TRANSMIT_SDO
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static CANOpenServiceenumForValue(byte value)static List<CANOpenService>enumsForFieldMax(short fieldValue)static List<CANOpenService>enumsForFieldMin(short fieldValue)static List<CANOpenService>enumsForFieldPdo(boolean fieldValue)static CANOpenServicefirstEnumForFieldMax(short fieldValue)static CANOpenServicefirstEnumForFieldMin(short fieldValue)static CANOpenServicefirstEnumForFieldPdo(boolean fieldValue)shortgetMax()shortgetMin()booleangetPdo()bytegetValue()static BooleanisDefined(byte value)static CANOpenServicevalueOf(String name)Returns the enum constant of this type with the specified name.static CANOpenService[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
NMT
public static final CANOpenService NMT
-
SYNC
public static final CANOpenService SYNC
-
EMCY
public static final CANOpenService EMCY
-
TIME
public static final CANOpenService TIME
-
TRANSMIT_PDO_1
public static final CANOpenService TRANSMIT_PDO_1
-
RECEIVE_PDO_1
public static final CANOpenService RECEIVE_PDO_1
-
TRANSMIT_PDO_2
public static final CANOpenService TRANSMIT_PDO_2
-
RECEIVE_PDO_2
public static final CANOpenService RECEIVE_PDO_2
-
TRANSMIT_PDO_3
public static final CANOpenService TRANSMIT_PDO_3
-
RECEIVE_PDO_3
public static final CANOpenService RECEIVE_PDO_3
-
TRANSMIT_PDO_4
public static final CANOpenService TRANSMIT_PDO_4
-
RECEIVE_PDO_4
public static final CANOpenService RECEIVE_PDO_4
-
TRANSMIT_SDO
public static final CANOpenService TRANSMIT_SDO
-
RECEIVE_SDO
public static final CANOpenService RECEIVE_SDO
-
HEARTBEAT
public static final CANOpenService HEARTBEAT
-
-
Method Detail
-
values
public static CANOpenService[] 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 (CANOpenService c : CANOpenService.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static CANOpenService valueOf(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:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getValue
public byte getValue()
-
getMin
public short getMin()
-
firstEnumForFieldMin
public static CANOpenService firstEnumForFieldMin(short fieldValue)
-
enumsForFieldMin
public static List<CANOpenService> enumsForFieldMin(short fieldValue)
-
getMax
public short getMax()
-
firstEnumForFieldMax
public static CANOpenService firstEnumForFieldMax(short fieldValue)
-
enumsForFieldMax
public static List<CANOpenService> enumsForFieldMax(short fieldValue)
-
getPdo
public boolean getPdo()
-
firstEnumForFieldPdo
public static CANOpenService firstEnumForFieldPdo(boolean fieldValue)
-
enumsForFieldPdo
public static List<CANOpenService> enumsForFieldPdo(boolean fieldValue)
-
enumForValue
public static CANOpenService enumForValue(byte value)
-
isDefined
public static Boolean isDefined(byte value)
-
-