Uses of Enum Class
org.openhab.core.io.transport.modbus.ModbusConstants.ValueType
Packages that use ModbusConstants.ValueType
-
Uses of ModbusConstants.ValueType in org.openhab.core.io.transport.modbus
Methods in org.openhab.core.io.transport.modbus that return ModbusConstants.ValueTypeModifier and TypeMethodDescriptionstatic ModbusConstants.ValueType
ModbusConstants.ValueType.fromConfigValue
(@Nullable String configValueType) Constructs ValueType given the config value string.static ModbusConstants.ValueType
Returns the enum constant of this class with the specified name.static ModbusConstants.ValueType[]
ModbusConstants.ValueType.values()
Returns an array containing the constants of this enum class, in the order they are declared.Methods in org.openhab.core.io.transport.modbus with parameters of type ModbusConstants.ValueTypeModifier and TypeMethodDescriptionstatic ModbusRegisterArray
ModbusBitUtilities.commandToRegisters
(Command command, ModbusConstants.ValueType type) Convert command to array of registers using a specific value typestatic Optional
<DecimalType> ModbusBitUtilities.extractStateFromRegisters
(ModbusRegisterArray registers, int index, ModbusConstants.ValueType type) Read data from registers and convert the result to DecimalType Interpretation of index goes as follows depending on type BIT: - a single bit is read from the registers - indices between 0...15 (inclusive) represent bits of the first register - indices between 16...31 (inclusive) represent bits of the second register, etc