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

Method read

framework_lib/src/chromium_ec/portio_hwio.rs:194–200  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

192 ))]
193 #[inline(always)]
194 fn read(&self) -> u8 {
195 let value: u8;
196 unsafe {
197 asm!("in al, dx", out("al") value, in("dx") self.port, options(nostack));
198 }
199 value
200 }
201
202 #[cfg(any(
203 target_os = "freebsd",

Callers 7

send_messageMethod · 0.80
get_battery_statusMethod · 0.80
transfer_readFunction · 0.80
wait_for_readyFunction · 0.80
send_commandFunction · 0.80
transfer_readFunction · 0.80
get_esrtFunction · 0.80

Calls 1

port_readFunction · 0.85

Tested by

no test coverage detected