Skip to Content
GuidesHardware Peripherals

Hardware Peripherals

v1 status: stub. The rantaiclaw repo has docs/hardware-peripherals-design.md and a docs/hardware/ directory with board-specific guides. Migrate-and-adapt content TBD.

The shape

Peripherals implement the Peripheral trait in src/peripherals/<your_board>.rs. Each peripheral exposes one or more tools() — each tool wraps a specific hardware action (read GPIO, write GPIO, query sensor, send command to firmware).

The agent never talks to the hardware directly. It calls a tool; the tool delegates to the peripheral; the peripheral talks to the device.

What ships

PeripheralBuild featureTarget
Raspberry Pi GPIOperipheral-rpiLinux on RPi
STM32 / Nucleo (probe-rs)probeAny host that probe-rs supports
Generic USB / serialhardware (nusb + tokio-serial)Linux, macOS, Windows

Reference docs

For now, the rantaiclaw repo’s existing docs are the source of truth:

These will be migrated and adapted into this site in a later iteration.

Last updated on