pub struct Uart<T: UartPeripheral> { /* private fields */ }Implementations§
Source§impl<T: UartPeripheral> Uart<T>
impl<T: UartPeripheral> Uart<T>
pub fn new(peripheral: T, config: UartConfig) -> Self
Trait Implementations§
Source§impl<T: UartPeripheral> ErrorType for Uart<T>
impl<T: UartPeripheral> ErrorType for Uart<T>
Source§impl<T: UartPeripheral> SetConfig for Uart<T>
impl<T: UartPeripheral> SetConfig for Uart<T>
Source§type Config = UartConfig
type Config = UartConfig
The configuration type used by this driver.
Source§type ConfigError = ()
type ConfigError = ()
The error type that can occur if
set_config fails.Source§impl<T: UartPeripheral> Write for Uart<T>
impl<T: UartPeripheral> Write for Uart<T>
Source§fn write(&mut self, buf: &[u8]) -> Result<usize, Error>
fn write(&mut self, buf: &[u8]) -> Result<usize, Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<(), Error>
fn flush(&mut self) -> Result<(), Error>
Flush this output stream, blocking until all intermediately buffered contents reach their destination.
Auto Trait Implementations§
impl<T> Freeze for Uart<T>where
T: Freeze,
impl<T> RefUnwindSafe for Uart<T>where
T: RefUnwindSafe,
impl<T> Send for Uart<T>where
T: Send,
impl<T> Sync for Uart<T>where
T: Sync,
impl<T> Unpin for Uart<T>where
T: Unpin,
impl<T> UnwindSafe for Uart<T>where
T: UnwindSafe,
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more