Struct esp32c3_hal::pulse_control::ConfiguredChannel0
source · pub struct ConfiguredChannel0<'d, P> { /* private fields */ }
Expand description
Wrapper forChannel0
object.
Trait Implementations§
source§impl<'d, P> ConfiguredChannel for ConfiguredChannel0<'d, P>where
P: OutputPin,
impl<'d, P> ConfiguredChannel for ConfiguredChannel0<'d, P>where P: OutputPin,
source§fn send_pulse_sequence<const N: usize>(
&mut self,
repeat_mode: RepeatMode,
sequence: &[PulseCode; N]
) -> Result<(), TransmissionError>
fn send_pulse_sequence<const N: usize>( &mut self, repeat_mode: RepeatMode, sequence: &[PulseCode; N] ) -> Result<(), TransmissionError>
Send a pulse sequence in a blocking fashion
source§fn send_pulse_sequence_raw<const N: usize>(
&mut self,
repeat_mode: RepeatMode,
sequence: &[u32; N]
) -> Result<(), TransmissionError>
fn send_pulse_sequence_raw<const N: usize>( &mut self, repeat_mode: RepeatMode, sequence: &[u32; N] ) -> Result<(), TransmissionError>
Send a raw pulse sequence in a blocking fashion
In this function we expect the sequence
elements to be already
in the correct u32 format that is understood by the RMT.
Please refer to the reference manual or use the variant which
accepts PulseCode
objects instead.
We expect that the end marker is already part of the provided sequence and to be provided in all modes!
source§fn stop_transmission(&self)
fn stop_transmission(&self)
Stop any ongoing (repetitive) transmission
This function needs to be called to stop sending when
previously a sequence was sent with RepeatMode::Forever
.