FakeChip class
A simulated GPIO chip for FakeKernel.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- label → String
-
Driver label, e.g.
pinctrl-rp1.final - lineCount → int
-
How many lines the chip has.
final
-
lineNames
→ Map<
int, String> -
Names the "device tree" gives particular lines.
final
- name → String
-
Kernel device name, e.g.
gpiochip0.final - onEdge ↔ void Function(int offset, {required bool level})?
-
Installed by FakeKernel so level changes become edge events.
getter/setter pair
-
owners
→ Map<
int, String> -
offset -> consumer label, for lines currently claimed.
final
- path → String
-
The chip's device path.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
level(
int offset) → bool -
Physical level of
offset, as a test would set it from outside. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
setLevel(
int offset, {required bool value}) → void -
Drives
offsetfrom the outside world, as hardware would. -
setLevels(
Map< int, bool> values) → void - Drives several lines at once.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited