Skip to main content

Module protocol_resource_adapter

Module protocol_resource_adapter 

Source
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§

FakeClock
In-memory fake Clock for tests.
FakeGpio
In-memory fake GPIO pin for tests.
FakeI2c
In-memory fake I2C device for tests.
FakeReset
In-memory fake Reset for tests.
FakeSerial
In-memory fake Serial for tests.
FakeSpi
In-memory fake SPI device for tests.

Enums§

DeviceBackend
Unified enum backend allowing heterogeneous resources to coexist in one proxy instance.

Traits§

ClockBackend
Hardware access abstraction for a Clock device.
GpioBackend
Hardware access abstraction for a GPIO pin.
I2cBackend
Hardware access abstraction for an I2C bus device.
ResetBackend
Hardware access abstraction for a Reset device.
ResourceBackend
Unified hardware access trait covering MMIO and protocol resources.
SerialBackend
Hardware access abstraction for a Serial device.
SpiBackend
Hardware access abstraction for a SPI bus device.