pub struct Ledc<'d> { /* private fields */ }
Available on crate feature
unstable
only.Expand description
LEDC (LED PWM Controller)
Implementations§
Source§impl<'d> Ledc<'d>
impl<'d> Ledc<'d>
Sourcepub fn new(_instance: impl Peripheral<P = LEDC> + 'd) -> Self
pub fn new(_instance: impl Peripheral<P = LEDC> + 'd) -> Self
Return a new LEDC
Sourcepub fn set_global_slow_clock(&mut self, clock_source: LSGlobalClkSource)
pub fn set_global_slow_clock(&mut self, clock_source: LSGlobalClkSource)
Set global slow clock source
Sourcepub fn timer<S: TimerSpeed>(&self, number: Number) -> Timer<'d, S>
pub fn timer<S: TimerSpeed>(&self, number: Number) -> Timer<'d, S>
Return a new timer
Sourcepub fn channel<S: TimerSpeed>(
&self,
number: Number,
output_pin: impl Peripheral<P = impl PeripheralOutput> + 'd,
) -> Channel<'d, S>
pub fn channel<S: TimerSpeed>( &self, number: Number, output_pin: impl Peripheral<P = impl PeripheralOutput> + 'd, ) -> Channel<'d, S>
Return a new channel