Class UnsignedDoublewordElement
java.lang.Object
io.openems.edge.bridge.modbus.api.element.AbstractModbusElement<T>
io.openems.edge.bridge.modbus.api.element.AbstractModbusRegisterElement<E,T>
io.openems.edge.bridge.modbus.api.element.AbstractDoubleWordElement<UnsignedDoublewordElement,Long>
io.openems.edge.bridge.modbus.api.element.UnsignedDoublewordElement
- All Implemented Interfaces:
ModbusElement<Long>
,ModbusRegisterElement<Long>
public class UnsignedDoublewordElement
extends AbstractDoubleWordElement<UnsignedDoublewordElement,Long>
An UnsignedDoublewordElement represents a Long value in an
AbstractDoubleWordElement
.-
Field Summary
Fields inherited from class io.openems.edge.bridge.modbus.api.element.AbstractModbusElement
abstractTask, onSetNextWriteCallbacks
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected Long
fromByteBuffer
(ByteBuffer buff) Converts a 4-byte ByteBuffer to the the current OpenemsType.protected UnsignedDoublewordElement
self()
Gets an instance of the correct subclass of myself.protected ByteBuffer
toByteBuffer
(ByteBuffer buff, Long value) Converts the current OpenemsType to a 4-byte ByteBuffer.Methods inherited from class io.openems.edge.bridge.modbus.api.element.AbstractDoubleWordElement
_setInputRegisters, _setNextWriteValue, getLength, wordOrder
Methods inherited from class io.openems.edge.bridge.modbus.api.element.AbstractModbusRegisterElement
byteOrder, getByteOrder, getNextWriteValue, setInputRegisters, setNextWriteValueRegisters
Methods inherited from class io.openems.edge.bridge.modbus.api.element.AbstractModbusElement
deactivate, debug, getModbusTask, getStartAddress, getType, invalidate, isDebug, isIgnored, onSetNextWrite, onUpdateCallback, setModbusTask, setValue, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface io.openems.edge.bridge.modbus.api.element.ModbusElement
deactivate, getStartAddress, getType, invalidate, isIgnored, onSetNextWrite, setModbusTask
Methods inherited from interface io.openems.edge.bridge.modbus.api.element.ModbusRegisterElement
getNextWriteValueAndReset, setNextWriteValue
-
Constructor Details
-
UnsignedDoublewordElement
public UnsignedDoublewordElement(int address)
-
-
Method Details
-
self
Description copied from class:AbstractDoubleWordElement
Gets an instance of the correct subclass of myself.- Specified by:
self
in classAbstractDoubleWordElement<UnsignedDoublewordElement,
Long> - Returns:
- myself
-
fromByteBuffer
Description copied from class:AbstractDoubleWordElement
Converts a 4-byte ByteBuffer to the the current OpenemsType.- Specified by:
fromByteBuffer
in classAbstractDoubleWordElement<UnsignedDoublewordElement,
Long> - Parameters:
buff
- the ByteBuffer- Returns:
- an instance of the given OpenemsType
-
toByteBuffer
Description copied from class:AbstractDoubleWordElement
Converts the current OpenemsType to a 4-byte ByteBuffer.- Specified by:
toByteBuffer
in classAbstractDoubleWordElement<UnsignedDoublewordElement,
Long> - Parameters:
buff
- the target ByteBuffervalue
- an instance of the given OpenemsType- Returns:
- the ByteBuffer
-