Trait RxChannel

Source
pub trait RxChannel: Sized {
    type Raw: RxChannelInternal;

    // Required method
    fn receive(
        self,
        data: &mut [u32],
    ) -> Result<RxTransaction<'_, Self::Raw>, Error>;
}
Available on crate feature unstable only.
Expand description

Channel is RX mode

Required Associated Types§

Source

type Raw: RxChannelInternal

Channel identifier of the implementing channel.

Required Methods§

Source

fn receive( self, data: &mut [u32], ) -> Result<RxTransaction<'_, Self::Raw>, Error>

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<Raw> RxChannel for Channel<Blocking, Raw>
where Raw: RxChannelInternal,

Source§

type Raw = Raw