MCPcopy Create free account
hub / github.com/FrameworkComputer/framework-system / Io

Interface Io

framework_lib/src/chromium_ec/portio_hwio.rs:14–23  ·  view source on GitHub ↗

Trait for hardware port I/O operations

Source from the content-addressed store, hash-verified

12
13/// Trait for hardware port I/O operations
14pub trait Io {
15 type Value: Copy
16 + PartialEq
17 + core::ops::BitAnd<Output = Self::Value>
18 + core::ops::BitOr<Output = Self::Value>
19 + core::ops::Not<Output = Self::Value>;
20
21 fn read(&self) -> Self::Value;
22 fn write(&mut self, value: Self::Value);
23}
24
25// ---- FreeBSD ioctl infrastructure ----
26

Callers

nothing calls this directly

Implementers 1

portio_hwio.rsframework_lib/src/chromium_ec/portio_h

Calls

no outgoing calls

Tested by

no test coverage detected