Struct esp32c3_hal::pulse_control::Channel1
source · pub struct Channel1 { /* private fields */ }
Expand description
RX/TX Input/Output Channel
Implementations§
Trait Implementations§
source§impl OutputChannel for Channel1
impl OutputChannel for Channel1
source§fn set_idle_output_level(&mut self, level: bool) -> &mut Channel1
fn set_idle_output_level(&mut self, level: bool) -> &mut Channel1
Set the logical level that the connected pin is pulled to while the channel is idle
source§fn set_idle_output(&mut self, state: bool) -> &mut Channel1
fn set_idle_output(&mut self, state: bool) -> &mut Channel1
Enable/Disable the output while the channel is idle
source§fn set_channel_divider(&mut self, divider: u8) -> &mut Channel1
fn set_channel_divider(&mut self, divider: u8) -> &mut Channel1
Set channel clock divider value
source§fn set_carrier_modulation(&mut self, state: bool) -> &mut Channel1
fn set_carrier_modulation(&mut self, state: bool) -> &mut Channel1
Enable/Disable carrier modulation
source§fn assign_pin<'d, RmtPin>(
self,
pin: impl Peripheral<P = RmtPin> + 'd
) -> ConfiguredChannel1<'d, RmtPin>where
RmtPin: OutputPin,
fn assign_pin<'d, RmtPin>( self, pin: impl Peripheral<P = RmtPin> + 'd ) -> ConfiguredChannel1<'d, RmtPin>where RmtPin: OutputPin,
Assign a pin that should be driven by this channel
§type ConfiguredChannel<'d, P: OutputPin + 'd> = ConfiguredChannel1<'d, P>
type ConfiguredChannel<'d, P: OutputPin + 'd> = ConfiguredChannel1<'d, P>
Output channel type
Auto Trait Implementations§
impl RefUnwindSafe for Channel1
impl Send for Channel1
impl Sync for Channel1
impl Unpin for Channel1
impl UnwindSafe for Channel1
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