pub fn initialize(self) -> PhaseLockedLoop<Locking, D> {
        // Turn off PLL in case it is already running
        self.device.pwr.reset();
        self.device.fbdiv_int.reset();

        self.device.cs.write(|w| unsafe {
            w.refdiv().bits(self.state.refdiv);
            w
        });

        self.device.fbdiv_int.write(|w| unsafe {
            w.fbdiv_int().bits(self.state.fbdiv);
            w
        });

        // Turn on PLL
        self.device.pwr.modify(|_, w| {
            w.pd().clear_bit();
            w.vcopd().clear_bit();
            w
        });

        let post_div1 = self.state.post_div1;
        let post_div2 = self.state.post_div2;

        self.transition(Locking {
            post_div1,
            post_div2,
        })
    }
/// Configures and starts the PLL : it switches to Locking state.
Configures and starts the PLL : it switches to Locking state.
Configures and starts the PLL : it switches to Locking state .
pub fn initialize(self) -> PhaseLockedLoop<Locking, D> {
        // Turn off PLL in case it is already running
        self.device.pwr.reset();
        self.device.fbdiv_int.reset();
        self.device.cs.write(|w| unsafe {
            w.refdiv().bits(self.state.refdiv);
            w
        });
        self.device.fbdiv_int.write(|w| unsafe {
            w.fbdiv_int().bits(self.state.fbdiv);
            w
        });
        // Turn on PLL
        self.device.pwr.modify(|_, w| {
            w.pd().clear_bit();
            w.vcopd().clear_bit();
            w
        });
        let post_div1 = self.state.post_div1;
        let post_div2 = self.state.post_div2;
        self.transition(Locking {
            post_div1,
            post_div2,
        })
    }
pub fn initialize ( self ) -> PhaseLockedLoop < Locking , D > { // Turn off PLL in case it is already running self . device . pwr . reset ( ) ; self . device . fbdiv_int . reset ( ) ; self . device . cs . write ( | w | unsafe { w . refdiv ( ) . bits ( self . state . refdiv ) ; w } ) ; self . device . fbdiv_int . write ( | w | unsafe { w . fbdiv_int ( ) . bits ( self . state . fbdiv ) ; w } ) ; // Turn on PLL self . device . pwr . modify ( | _ , w | { w . pd ( ) . clear_bit ( ) ; w . vcopd ( ) . clear_bit ( ) ; w } ) ; let post_div1 = self . state . post_div1 ; let post_div2 = self . state . post_div2 ; self . transition ( Locking { post_div1 , post_div2 , } ) }
Configures and starts the PLL : it switches to Locking state.
Configures and starts the PLL : it switches to Locking state .
self
self