T
- Return type of the commit functionpublic static interface SerialPassthrough.SpiParameterBuilder<T>
lsbFirst()
and useNativePins()
parameters are optional and default to false if not set; the data(byte[])
parameter is also optional for a read operation but required for writes. All other parameters are required.Modifier and Type | Method and Description |
---|---|
SerialPassthrough.SpiParameterBuilder<T> |
clockPin(byte pin)
Pin for serial clock
|
T |
commit()
Commit the parameters
|
SerialPassthrough.SpiParameterBuilder<T> |
data(byte[] data)
Data to write to the sensor.
|
SerialPassthrough.SpiParameterBuilder<T> |
frequency(SerialPassthrough.SpiFrequency freq)
SPI operating frequency
|
SerialPassthrough.SpiParameterBuilder<T> |
lsbFirst()
Call to have LSB sent first
|
SerialPassthrough.SpiParameterBuilder<T> |
misoPin(byte pin)
Pin for master input, slave output
|
SerialPassthrough.SpiParameterBuilder<T> |
mode(byte mode)
SPI operating mode, see SPI Wiki Page
for details on the mode values
|
SerialPassthrough.SpiParameterBuilder<T> |
mosiPin(byte pin)
Pin for master output, slave input
|
SerialPassthrough.SpiParameterBuilder<T> |
slaveSelectPin(byte pin)
Pin for slave select
|
SerialPassthrough.SpiParameterBuilder<T> |
useNativePins()
Call to use the nRF pin mappings rather than the GPIO pin mappings
|
SerialPassthrough.SpiParameterBuilder<T> data(byte[] data)
data
- Data to writeSerialPassthrough.SpiParameterBuilder<T> slaveSelectPin(byte pin)
pin
- Pin valueSerialPassthrough.SpiParameterBuilder<T> clockPin(byte pin)
pin
- Pin valueSerialPassthrough.SpiParameterBuilder<T> mosiPin(byte pin)
pin
- Pin valueSerialPassthrough.SpiParameterBuilder<T> misoPin(byte pin)
pin
- Pin valueSerialPassthrough.SpiParameterBuilder<T> lsbFirst()
SerialPassthrough.SpiParameterBuilder<T> mode(byte mode)
mode
- Value between [0, 3]SerialPassthrough.SpiParameterBuilder<T> frequency(SerialPassthrough.SpiFrequency freq)
freq
- Operating frequencySerialPassthrough.SpiParameterBuilder<T> useNativePins()
T commit()