public class ADS1015 extends AbstractDeviceFactory implements AnalogInputDeviceFactoryInterface
Modifier and Type | Class and Description |
---|---|
static class |
ADS1015.Address |
static class |
ADS1015.ADS1015BoardPinInfo |
closed, deviceStates
Constructor and Description |
---|
ADS1015(int controller,
int address,
float vRef) |
Modifier and Type | Method and Description |
---|---|
void |
close() |
AnalogInputDeviceInterface |
createAnalogInputDevice(String key,
PinInfo pinInfo) |
BoardPinInfo |
getBoardPinInfo() |
String |
getName() |
float |
getValue(int adcNumber) |
float |
getVRef() |
createPinKey, deviceClosed, deviceOpened, getDevice, isClosed, isDeviceOpened
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
provisionAnalogInputDevice
createPinKey, deviceClosed, deviceOpened, isClosed, isDeviceOpened
public void close() throws RuntimeIOException
close
in interface DeviceFactoryInterface
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractDeviceFactory
RuntimeIOException
public AnalogInputDeviceInterface createAnalogInputDevice(String key, PinInfo pinInfo)
createAnalogInputDevice
in interface AnalogInputDeviceFactoryInterface
public float getVRef()
getVRef
in interface AnalogInputDeviceFactoryInterface
public String getName()
getName
in interface DeviceFactoryInterface
public BoardPinInfo getBoardPinInfo()
getBoardPinInfo
in interface DeviceFactoryInterface
public float getValue(int adcNumber)
Copyright © 2016–2017 mattjlewis. All rights reserved.