public class SysFsDeviceFactory extends BaseNativeDeviceFactory
closed, deviceStates
Constructor and Description |
---|
SysFsDeviceFactory() |
close, getBoardInfo, getBoardPinInfo, getVRef, initialiseBoardInfo, provisionI2CDevice, provisionSpiDevice, registerDeviceFactory
createPinKey, deviceClosed, deviceOpened, getDevice, isClosed, isDeviceOpened
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
provisionDigitalInputDevice, provisionDigitalInputOutputDevice, provisionDigitalOutputDevice
provisionPwmOutputDevice
provisionAnalogInputDevice
provisionAnalogOutputDevice
createPinKey, deviceClosed, deviceOpened, isClosed, isDeviceOpened
public boolean isExported(int gpio)
gpio
- GPIO pinpublic String getName()
public int getBoardPwmFrequency()
public void setBoardPwmFrequency(int pwmFrequency)
public GpioDigitalInputDeviceInterface createDigitalInputDevice(String key, PinInfo pinInfo, GpioPullUpDown pud, GpioEventTrigger trigger) throws RuntimeIOException
RuntimeIOException
public GpioDigitalOutputDeviceInterface createDigitalOutputDevice(String key, PinInfo pinInfo, boolean initialValue) throws RuntimeIOException
RuntimeIOException
public GpioDigitalInputOutputDeviceInterface createDigitalInputOutputDevice(String key, PinInfo pinInfo, DeviceMode mode) throws RuntimeIOException
RuntimeIOException
public PwmOutputDeviceInterface createPwmOutputDevice(String key, PinInfo pinInfo, int pwmFrequency, float initialValue) throws RuntimeIOException
RuntimeIOException
public AnalogInputDeviceInterface createAnalogInputDevice(String key, PinInfo pinInfo) throws RuntimeIOException
RuntimeIOException
public AnalogOutputDeviceInterface createAnalogOutputDevice(String key, PinInfo pinInfo) throws RuntimeIOException
RuntimeIOException
public SpiDeviceInterface createSpiDevice(String key, int controller, int chipSelect, int frequency, SpiClockMode spiClockMode, boolean lsbFirst) throws RuntimeIOException
createSpiDevice
in class BaseNativeDeviceFactory
RuntimeIOException
public I2CDeviceInterface createI2CDevice(String key, int controller, int address, int addressSize, int clockFrequency) throws RuntimeIOException
createI2CDevice
in class BaseNativeDeviceFactory
RuntimeIOException
Copyright © 2016–2017 mattjlewis. All rights reserved.