public interface SpiDeviceFactoryInterface extends DeviceFactoryInterface
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_SPI_BUFFER_SIZE
Many distributions have a maximum SPI transfer of 4096 bytes.
|
static String |
SPI_PREFIX |
Modifier and Type | Method and Description |
---|---|
SpiDeviceInterface |
createSpiDevice(String key,
int controller,
int chipSelect,
int frequency,
SpiClockMode spiClockMode,
boolean lsbFirst) |
static String |
createSpiKey(String keyPrefix,
int controller,
int chipSelect) |
default int |
getSpiBufferSize() |
default SpiDeviceInterface |
provisionSpiDevice(int controller,
int chipSelect,
int frequency,
SpiClockMode spiClockMode,
boolean lsbFirst) |
close, createI2CKey, createPinKey, createSpiKey, deviceClosed, deviceOpened, getBoardPinInfo, getDevice, getDevice, getName, isClosed, isDeviceOpened
static final int DEFAULT_SPI_BUFFER_SIZE
static final String SPI_PREFIX
default SpiDeviceInterface provisionSpiDevice(int controller, int chipSelect, int frequency, SpiClockMode spiClockMode, boolean lsbFirst) throws RuntimeIOException
RuntimeIOException
SpiDeviceInterface createSpiDevice(String key, int controller, int chipSelect, int frequency, SpiClockMode spiClockMode, boolean lsbFirst) throws RuntimeIOException
RuntimeIOException
default int getSpiBufferSize()
Copyright © 2016–2018 mattjlewis. All rights reserved.