public abstract class BaseNativeDeviceFactory extends AbstractDeviceFactory implements NativeDeviceFactoryInterface
deviceStates
Constructor and Description |
---|
BaseNativeDeviceFactory() |
deviceClosed, deviceOpened, getDevice, isDeviceOpened, shutdown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPwmFrequency, setPwmFrequency
deviceClosed, deviceOpened, getName, isDeviceOpened, shutdown
public final GpioAnalogInputDeviceInterface provisionAnalogInputPin(int pinNumber) throws RuntimeIOException
provisionAnalogInputPin
in interface AnalogInputDeviceFactoryInterface
RuntimeIOException
public final GpioAnalogOutputDeviceInterface provisionAnalogOutputPin(int pinNumber) throws RuntimeIOException
provisionAnalogOutputPin
in interface AnalogOutputDeviceFactoryInterface
RuntimeIOException
public final GpioDigitalInputDeviceInterface provisionDigitalInputPin(int pinNumber, GpioPullUpDown pud, GpioEventTrigger trigger) throws RuntimeIOException
provisionDigitalInputPin
in interface GpioDeviceFactoryInterface
RuntimeIOException
public final GpioDigitalOutputDeviceInterface provisionDigitalOutputPin(int pinNumber, boolean initialValue) throws RuntimeIOException
provisionDigitalOutputPin
in interface GpioDeviceFactoryInterface
RuntimeIOException
public final PwmOutputDeviceInterface provisionPwmOutputPin(int pinNumber, float initialValue) throws RuntimeIOException
provisionPwmOutputPin
in interface PwmOutputDeviceFactoryInterface
RuntimeIOException
public final SpiDeviceInterface provisionSpiDevice(int controller, int chipSelect, int frequency, SpiClockMode spiClockMode) throws RuntimeIOException
provisionSpiDevice
in interface SpiDeviceFactoryInterface
RuntimeIOException
public final I2CDeviceInterface provisionI2CDevice(int controller, int address, int addressSize, int clockFrequency) throws RuntimeIOException
provisionI2CDevice
in interface I2CDeviceFactoryInterface
RuntimeIOException
protected abstract GpioAnalogInputDeviceInterface createAnalogInputPin(String key, int pinNumber) throws RuntimeIOException
RuntimeIOException
protected abstract GpioAnalogOutputDeviceInterface createAnalogOutputPin(String key, int pinNumber) throws RuntimeIOException
RuntimeIOException
protected abstract GpioDigitalInputDeviceInterface createDigitalInputPin(String key, int pinNumber, GpioPullUpDown pud, GpioEventTrigger trigger) throws RuntimeIOException
RuntimeIOException
protected abstract GpioDigitalOutputDeviceInterface createDigitalOutputPin(String key, int pinNumber, boolean initialValue) throws RuntimeIOException
RuntimeIOException
protected abstract PwmOutputDeviceInterface createPwmOutputPin(String key, int pinNumber, float initialValue, PwmType pwmType) throws RuntimeIOException
RuntimeIOException
protected abstract SpiDeviceInterface createSpiDevice(String key, int controller, int chipSelect, int frequency, SpiClockMode spiClockMode) throws RuntimeIOException
RuntimeIOException
protected abstract I2CDeviceInterface createI2CDevice(String key, int controller, int address, int addressSize, int clockFrequency) throws RuntimeIOException
RuntimeIOException
Copyright © 2016 mattjlewis. All rights reserved.