(&mut self, cmd: Cmd)
| 234 | } |
| 235 | |
| 236 | fn send_cmd(&mut self, cmd: Cmd) -> Result<(), &'static str> |
| 237 | { |
| 238 | self.write_cmd_port(0xD4)?; |
| 239 | self.write_data_port(cmd as u8)?; |
| 240 | |
| 241 | if self.read_data_port()? != 0xFA |
| 242 | { |
| 243 | return Err("[ERR] MOUSE IS UNRESPONSIVE"); |
| 244 | } |
| 245 | |
| 246 | Ok(()) |
| 247 | } |
| 248 | |
| 249 | fn sign_ext(&self, packet: u8) -> i16 |
| 250 | { |
no test coverage detected