pub struct BufferedLpuartTx<'a> { /* private fields */ }Expand description
Buffered LPUART TX driver
Implementations§
Source§impl<'a> BufferedLpuartTx<'a>
impl<'a> BufferedLpuartTx<'a>
pub fn new<T: Instance>( inner: Peri<'a, T>, tx_pin: Peri<'a, impl TxPin<T>>, _irq: impl Binding<T::Interrupt, BufferedInterruptHandler<T>> + 'a, tx_buffer: &'a mut [u8], config: Config, ) -> Result<Self>
Sourcepub fn new_with_cts<T: Instance>(
inner: Peri<'a, T>,
tx_pin: Peri<'a, impl TxPin<T>>,
cts_pin: Peri<'a, impl CtsPin<T>>,
_irq: impl Binding<T::Interrupt, BufferedInterruptHandler<T>> + 'a,
tx_buffer: &'a mut [u8],
config: Config,
) -> Result<Self>
pub fn new_with_cts<T: Instance>( inner: Peri<'a, T>, tx_pin: Peri<'a, impl TxPin<T>>, cts_pin: Peri<'a, impl CtsPin<T>>, _irq: impl Binding<T::Interrupt, BufferedInterruptHandler<T>> + 'a, tx_buffer: &'a mut [u8], config: Config, ) -> Result<Self>
Create a new TX-only buffered LPUART with CTS flow control
Source§impl<'a> BufferedLpuartTx<'a>
impl<'a> BufferedLpuartTx<'a>
Trait Implementations§
Source§impl ErrorType for BufferedLpuartTx<'_>
impl ErrorType for BufferedLpuartTx<'_>
Source§impl Write for BufferedLpuartTx<'_>
impl Write for BufferedLpuartTx<'_>
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
Auto Trait Implementations§
impl<'a> Freeze for BufferedLpuartTx<'a>
impl<'a> !RefUnwindSafe for BufferedLpuartTx<'a>
impl<'a> !Send for BufferedLpuartTx<'a>
impl<'a> !Sync for BufferedLpuartTx<'a>
impl<'a> Unpin for BufferedLpuartTx<'a>
impl<'a> !UnwindSafe for BufferedLpuartTx<'a>
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