Struct esp32c2_hal::ledc::LEDC
source · pub struct LEDC<'a> { /* private fields */ }
Expand description
LEDC (LED PWM Controller)
Implementations
sourceimpl<'a> LEDC<'a>
impl<'a> LEDC<'a>
sourcepub fn new(
_instance: LEDC,
clock_control_config: &'a Clocks,
system: &mut PeripheralClockControl
) -> LEDC<'a>
pub fn new(
_instance: LEDC,
clock_control_config: &'a Clocks,
system: &mut PeripheralClockControl
) -> LEDC<'a>
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 get_timer<S>(&self, number: Number) -> Timer<'_, S>where
S: TimerSpeed,
pub fn get_timer<S>(&self, number: Number) -> Timer<'_, S>where
S: TimerSpeed,
Return a new timer
sourcepub fn get_channel<S, O>(
&self,
number: Number,
output_pin: O
) -> Channel<'_, S, O>where
S: TimerSpeed,
O: OutputPin,
pub fn get_channel<S, O>(
&self,
number: Number,
output_pin: O
) -> Channel<'_, S, O>where
S: TimerSpeed,
O: OutputPin,
Return a new channel
Auto Trait Implementations
impl<'a> !RefUnwindSafe for LEDC<'a>
impl<'a> !Send for LEDC<'a>
impl<'a> !Sync for LEDC<'a>
impl<'a> Unpin for LEDC<'a>
impl<'a> !UnwindSafe for LEDC<'a>
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more