public abstract class BaseNativeDeviceFactory extends AbstractDeviceFactory implements NativeDeviceFactoryInterface
Modifier and Type | Field and Description |
---|---|
protected BoardInfo |
boardInfo |
deviceStates, shutdown
Constructor and Description |
---|
BaseNativeDeviceFactory() |
Modifier and Type | Method and Description |
---|---|
protected abstract I2CDeviceInterface |
createI2CDevice(String key,
int controller,
int address,
int addressSize,
int clockFrequency) |
protected abstract SpiDeviceInterface |
createSpiDevice(String key,
int controller,
int chipSelect,
int frequency,
SpiClockMode spiClockMode,
boolean lsbFirst) |
BoardPinInfo |
getBoardPinInfo() |
float |
getVRef() |
void |
initialiseBoardInfo() |
I2CDeviceInterface |
provisionI2CDevice(int controller,
int address,
int addressSize,
int clockFrequency) |
SpiDeviceInterface |
provisionSpiDevice(int controller,
int chipSelect,
int frequency,
SpiClockMode spiClockMode,
boolean lsbFirst) |
void |
registerDeviceFactory(DeviceFactoryInterface deviceFactory) |
void |
shutdown() |
createPinKey, deviceClosed, deviceOpened, getDevice, isDeviceOpened, isShutdown
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
createDigitalInputDevice, createDigitalInputOutputDevice, createDigitalOutputDevice, provisionDigitalInputDevice, provisionDigitalInputOutputDevice, provisionDigitalOutputDevice
createPwmOutputDevice, getPwmFrequency, provisionPwmOutputDevice, setPwmFrequency
createAnalogInputDevice, provisionAnalogInputDevice
createAnalogOutputDevice, provisionAnalogOutputDevice
createPinKey, deviceClosed, deviceOpened, getName, isDeviceOpened, isShutdown
protected BoardInfo boardInfo
public void initialiseBoardInfo()
initialiseBoardInfo
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 shutdown()
shutdown
in interface DeviceFactoryInterface
shutdown
in class AbstractDeviceFactory
public final SpiDeviceInterface provisionSpiDevice(int controller, int chipSelect, int frequency, SpiClockMode spiClockMode, boolean lsbFirst) 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 SpiDeviceInterface createSpiDevice(String key, int controller, int chipSelect, int frequency, SpiClockMode spiClockMode, boolean lsbFirst) throws RuntimeIOException
RuntimeIOException
protected abstract I2CDeviceInterface createI2CDevice(String key, int controller, int address, int addressSize, int clockFrequency) throws RuntimeIOException
RuntimeIOException
Copyright © 2016–2017 mattjlewis. All rights reserved.