Receive a byte via the serial port:
(&mut self)
| 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 |