Package | Description |
---|---|
com.pi4j.io.spi | |
com.pi4j.io.spi.impl |
Modifier and Type | Method and Description |
---|---|
static SpiChannel |
SpiChannel.getByNumber(int channelNumber) |
static SpiChannel |
SpiChannel.getByNumber(short channelNumber) |
static SpiChannel |
SpiChannel.valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SpiChannel[] |
SpiChannel.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)
Create new SpiDevice instance with a default SPI speed of 1 MHz.
|
static SpiDevice |
SpiFactory.getInstance(SpiChannel channel,
int speed)
Create new SpiDevice instance
|
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 SpiChannel |
SpiDeviceImpl.channel |
Constructor and Description |
---|
SpiDeviceImpl(SpiChannel channel)
Creates the SPI Device at the given SPI and input channel
(A default speed of 1 MHz will be used)
|
SpiDeviceImpl(SpiChannel channel,
int speed)
Creates the SPI Device at the given spi and input channel
|
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.