public abstract class BaseNativeDeviceFactory extends AbstractDeviceFactory implements NativeDeviceFactoryInterface
deviceStates
Constructor and Description |
---|
BaseNativeDeviceFactory() |
Modifier and Type | Method and Description |
---|---|
protected abstract GpioAnalogInputDeviceInterface |
createAnalogInputPin(String key,
int pinNumber) |
protected abstract GpioDigitalInputDeviceInterface |
createDigitalInputPin(String key,
int pinNumber,
GpioPullUpDown pud,
GpioEventTrigger trigger) |
protected abstract GpioDigitalOutputDeviceInterface |
createDigitalOutputPin(String key,
int pinNumber,
boolean initialValue) |
protected abstract I2CDeviceInterface |
createI2CDevice(String key,
int controller,
int address,
int addressSize,
int clockFrequency) |
protected abstract PwmOutputDeviceInterface |
createPwmOutputPin(String key,
int pinNumber,
float initialValue,
PwmType pwmType) |
protected abstract SpiDeviceInterface |
createSpiDevice(String key,
int controller,
int chipSelect,
int frequency,
SpiClockMode spiClockMode) |
GpioAnalogInputDeviceInterface |
provisionAnalogInputPin(int pinNumber) |
GpioDigitalInputDeviceInterface |
provisionDigitalInputPin(int pinNumber,
GpioPullUpDown pud,
GpioEventTrigger trigger) |
GpioDigitalOutputDeviceInterface |
provisionDigitalOutputPin(int pinNumber,
boolean initialValue) |
I2CDeviceInterface |
provisionI2CDevice(int controller,
int address,
int addressSize,
int clockFrequency) |
PwmOutputDeviceInterface |
provisionPwmOutputPin(int pinNumber,
float initialValue) |
SpiDeviceInterface |
provisionSpiDevice(int controller,
int chipSelect,
int frequency,
SpiClockMode spiClockMode) |
closeAll, deviceClosed, deviceOpened, getDevice, isDeviceOpened
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPwmFrequency, setPwmFrequency
closeAll, deviceClosed, deviceOpened, getName, isDeviceOpened
public final GpioDigitalInputDeviceInterface provisionDigitalInputPin(int pinNumber, GpioPullUpDown pud, GpioEventTrigger trigger) throws RuntimeIOException
provisionDigitalInputPin
in interface GpioDeviceFactoryInterface
RuntimeIOException
public final GpioAnalogInputDeviceInterface provisionAnalogInputPin(int pinNumber) throws RuntimeIOException
provisionAnalogInputPin
in interface AnalogInputDeviceFactoryInterface
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 GpioDigitalInputDeviceInterface createDigitalInputPin(String key, int pinNumber, GpioPullUpDown pud, GpioEventTrigger trigger) throws RuntimeIOException
RuntimeIOException
protected abstract GpioAnalogInputDeviceInterface createAnalogInputPin(String key, int pinNumber) 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.