Class AbstractModbusRegisterElement<E,​T>

    • Constructor Detail

      • AbstractModbusRegisterElement

        public AbstractModbusRegisterElement​(OpenemsType type,
                                             int startAddress)
    • Method Detail

      • self

        protected abstract E self()
        Gets an instance of the correct subclass of myself.
        Returns:
        myself
      • setNextWriteValueRegisters

        protected void setNextWriteValueRegisters​(java.util.Optional<com.ghgande.j2mod.modbus.procimg.Register[]> writeValueOpt)
                                           throws OpenemsException
        Throws:
        OpenemsException
      • byteOrder

        public final E byteOrder​(java.nio.ByteOrder byteOrder)
        Sets the Byte-Order. Default is "BIG_ENDIAN". See http://www.simplymodbus.ca/FAQ.htm#Order.
        Parameters:
        byteOrder - the ByteOrder
        Returns:
        myself
      • getByteOrder

        public java.nio.ByteOrder getByteOrder()
      • _setInputRegisters

        protected abstract void _setInputRegisters​(com.ghgande.j2mod.modbus.procimg.InputRegister... registers)