MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / read_data_port

Method read_data_port

src/dev/mouse.rs:230–234  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

228 }
229
230 fn read_data_port(&mut self) -> Result<u8, &'static str>
231 {
232 self.wait_for_read()?;
233 Ok(unsafe { self.dataport.read() })
234 }
235
236 fn send_cmd(&mut self, cmd: Cmd) -> Result<(), &'static str>
237 {

Callers 2

initMethod · 0.80
send_cmdMethod · 0.80

Calls 2

wait_for_readMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected