pub fn init(
        self,
        clocks: &mut GenericClockController,
        tcc0: TCC0,
        mclk: &mut MCLK,
    ) -> Tcc0Pwm<BuzzerCtrlId, BuzzerCtrlMode> {
        let pinout = TCC0Pinout::Pd11(self.ctr);

        let gclk0 = clocks.gclk0();
        let pwm0 = Tcc0Pwm::new(
            &clocks.tcc0_tcc1(&gclk0).unwrap(),
            1.khz(),
            tcc0,
            pinout,
            mclk,
        );

        pwm0
    }
/// Initialize the pin connected to the piezo buzzer. Configure the pin as a
/// PWM output using TCC0, and return the Pwm instance.
Initialize the pin connected to the piezo buzzer. Configure the pin as a
PWM output using TCC0, and return the Pwm instance.
Initialize the pin connected to the piezo buzzer . Configure the pin as a PWM output using TCC0 and return the Pwm instance .
pub fn init(
        self,
        clocks: &mut GenericClockController,
        tcc0: TCC0,
        mclk: &mut MCLK,
    ) -> Tcc0Pwm<BuzzerCtrlId, BuzzerCtrlMode> {
        let pinout = TCC0Pinout::Pd11(self.ctr);
        let gclk0 = clocks.gclk0();
        let pwm0 = Tcc0Pwm::new(
            &clocks.tcc0_tcc1(&gclk0).unwrap(),
            1.khz(),
            tcc0,
            pinout,
            mclk,
        );
        pwm0
    }
pub fn init ( self , clocks : & mut GenericClockController , tcc0 : TCC0 , mclk : & mut MCLK , ) -> Tcc0Pwm < BuzzerCtrlId , BuzzerCtrlMode > { let pinout = TCC0Pinout :: Pd11 ( self . ctr ) ; let gclk0 = clocks . gclk0 ( ) ; let pwm0 = Tcc0Pwm :: new ( & clocks . tcc0_tcc1 ( & gclk0 ) . unwrap ( ) , 1 . khz ( ) , tcc0 , pinout , mclk , ) ; pwm0 }
Initialize the pin connected to the piezo buzzer.
Initialize the pin connected to the piezo buzzer .
self
clocks
&mut GenericClockController
tcc0
TCC0
mclk
&mut MCLK
self
clocks
&mut GenericClockController
tcc0
TCC0
mclk
&mut MCLK