Retuns the current buffer of data the serial interface has accumulated. You can interact with this buffer, modify it, etc. It is recommended to call `.clear()` on the buffer as soon as you are done with the data, otherwise the buffer will eventually overflow.
(device: SerioDevice)
| 408 | /// done with the data, otherwise the buffer will eventually |
| 409 | /// overflow. |
| 410 | pub fn serial_read<'a>(device: SerioDevice) -> &'a mut Str { |
| 411 | let uart = get_uart_interface(device); |
| 412 | return uart.get_rx_buffer(); |
| 413 | } |
| 414 | |
| 415 | /// Returns the amount of data in the currenet read buffer. |
| 416 | pub fn serial_available(device: SerioDevice) -> usize { |
nothing calls this directly
no test coverage detected