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

Method write_data_port

src/dev/mouse.rs:266–276  ·  view source on GitHub ↗
(&mut self, value: u8)

Source from the content-addressed store, hash-verified

264 }
265
266 fn write_data_port(&mut self, value: u8) -> Result<(), &'static str>
267 {
268 self.wait_for_write()?;
269
270 unsafe
271 {
272 self.dataport.write(value);
273 }
274
275 Ok(())
276 }
277
278 fn wait_for_read(&mut self) -> Result<(), &'static str>
279 {

Callers 2

initMethod · 0.80
send_cmdMethod · 0.80

Calls 2

wait_for_writeMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected