Skip to main content

Crate driver_lab_rust

Crate driver_lab_rust 

Source
Expand description

Embedded Fuchsia driver library (driver_lab_rust) and shared runtime backends for driver-lab.

This library provides:

  • platform_provider::MappedMmio: pre-mapped MMIO adapter via VMO duplication (zx::Rights::SAME_RIGHTS) so an active driver can share its MMIO banks without perturbing its own mappings.
  • fuchsia_backends: Fuchsia FIDL protocol backends (GPIO, I2C, SPI, Clock, Reset, Serial).
  • server: fuchsia.driver.lab FIDL service and session server.
  • trace: mirrors audit records into the driver_lab and driver_lab:irq trace categories.

Re-exports§

pub use embedded::DriverLabBuilder;
pub use embedded::EmbeddedLabServer;
pub use fuchsia_backends::LiveBackend;
pub use platform_provider::MappedMmio;
pub use lab_proxy_core as core;

Modules§

embedded
Embedded in-situ driver library (driver_lab_rust::embedded) for DFv2 Rust drivers (Spec Phase 2 Sections 2 & 3.1).
fuchsia_backends
Real hardware backends for Fuchsia devices.
platform_provider
Platform-device and peripheral resource provider.
server
FIDL server for the fuchsia.driver.lab wire contract, bridging the host-facing protocol to the host-testable core logic.
trace
System trace emission for driver-lab activity.