MCPcopy Create free account
hub / github.com/LibertyOS-Development/kernel / receive

Method receive

src/dev/drivers/mm_uart.rs:102–110  ·  view source on GitHub ↗

Receive a byte via the serial port:

(&mut self)

Source from the content-addressed store, hash-verified

100
101 // Receive a byte via the serial port:
102 pub fn receive(&mut self) -> u8
103 {
104 let self_data = self.data.load(Ordering::Relaxed);
105 unsafe
106 {
107 waitfor!(self.lnstat().contains(LineStatFlag::INPFULL));
108 self_data.read()
109 }
110 }
111}
112
113

Callers 1

intrhFunction · 0.80

Calls 2

loadMethod · 0.80
readMethod · 0.45

Tested by

no test coverage detected