Module com.pi4j

Interface I2CRegisterDataReaderWriter

    • Method Detail

      • writeReadRegisterWord

        default int writeReadRegisterWord​(int register,
                                          int word)
        Write a single word value (16-bit) to the I2C device register and immediately reads back a 16-bit word value.
        Parameters:
        register - the register address to write to
        word - 16-bit word value to be written
        Returns:
        The 16-bit word value read/returned; or a negative value if error