pub struct LpUart { /* private fields */ }Expand description
LP-UART driver
Implementations§
Source§impl LpUart
impl LpUart
Sourcepub fn read_byte(&mut self) -> Result<u8, Error>
pub fn read_byte(&mut self) -> Result<u8, Error>
Read a single byte from the UART in a non-blocking manner.
Sourcepub fn write_byte(&mut self, byte: u8) -> Result<(), Error>
pub fn write_byte(&mut self, byte: u8) -> Result<(), Error>
Write a single byte to the UART in a non-blocking manner.
Sourcepub fn write_bytes(&mut self, data: &[u8]) -> Result<usize, Error>
pub fn write_bytes(&mut self, data: &[u8]) -> Result<usize, Error>
Write one or more byte to the UART, blocking until the write has completed.