Trait esp32c3_hal::rmt::RxChannel
source · pub trait RxChannel<const CHANNEL: u8>: RxChannelInternal<CHANNEL> {
// Provided method
fn receive<T, 'a>(
self,
data: &'a mut [T]
) -> Result<RxTransaction<'a, Self, T, CHANNEL>, Error>
where T: From<u32> + Copy,
Self: Sized { ... }
}
Provided Methods§
sourcefn receive<T, 'a>(
self,
data: &'a mut [T]
) -> Result<RxTransaction<'a, Self, T, CHANNEL>, Error>where
T: From<u32> + Copy,
Self: Sized,
fn receive<T, 'a>( self, data: &'a mut [T] ) -> Result<RxTransaction<'a, Self, T, CHANNEL>, Error>where T: From<u32> + Copy, Self: Sized,
Start receiving pulse codes into the given buffer. This returns a RxTransaction which can be used to wait for receive to complete and get back the channel for further use. The length of the received data cannot exceed the allocated RMT RAM.
Object Safety§
This trait is not object safe.