Trait esp32_hal::rmt::RxChannel

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

Provided Methods§

source

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

Implementors§

source§

impl<const CHANNEL: u8> RxChannel<CHANNEL> for Channel0<CHANNEL>

source§

impl<const CHANNEL: u8> RxChannel<CHANNEL> for Channel1<CHANNEL>

source§

impl<const CHANNEL: u8> RxChannel<CHANNEL> for Channel2<CHANNEL>

source§

impl<const CHANNEL: u8> RxChannel<CHANNEL> for Channel3<CHANNEL>

source§

impl<const CHANNEL: u8> RxChannel<CHANNEL> for Channel4<CHANNEL>

source§

impl<const CHANNEL: u8> RxChannel<CHANNEL> for Channel5<CHANNEL>

source§

impl<const CHANNEL: u8> RxChannel<CHANNEL> for Channel6<CHANNEL>

source§

impl<const CHANNEL: u8> RxChannel<CHANNEL> for Channel7<CHANNEL>