Trait esp32c2_hal::ledc::channel::ChannelIFace
source · pub trait ChannelIFace<'a, S, O>where
S: 'a + TimerSpeed,
O: OutputPin,
Channel<'a, S, O>: ChannelHW<O>,{
fn configure(&mut self, config: Config<'a, S>) -> Result<(), Error>;
fn set_duty(&self, duty_pct: u8) -> Result<(), Error>;
}
Expand description
Channel interface