Package | Description |
---|---|
com.pi4j.io.spi | |
com.pi4j.io.spi.impl |
Modifier and Type | Field and Description |
---|---|
static SpiMode |
SpiDevice.DEFAULT_SPI_MODE |
Modifier and Type | Method and Description |
---|---|
static SpiMode |
SpiMode.getByNumber(int modeNumber) |
static SpiMode |
SpiMode.getByNumber(short modeNumber) |
static SpiMode |
SpiMode.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpiMode[] |
SpiMode.values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
Modifier and Type | Method and Description |
---|---|
static SpiDevice |
SpiFactory.getInstance(SpiChannel channel,
int speed,
SpiMode mode)
Create new SpiDevice instance
|
static SpiDevice |
SpiFactory.getInstance(SpiChannel channel,
SpiMode mode)
Create new SpiDevice instance
|
Modifier and Type | Field and Description |
---|---|
protected SpiMode |
SpiDeviceImpl.mode |
Constructor and Description |
---|
SpiDeviceImpl(SpiChannel channel,
int speed,
SpiMode mode)
Creates the SPI Device at the given spi and input channel
|
SpiDeviceImpl(SpiChannel channel,
SpiMode mode)
Creates the SPI Device at the given SPI and input channel
(A default speed of 1 MHz will be used)
|
Copyright © 2012–2019 Pi4J. All rights reserved.