public class SysFsAnalogInputDevice extends AbstractInputDevice<AnalogInputEvent> implements AnalogInputDeviceInterface
Constructor and Description |
---|
SysFsAnalogInputDevice(SysFsDeviceFactory deviceFactory,
String key,
int device,
int adcNumber) |
Modifier and Type | Method and Description |
---|---|
protected void |
closeDevice() |
int |
getAdcNumber() |
float |
getValue() |
disableListener, enableListener, removeListener, setListener, valueChanged
close, getDeviceFactory, getKey, isOpen
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
close
getKey, isOpen
public SysFsAnalogInputDevice(SysFsDeviceFactory deviceFactory, String key, int device, int adcNumber)
public int getAdcNumber()
getAdcNumber
in interface AnalogInputDeviceInterface
public float getValue() throws RuntimeIOException
getValue
in interface AnalogInputDeviceInterface
RuntimeIOException
protected void closeDevice() throws RuntimeIOException
closeDevice
in class AbstractDevice
RuntimeIOException
Copyright © 2016–2017 mattjlewis. All rights reserved.