Package nl.basjes.modbus.device.api
Enum FunctionCode
-
- All Implemented Interfaces:
-
java.io.Serializable,kotlin.Comparable
public enum FunctionCode extends Enum<FunctionCode>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classFunctionCode.Companion
-
Field Summary
Fields Modifier and Type Field Description private final IntegerbitsPerValueprivate final BooleanisForReadingprivate final BooleanisForWritableSingleprivate final StringenumNameprivate final StringreadableNameprivate final Stringnameprivate final Integerordinalprivate final EnumEntries<FunctionCode>entries
-
Enum Constant Summary
Enum Constants Enum Constant Description READ_COILREAD_DISCRETE_INPUTREAD_HOLDING_REGISTERSREAD_INPUT_REGISTERSWRITE_SINGLE_COILWRITE_SINGLE_HOLDING_REGISTERWRITE_MULTIPLE_COILSWRITE_MULTIPLE_HOLDING_REGISTERS
-
Method Summary
Modifier and Type Method Description StringtoString()final FunctionCodevalueOf(String value)Returns the enum constant of this type with the specified name. final Array<FunctionCode>values()Returns an array containing the constants of this enum type, in the order they're declared. final IntegergetBitsPerValue()final BooleanisForReading()final BooleanisForWritableSingle()final StringgetEnumName()The java code name of this enum which can be used for code generation final StringgetReadableName()A human-readable name for the FunctionCode final EnumEntries<FunctionCode>getEntries()-
-
Method Detail
-
valueOf
final FunctionCode valueOf(String value)
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.)
-
values
final Array<FunctionCode> values()
Returns an array containing the constants of this enum type, in the order they're declared.
This method may be used to iterate over the constants.
-
getBitsPerValue
final Integer getBitsPerValue()
-
isForReading
final Boolean isForReading()
-
isForWritableSingle
final Boolean isForWritableSingle()
-
getEnumName
final String getEnumName()
The java code name of this enum which can be used for code generation
-
getReadableName
final String getReadableName()
A human-readable name for the FunctionCode
-
getEntries
final EnumEntries<FunctionCode> getEntries()
-
-
-
-