Trait RxChannelAsync

Source
pub trait RxChannelAsync {
    // Required method
    async fn receive<T: From<u32> + Copy>(
        &mut self,
        data: &mut [T],
    ) -> Result<(), Error>
       where Self: Sized;
}
Available on crate feature unstable only.
Expand description

RX channel in async mode

Required Methods§

Source

async fn receive<T: From<u32> + Copy>( &mut self, data: &mut [T], ) -> Result<(), Error>
where Self: Sized,

Start receiving a pulse code sequence. The length of sequence cannot exceed the size of the allocated RMT RAM.

Implementors§

Source§

impl<Raw> RxChannelAsync for Channel<Async, Raw>
where Raw: RxChannelInternal,