std.embedded.uart
The module module std.embedded.uart, read from deploy/std/embedded/uart.rho. This page is generated from the source, so it describes what the code declares.
Functions
init()
fn init(baud: u32) void
read()
fn read(out: Slice[u8]) u32
write()
fn write(s: Slice[u8]) void
Externs
Externs are supplied by the host rather than declared in Rho, which is how a port reaches a service.
| Extern | Signature |
|---|---|
| uarthwinit | extern fn uart_hw_init(baud: u32) void |
| uarthwread | extern fn uart_hw_read(ptr: Ptr[u8], len: u32) u32 |
| uarthwwrite | extern fn uart_hw_write(ptr: Ptr[u8], len: u32) void |