pub struct UartDmaRx<U, CH, OS: OsInterface> { /* private fields */ }Implementations§
Source§impl<U, CH, OS> UartDmaRx<U, CH, OS>
impl<U, CH, OS> UartDmaRx<U, CH, OS>
pub fn new( uart: U, dma_ch: CH, buf_size: usize, timeout: MicrosDurationU32, ) -> (Self, UartDmaRxNotify<CH, OS>)
Trait Implementations§
Source§impl<U, CH, OS> ErrorType for UartDmaRx<U, CH, OS>where
OS: OsInterface,
impl<U, CH, OS> ErrorType for UartDmaRx<U, CH, OS>where
OS: OsInterface,
Source§impl<U, CH, OS> Read for UartDmaRx<U, CH, OS>where
CH: DmaChannel,
OS: OsInterface,
impl<U, CH, OS> Read for UartDmaRx<U, CH, OS>where
CH: DmaChannel,
OS: OsInterface,
Source§fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
fn read(&mut self, buf: &mut [u8]) -> Result<usize, Self::Error>
Read some bytes from this source into the specified buffer, returning how many bytes were read. Read more
Source§fn read_exact(
&mut self,
buf: &mut [u8],
) -> Result<(), ReadExactError<Self::Error>>
fn read_exact( &mut self, buf: &mut [u8], ) -> Result<(), ReadExactError<Self::Error>>
Read the exact number of bytes required to fill
buf. Read more