Struct esp32_hal::pulse_control::Channel4
source · pub struct Channel4 { /* private fields */ }
Expand description
RX/TX Input/Output Channel
Implementations§
Trait Implementations§
source§impl OutputChannel<ConfiguredChannel4> for Channel4
impl OutputChannel<ConfiguredChannel4> for Channel4
source§fn set_idle_output_level(&mut self, level: bool) -> &mut Channel4
fn set_idle_output_level(&mut self, level: bool) -> &mut Channel4
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 Channel4
fn set_idle_output(&mut self, state: bool) -> &mut Channel4
Enable/Disable the output while the channel is idle
source§fn set_channel_divider(&mut self, divider: u8) -> &mut Channel4
fn set_channel_divider(&mut self, divider: u8) -> &mut Channel4
Set channel clock divider value
source§fn set_carrier_modulation(&mut self, state: bool) -> &mut Channel4
fn set_carrier_modulation(&mut self, state: bool) -> &mut Channel4
Enable/Disable carrier modulation
source§fn set_clock_source(&mut self, source: ClockSource) -> &mut Channel4
fn set_clock_source(&mut self, source: ClockSource) -> &mut Channel4
Set the clock source (for the ESP32-S2 and ESP32 this can be done on a channel level)
source§fn assign_pin<RmtPin>(self, pin: RmtPin) -> ConfiguredChannel4where
RmtPin: OutputPin,
fn assign_pin<RmtPin>(self, pin: RmtPin) -> ConfiguredChannel4where
RmtPin: OutputPin,
Assign a pin that should be driven by this channel