MraaSpiMode enum

SPI modes.

Inheritance
Available extensions

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

code → int
final
hashCode → int
The hash code for this object.
no setterinherited
index → int
A numeric identifier for the enumerated value.
no setterinherited
name → String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

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.