Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/LPC4/Full-Stack
/ receive
Method
receive
crates/virtual-machine/src/devices/uart.rs:59–62 ·
view source on GitHub ↗
(&mut self, byte: u8)
Source
from the content-addressed store, hash-verified
57
}
58
}
59
60
pub fn receive(&mut self, byte: u8) {
61
self.rx_buf.push_back(byte);
62
self.lsr |= 0x01; // Data Ready
63
}
64
65
/// True when UART RX interrupt should be raised.
Callers
2
uart_receive
Method · 0.80
push_uart_rx
Method · 0.80
Calls
no outgoing calls
Tested by
no test coverage detected