pub struct Ledc<'d> { /* private fields */ }Expand description
LEDC (LED PWM Controller)
Implementations§
Source§impl<'d> Ledc<'d>
impl<'d> Ledc<'d>
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 PeripheralOutput<'d>,
) -> Channel<'d, S>
pub fn channel<S: TimerSpeed>( &self, number: Number, output_pin: impl PeripheralOutput<'d>, ) -> Channel<'d, S>
Return a new channel
Auto Trait Implementations§
impl<'d> Freeze for Ledc<'d>
impl<'d> !RefUnwindSafe for Ledc<'d>
impl<'d> !Send for Ledc<'d>
impl<'d> !Sync for Ledc<'d>
impl<'d> Unpin for Ledc<'d>
impl<'d> !UnwindSafe for Ledc<'d>
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