Trait RxChannel

Source
pub trait RxChannel: RxChannelInternal {
    // Provided method
    fn receive(self, data: &mut [u32]) -> Result<RxTransaction<'_, Self>, Error>
       where Self: Sized { ... }
}
Available on crate feature unstable only.
Expand description

Channel is RX mode

Provided Methods§

Source

fn receive(self, data: &mut [u32]) -> Result<RxTransaction<'_, Self>, Error>
where 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.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§