Rho Rho language and toolchain

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.

ExternSignature
gpiohwinitextern fn gpio_hw_init(pin: u32, mode: u32) void
gpiohwreadextern fn gpio_hw_read(pin: u32) u32
gpiohwwriteextern fn gpio_hw_write(pin: u32, value: u32) void