Trait esp32_hal::rmt::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.

Object Safety§

This trait is not object safe.

Implementors§

source§

impl RxChannel<0> for Channel<0>

source§

impl RxChannel<1> for Channel<1>

source§

impl RxChannel<2> for Channel<2>

source§

impl RxChannel<3> for Channel<3>

source§

impl RxChannel<4> for Channel<4>

source§

impl RxChannel<5> for Channel<5>

source§

impl RxChannel<6> for Channel<6>

source§

impl RxChannel<7> for Channel<7>