pub struct LpuartTx<'a, M: Mode> { /* private fields */ }Expand description
Lpuart TX driver.
Implementations§
Source§impl<'a> LpuartTx<'a, Blocking>
impl<'a> LpuartTx<'a, Blocking>
Sourcepub fn new_blocking<T: Instance>(
_inner: Peri<'a, T>,
tx_pin: Peri<'a, impl TxPin<T>>,
config: Config,
) -> Result<Self>
pub fn new_blocking<T: Instance>( _inner: Peri<'a, T>, tx_pin: Peri<'a, impl TxPin<T>>, config: Config, ) -> Result<Self>
Create a new blocking LPUART transmitter instance
Sourcepub fn new_blocking_with_cts<T: Instance>(
_inner: Peri<'a, T>,
tx_pin: Peri<'a, impl TxPin<T>>,
cts_pin: Peri<'a, impl CtsPin<T>>,
config: Config,
) -> Result<Self>
pub fn new_blocking_with_cts<T: Instance>( _inner: Peri<'a, T>, tx_pin: Peri<'a, impl TxPin<T>>, cts_pin: Peri<'a, impl CtsPin<T>>, config: Config, ) -> Result<Self>
Create a new blocking LPUART transmitter instance with CTS flow control
Sourcepub fn blocking_write(&mut self, buf: &[u8]) -> Result<()>
pub fn blocking_write(&mut self, buf: &[u8]) -> Result<()>
Write data to LPUART TX blocking execution until all data is sent.
pub fn write_str_blocking(&mut self, buf: &str)
Sourcepub fn blocking_flush(&mut self) -> Result<()>
pub fn blocking_flush(&mut self) -> Result<()>
Flush LPUART TX blocking execution until all data has been transmitted.
Trait Implementations§
Source§impl Write for LpuartTx<'_, Blocking>
impl Write for LpuartTx<'_, Blocking>
Source§impl Write for LpuartTx<'_, Blocking>
impl Write for LpuartTx<'_, Blocking>
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 Write<u8> for LpuartTx<'_, Blocking>
impl Write<u8> for LpuartTx<'_, Blocking>
Auto Trait Implementations§
impl<'a, M> Freeze for LpuartTx<'a, M>
impl<'a, M> !RefUnwindSafe for LpuartTx<'a, M>
impl<'a, M> !Send for LpuartTx<'a, M>
impl<'a, M> !Sync for LpuartTx<'a, M>
impl<'a, M> Unpin for LpuartTx<'a, M>where
M: Unpin,
impl<'a, M> !UnwindSafe for LpuartTx<'a, M>
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