Expand description
Protocol resource adapters for GPIO, I2C, and SPI.
Provides representative hardware backends and fakes for protocol-backed resources (Spec 8.1, 9.5, 11.6; Milestone P4). Protocol resources preserve their production request/response semantics rather than being flattened into generic byte writes or MMIO offsets.
Structs§
- Fake
Clock - In-memory fake Clock for tests.
- Fake
Gpio - In-memory fake GPIO pin for tests.
- FakeI2c
- In-memory fake I2C device for tests.
- Fake
Reset - In-memory fake Reset for tests.
- Fake
Serial - In-memory fake Serial for tests.
- FakeSpi
- In-memory fake SPI device for tests.
Enums§
- Device
Backend - Unified enum backend allowing heterogeneous resources to coexist in one proxy instance.
Traits§
- Clock
Backend - Hardware access abstraction for a Clock device.
- Gpio
Backend - Hardware access abstraction for a GPIO pin.
- I2cBackend
- Hardware access abstraction for an I2C bus device.
- Reset
Backend - Hardware access abstraction for a Reset device.
- Resource
Backend - Unified hardware access trait covering MMIO and protocol resources.
- Serial
Backend - Hardware access abstraction for a Serial device.
- SpiBackend
- Hardware access abstraction for a SPI bus device.