Struct trellis_m4::pwm::Tcc1Pwm
source ·
[−]Implementations
pub fn new<F>(
clock: &Tcc0Tcc1Clock,
freq: F,
tcc: TCC1,
pinout: TCC1Pinout<I, M>,
mclk: &mut MCLK
) -> Tcc1Pwm<I, M> where
F: Into<Hertz>,
Trait Implementations
Returns the current PWM period
Returns the current duty cycle
Returns the maximum duty cycle value
Sets a new duty cycle