MraaPinmode enum

The different possible modes for a pin.

Inheritance

Constructors

MraaPinmode(int code)
const

Values

valid → const MraaPinmode

Pin Valid

const MraaPinmode(mraaimpl.mraa_pinmodes_t.MRAA_PIN_VALID)
gpio → const MraaPinmode

General Purpose IO

const MraaPinmode(mraaimpl.mraa_pinmodes_t.MRAA_PIN_GPIO)
pwm → const MraaPinmode

Pulse Width Modulation

const MraaPinmode(mraaimpl.mraa_pinmodes_t.MRAA_PIN_PWM)
fastGpio → const MraaPinmode

Faster GPIO

const MraaPinmode(mraaimpl.mraa_pinmodes_t.MRAA_PIN_FAST_GPIO)
spi → const MraaPinmode

SPI

const MraaPinmode(mraaimpl.mraa_pinmodes_t.MRAA_PIN_SPI)
i2c → const MraaPinmode

I2C

const MraaPinmode(mraaimpl.mraa_pinmodes_t.MRAA_PIN_I2C)
aio → const MraaPinmode

Analog in

const MraaPinmode(mraaimpl.mraa_pinmodes_t.MRAA_PIN_AIO)
uart → const MraaPinmode

UART

const MraaPinmode(mraaimpl.mraa_pinmodes_t.MRAA_PIN_UART)
unknown → const MraaPinmode

Unknown pin mode

const MraaPinmode(-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
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, MraaPinmode>
final

Static Methods

pinmode(int mode) MraaPinmode

Constants

values → const List<MraaPinmode>
A constant List of the values in this enum, in order of their declaration.