(&mut self, bytes: &[u8])
| 290 | } |
| 291 | |
| 292 | pub fn write(&mut self, bytes: &[u8]) { |
| 293 | for byte_idx in 0..bytes.len() { |
| 294 | self.tx_buffer.enqueue(bytes[byte_idx]); |
| 295 | } |
| 296 | |
| 297 | uart_set_reg(self.device, &CTRL_TCIE); |
| 298 | pin_out(self.tx_pin, Power::High); |
| 299 | } |
| 300 | |
| 301 | pub fn write_vec(&mut self, bytes: &Vector<u8>) { |
| 302 | for item in bytes.into_iter() { |
no test coverage detected