public enum ModbusBlockType extends Enum<ModbusBlockType>
| Enum Constant and Description |
|---|
Coil
Coil (toggle) type.
|
Diagnostic
Diagnostic information.
|
Discrete
Discrete (input) type.
|
Holding
Holding (output) type.
|
Input
Input type.
|
| Modifier and Type | Method and Description |
|---|---|
static ModbusBlockType |
forCode(int code)
Get an enumeration instance for a code value.
|
int |
getBitCount()
Get the number of bits registers of this type use.
|
int |
getCode()
Get the function code.
|
boolean |
isBitType()
Get the "bit type-ness" of this register block type.
|
boolean |
isReadOnly()
Get the read-only flag.
|
static ModbusBlockType |
valueOf(int code)
Get an enumeration instance for a code value.
|
static ModbusBlockType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ModbusBlockType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ModbusBlockType Coil
public static final ModbusBlockType Discrete
public static final ModbusBlockType Holding
public static final ModbusBlockType Input
public static final ModbusBlockType Diagnostic
public static ModbusBlockType[] values()
for (ModbusBlockType c : ModbusBlockType.values()) System.out.println(c);
public static ModbusBlockType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic int getCode()
public int getBitCount()
public boolean isReadOnly()
public boolean isBitType()
public static ModbusBlockType valueOf(int code)
code - the code value to get the enumeration forpublic static ModbusBlockType forCode(int code)
code - the code value to get the enumeration forIllegalArgumentException - if code is not a valid value