Struct esp32c3_hal::rmt::Channel0
source · #[non_exhaustive]pub struct Channel0<const CHANNEL: u8> {}
Expand description
RMT Channel 0
Trait Implementations§
source§impl<const CHANNEL: u8> TxChannel<CHANNEL> for Channel0<CHANNEL>
impl<const CHANNEL: u8> TxChannel<CHANNEL> for Channel0<CHANNEL>
source§fn transmit<T, 'a>(
self,
data: &'a [T]
) -> SingleShotTxTransaction<'a, Self, T, CHANNEL>where
T: Into<u32> + Copy,
Self: Sized,
fn transmit<T, 'a>( self, data: &'a [T] ) -> SingleShotTxTransaction<'a, Self, T, CHANNEL>where T: Into<u32> + Copy, Self: Sized,
Start transmitting the given pulse code sequence.
This returns a
SingleShotTxTransaction
which can be used to wait for
the transaction to complete and get back the channel for further
use.source§fn transmit_continuously<T, 'a>(
self,
data: &'a [T]
) -> Result<ContinuousTxTransaction<Self, CHANNEL>, Error>where
T: Into<u32> + Copy,
Self: Sized,
fn transmit_continuously<T, 'a>( self, data: &'a [T] ) -> Result<ContinuousTxTransaction<Self, CHANNEL>, Error>where T: Into<u32> + Copy, Self: Sized,
Start transmitting the given pulse code continuously.
This returns a
ContinuousTxTransaction
which can be used to stop the
ongoing transmission and get back the channel for further use.
The length of sequence cannot exceed the size of the allocated RMT RAM.source§fn transmit_continuously_with_loopcount<T, 'a>(
self,
loopcount: u16,
data: &'a [T]
) -> Result<ContinuousTxTransaction<Self, CHANNEL>, Error>where
T: Into<u32> + Copy,
Self: Sized,
fn transmit_continuously_with_loopcount<T, 'a>( self, loopcount: u16, data: &'a [T] ) -> Result<ContinuousTxTransaction<Self, CHANNEL>, Error>where T: Into<u32> + Copy, Self: Sized,
Like
Self::transmit_continuously
but also sets a loop count.
ContinuousTxTransaction
can be used to check if the loop count is
reached.Auto Trait Implementations§
impl<const CHANNEL: u8> RefUnwindSafe for Channel0<CHANNEL>
impl<const CHANNEL: u8> Send for Channel0<CHANNEL>
impl<const CHANNEL: u8> Sync for Channel0<CHANNEL>
impl<const CHANNEL: u8> Unpin for Channel0<CHANNEL>
impl<const CHANNEL: u8> UnwindSafe for Channel0<CHANNEL>
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more