Class HardwareFactory

java.lang.Object
io.openems.edge.io.gpio.linuxfs.HardwareFactory

public class HardwareFactory extends Object
  • Constructor Details

    • HardwareFactory

      public HardwareFactory(String gpioPath)
  • Method Details

    • fabricateIn

      public LinuxFsDigitalIn fabricateIn(int gpio)
      Creates a digital input with Linux file system driver.
      Parameters:
      gpio - the number of the GPIO on the device.
      Returns:
      a java object that represents the digital input.
    • fabricateOut

      public LinuxFsDigitalOut fabricateOut(int gpio)
      Creates a digital output with Linux file system driver.
      Parameters:
      gpio - the number of the GPIO on the device.
      Returns:
      a java object that represents the digital output.