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

Method init

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

Source from the content-addressed store, hash-verified

147 }
148
149 pub fn init(&mut self) -> Result<(), &'static str>
150 {
151 self.write_cmd_port(GET_STAT_BYTE)?;
152 let status = self.read_data_port()? | 0x02;
153 self.write_cmd_port(SET_STAT_BYTE)?;
154 self.write_data_port(status & 0xDF)?;
155 self.send_cmd(Cmd::SetDef)?;
156 self.send_cmd(Cmd::EnablePacketStreaming)?;
157
158 Ok(())
159 }
160
161 pub fn proc_packet(&mut self, packet: u8)
162 {

Callers

nothing calls this directly

Calls 4

write_cmd_portMethod · 0.80
read_data_portMethod · 0.80
write_data_portMethod · 0.80
send_cmdMethod · 0.80

Tested by

no test coverage detected