pub struct UarteRxWithIdle<'d, T: Instance, U: TimerInstance> { /* private fields */ }
Expand description
Receiver part of the UARTE driver, with read_until_idle
support.
This can be obtained via Uarte::split_with_idle
.
Implementations§
Source§impl<'d, T: Instance, U: TimerInstance> UarteRxWithIdle<'d, T, U>
impl<'d, T: Instance, U: TimerInstance> UarteRxWithIdle<'d, T, U>
Sourcepub async fn read(&mut self, buffer: &mut [u8]) -> Result<(), Error>
pub async fn read(&mut self, buffer: &mut [u8]) -> Result<(), Error>
Read bytes until the buffer is filled.
Sourcepub fn blocking_read(&mut self, buffer: &mut [u8]) -> Result<(), Error>
pub fn blocking_read(&mut self, buffer: &mut [u8]) -> Result<(), Error>
Read bytes until the buffer is filled.
Auto Trait Implementations§
impl<'d, T, U> Freeze for UarteRxWithIdle<'d, T, U>
impl<'d, T, U> RefUnwindSafe for UarteRxWithIdle<'d, T, U>where
T: RefUnwindSafe,
U: RefUnwindSafe,
impl<'d, T, U> Send for UarteRxWithIdle<'d, T, U>
impl<'d, T, U> !Sync for UarteRxWithIdle<'d, T, U>
impl<'d, T, U> Unpin for UarteRxWithIdle<'d, T, U>
impl<'d, T, U> !UnwindSafe for UarteRxWithIdle<'d, T, U>
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