Struct esp32c2_hal::ledc::channel::Channel
source · pub struct Channel<'a, S, O>where
S: TimerSpeed,
O: OutputPin,{ /* private fields */ }
Expand description
Channel struct
Implementations§
source§impl<'a, S, O> Channel<'a, S, O>where
S: TimerSpeed,
O: OutputPin,
impl<'a, S, O> Channel<'a, S, O>where S: TimerSpeed, O: OutputPin,
sourcepub fn new(
number: Number,
output_pin: impl Peripheral<P = O> + 'a
) -> Channel<'a, S, O>
pub fn new( number: Number, output_pin: impl Peripheral<P = O> + 'a ) -> Channel<'a, S, O>
Return a new channel
Trait Implementations§
source§impl<'a, O> ChannelHW<O> for Channel<'a, LowSpeed, O>where
O: OutputPin,
impl<'a, O> ChannelHW<O> for Channel<'a, LowSpeed, O>where O: OutputPin,
Channel HW interface for LowSpeed channels
source§fn set_duty_hw(&self, duty: u32)
fn set_duty_hw(&self, duty: u32)
Set duty in channel HW