Skip to main content

Module gpio

Module gpio 

Source
Expand description

GPIO access functions and commands for EndBASIC.

Structs§

GpioClearCommand
The GPIO_CLEAR command.
GpioMockInjectCommand
The GPIO_MOCK_INJECT command.
GpioMockTraceFunction
The GPIO_MOCK_TRACE function.
GpioReadFunction
The GPIO_READ function.
GpioSetupCommand
The GPIO_SETUP command.
GpioWriteCommand
The GPIO_WRITE command.
MockPins
Self-contained mock GPIO implementation that records operations and supplies pre-seeded reads.
NoopPins
Stand-in implementation of the EndBASIC GPIO operations that always returns an error.
Pin
Pin identifier.

Enums§

PinMode
Pin configuration, which includes mode and bias.

Traits§

Pins
Generic abstraction over a GPIO chip to back all EndBASIC commands.

Functions§

add_all
Adds all symbols provided by this module to the given machine.