Trait RxChannel

Source
pub trait RxChannel<const CHANNEL: u8>: RxChannelInternal<CHANNEL> {
    // Provided method
    fn receive<'a, T>(
        self,
        data: &'a mut [T],
    ) -> Result<RxTransaction<'a, Self, T, CHANNEL>, Error>
       where T: From<u32> + Copy,
             Self: Sized { ... }
}

Provided Methods§

Source

fn receive<'a, T>( 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.

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§

Source§

impl RxChannel<2> for Channel<2>

Source§

impl RxChannel<3> for Channel<3>