std.embedded.gpio
The module module std.embedded.gpio, read from deploy/std/embedded/gpio.rho. This page is generated from the source, so it describes what the code declares.
Functions
init()
fn init(pin: u32, mode: u32) void
read()
fn read(pin: u32) bool
write()
fn write(pin: u32, value: bool) void
Externs
Externs are supplied by the host rather than declared in Rho, which is how a port reaches a service.
| Extern | Signature |
|---|---|
| gpiohwinit | extern fn gpio_hw_init(pin: u32, mode: u32) void |
| gpiohwread | extern fn gpio_hw_read(pin: u32) u32 |
| gpiohwwrite | extern fn gpio_hw_write(pin: u32, value: u32) void |