MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / drain_output

Method drain_output

crates/virtual-machine/src/devices/uart.rs:69–71  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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.

Callers 4

runMethod · 0.80
uart_outputMethod · 0.80
drain_uart_outputMethod · 0.80
runMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected