public interface SPI extends MetaWearBoard.Module
Modifier and Type | Interface and Description |
---|---|
static class |
SPI.Frequency
Support SPI frequencies
|
static interface |
SPI.ParameterBuilder
Builder to construct common parameters for an SPI read/write operation.
|
static interface |
SPI.SourceSelector
Selector for the SPI data sources
|
Modifier and Type | Method and Description |
---|---|
SPI.ParameterBuilder |
readData(byte numBytes,
byte id,
byte[] data)
Reads data from a device through the SPI bus
|
SPI.SourceSelector |
routeData()
Initiates the creation of a data route
|
SPI.ParameterBuilder |
writeData(byte[] data)
Writes data to a device through the SPI bus
|
SPI.ParameterBuilder writeData(byte[] data)
data
- Data to sendSPI.ParameterBuilder readData(byte numBytes, byte id, byte[] data)
numBytes
- Number of bytes to readid
- User ID identifying the readdata
- Data to write on the bus before reading, null if nothing to writeSPI.SourceSelector routeData()