Class ADS7830

  • All Implemented Interfaces:
    com.diozero.internal.spi.AnalogInputDeviceFactoryInterface , com.diozero.internal.spi.DeviceFactoryInterface , java.lang.AutoCloseable

    
    public final class ADS7830
    extends AbstractDeviceFactory implements AnalogInputDeviceFactoryInterface
                        

    The ADS7830 is a single-supply, low-power, 8-bit data acquisition device that features a serial I2C interface and an 8-channel multiplexer..

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Constructor Summary

      Constructors 
      Constructor Description
      ADS7830(I2CDeviceInterface i2CDevice)
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final I2CDeviceInterface getI2CDevice()
      String getName()
      BoardPinInfo getBoardPinInfo()
      AnalogInputDeviceInterface createAnalogInputDevice(String key, PinInfo pinInfo)
      final Short readFromChannel(Integer channel) Read raw data from the channel (0-7).
      final Float getValue(Integer channel) Returns a scaled value (0.0 to 1.0) for the given channel.
      final Float get(Integer channel) Returns a scaled value (0.0 to 1.0) for the given channel.
      • Methods inherited from class com.diozero.internal.spi.AbstractDeviceFactory

        close, createI2CKey, createPinKey, createPwmPinKey, createSerialKey, createServoPinKey, createSpiKey, deviceClosed, deviceOpened, getDevice, isClosed, isDeviceOpened, reopen
      • Methods inherited from class com.diozero.internal.spi.DeviceFactoryInterface

        registerDevice, registerPinDevice, start
      • Methods inherited from class com.diozero.internal.spi.AnalogInputDeviceFactoryInterface

        provisionAnalogInputDevice
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait