MraaSpiMode enum
SPI modes.
Constructors
- MraaSpiMode(int code)
-
const
Values
- mode0 → const MraaSpiMode
-
CPOL = 0, CPHA = 0, Clock idle low, data is clocked in on rising edge, output data (change) on falling edge
const MraaSpiMode(mraaimpl.mraa_spi_mode_t.MRAA_SPI_MODE0)
- mode1 → const MraaSpiMode
-
CPOL = 0, CPHA = 1, Clock idle low, data is clocked in on falling edge, output data (change) on rising edge
const MraaSpiMode(mraaimpl.mraa_spi_mode_t.MRAA_SPI_MODE1)
- mode2 → const MraaSpiMode
-
CPOL = 1, CPHA = 0, Clock idle low, data is clocked in on falling edge, output data (change) on rising edge
const MraaSpiMode(mraaimpl.mraa_spi_mode_t.MRAA_SPI_MODE2)
- mode3 → const MraaSpiMode
-
CPOL = 1, CPHA = 1, Clock idle low, data is clocked in on rising, edge output data (change) on falling edge
const MraaSpiMode(mraaimpl.mraa_spi_mode_t.MRAA_SPI_MODE3)
- unknown → const MraaSpiMode
-
Unknown
const MraaSpiMode(-1)
Properties
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Properties
-
byCode
→ Map<
int, MraaSpiMode> -
final
Static Methods
-
spiMode(
int mode) → MraaSpiMode
Constants
-
values
→ const List<
MraaSpiMode> - A constant List of the values in this enum, in order of their declaration.