(&mut self)
| 67 | (self.ier & 0x01) != 0 && !self.rx_buf.is_empty() |
| 68 | } |
| 69 | |
| 70 | pub fn drain_output(&mut self) -> Vec<u8> { |
| 71 | std::mem::take(&mut self.tx_out) |
| 72 | } |
| 73 | |
| 74 | /// Peek at a UART register without side effects. |
no outgoing calls
no test coverage detected