public abstract class BaseNativeDeviceFactory extends AbstractDeviceFactory implements NativeDeviceFactoryInterface
closed, deviceStates
DEFAULT_SPI_BUFFER_SIZE, SPI_PREFIX
I2C_PREFIX
Constructor and Description |
---|
BaseNativeDeviceFactory() |
Modifier and Type | Method and Description |
---|---|
void |
close() |
BoardInfo |
getBoardInfo() |
BoardPinInfo |
getBoardPinInfo() |
float |
getVRef() |
protected BoardInfo |
initialiseBoardInfo() |
void |
registerDeviceFactory(DeviceFactoryInterface deviceFactory) |
createI2CKey, createPinKey, createSpiKey, deviceClosed, deviceOpened, getDevice, getDevice, isClosed, isDeviceOpened
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
loadInstances
createDigitalInputDevice, createDigitalInputOutputDevice, createDigitalOutputDevice, provisionDigitalInputDevice, provisionDigitalInputOutputDevice, provisionDigitalOutputDevice
createSpiDevice, createSpiKey, getSpiBufferSize, provisionSpiDevice
createI2CDevice, createI2CKey, provisionI2CDevice
createPwmOutputDevice, getBoardPwmFrequency, provisionPwmOutputDevice, setBoardPwmFrequency
createAnalogInputDevice, provisionAnalogInputDevice
createAnalogOutputDevice, provisionAnalogOutputDevice
createI2CKey, createPinKey, createSpiKey, deviceClosed, deviceOpened, getDevice, getDevice, getName, isClosed, isDeviceOpened
protected BoardInfo initialiseBoardInfo()
public final BoardInfo getBoardInfo()
getBoardInfo
in interface NativeDeviceFactoryInterface
public BoardPinInfo getBoardPinInfo()
getBoardPinInfo
in interface DeviceFactoryInterface
public float getVRef()
getVRef
in interface AnalogInputDeviceFactoryInterface
public final void registerDeviceFactory(DeviceFactoryInterface deviceFactory)
registerDeviceFactory
in interface NativeDeviceFactoryInterface
public void close()
close
in interface DeviceFactoryInterface
close
in interface Closeable
close
in interface AutoCloseable
close
in class AbstractDeviceFactory
Copyright © 2016–2018 mattjlewis. All rights reserved.