pub struct BufferedUartTx<'d> { /* private fields */ }
Expand description
Tx-only buffered UART
Created with BufferedUart::split
Implementations§
Source§impl<'d> BufferedUartTx<'d>
impl<'d> BufferedUartTx<'d>
Sourcepub fn set_config(&mut self, config: &Config) -> Result<(), ConfigError>
pub fn set_config(&mut self, config: &Config) -> Result<(), ConfigError>
Reconfigure the driver
Sourcepub fn send_break(&self)
pub fn send_break(&self)
Send break character
Sourcepub fn set_baudrate(&self, baudrate: u32) -> Result<(), ConfigError>
pub fn set_baudrate(&self, baudrate: u32) -> Result<(), ConfigError>
Set baudrate
Trait Implementations§
Source§impl<'d> Drop for BufferedUartTx<'d>
impl<'d> Drop for BufferedUartTx<'d>
Source§impl<'d> ErrorType for BufferedUartTx<'d>
impl<'d> ErrorType for BufferedUartTx<'d>
Source§impl<'d> SetConfig for BufferedUartTx<'d>
impl<'d> SetConfig for BufferedUartTx<'d>
Source§type ConfigError = ConfigError
type ConfigError = ConfigError
The error type that can occur if
set_config
fails.Source§fn set_config(&mut self, config: &Self::Config) -> Result<(), Self::ConfigError>
fn set_config(&mut self, config: &Self::Config) -> Result<(), Self::ConfigError>
Set the configuration of the driver.
Source§impl<'d> Write for BufferedUartTx<'d>
impl<'d> Write for BufferedUartTx<'d>
Source§async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
async fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Source§impl<'d> Write for BufferedUartTx<'d>
impl<'d> Write for BufferedUartTx<'d>
Source§fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
fn write(&mut self, buf: &[u8]) -> Result<usize, Self::Error>
Write a buffer into this writer, returning how many bytes were written. Read more
Source§fn flush(&mut self) -> Result<(), Self::Error>
fn flush(&mut self) -> Result<(), Self::Error>
Flush this output stream, blocking until all intermediately buffered contents reach their destination.
Source§impl<'d> Write for BufferedUartTx<'d>
impl<'d> Write for BufferedUartTx<'d>
Auto Trait Implementations§
impl<'d> Freeze for BufferedUartTx<'d>
impl<'d> !RefUnwindSafe for BufferedUartTx<'d>
impl<'d> Send for BufferedUartTx<'d>
impl<'d> Sync for BufferedUartTx<'d>
impl<'d> Unpin for BufferedUartTx<'d>
impl<'d> !UnwindSafe for BufferedUartTx<'d>
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