Skip to main content

Module io

Module io 

Source

Modules§

buttons
Unified front-panel button events.
console
Async buffered serial console for both targets — byte-level ring buffer with overwrite-on-full semantics. The producer (log!() / send_line) is O(1) and NEVER blocks the caller: never spins, never awaits, never creates back-pressure. On full, the oldest bytes are overwritten so the lines fired just before a failure survive (those are the informative ones).
console_line
Hardware-free: builds and is tested on the host too. Console line formatting, hardware-free so it is host-tested.
console_ring
Hardware-free, so it is tested on the host; its only user is console, so a non-test host build has nothing to compile it for. The console’s byte ring, hardware-free so it is tested on the host.
console_tap
Hardware-free: the console’s tap, tested on the host. Public because a consumer implements its trait; the slot is the console’s own. The console’s tap, hardware-free so it is tested on the host.
ow_temp
pps
The PPS link: one transaction per 25 ms slot, so a tick never skips a beat.
pps_plan
Hardware-free: builds and is tested on the host too. What each PPS slot does, decided without I/O.
rpm
serial_cmd
HIL serial-cmd transport — exposes a Read endpoint for the alternator-regulator::serial_cmd parser.
shared_i2c
touch_buttons
Touch→button emulation for the CoreS3 (FT6336U).
watchdog
Production hardware watchdog (RWDT) backstop.

Enums§

InputCaps
What input model a board exposes, so a consumer can install the matching LVGL indev (keypad vs pointer) instead of assuming three buttons (#32 I2). This is a capability descriptor only — it carries no app vocabulary (no nav/semantic meaning); see buttons::ButtonEvent for the I1 event contract and input_caps to query the running board.

Functions§

input_caps
The running board’s input capability (#32 I2). Fire27 reports a 3-button keypad; CoreS3 reports its touch-panel size. Lets a view install the right indev without hardcoding the board.