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
Trait Implementations
sourceimpl<'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
sourcefn configure_hw(&mut self) -> Result<(), Error>
fn configure_hw(&mut self) -> Result<(), Error>
Configure Channel HW
sourcefn set_duty_hw(&self, duty: u32)
fn set_duty_hw(&self, duty: u32)
Set duty in channel HW
sourceimpl<'a, S, O> ChannelIFace<'a, S, O> for Channel<'a, S, O>where
S: TimerSpeed,
O: OutputPin,
Channel<'a, S, O>: ChannelHW<O>,
impl<'a, S, O> ChannelIFace<'a, S, O> for Channel<'a, S, O>where
S: TimerSpeed,
O: OutputPin,
Channel<'a, S, O>: ChannelHW<O>,
Auto Trait Implementations
impl<'a, S, O> !RefUnwindSafe for Channel<'a, S, O>
impl<'a, S, O> !Send for Channel<'a, S, O>
impl<'a, S, O> !Sync for Channel<'a, S, O>
impl<'a, S, O> Unpin for Channel<'a, S, O>where
O: Unpin,
impl<'a, S, O> !UnwindSafe for Channel<'a, S, O>
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