pub fn restart(&mut self, delay: &mut impl DelayUs<u16>) -> Result<(), Error<E>> {
        let mode1 = self.read_register(Register::MODE1)?;
        if (mode1 & BitFlagMode1::Restart as u8) != 0 {
            self.enable()?;
            delay.delay_us(500_u16);
            let previous = self.config;
            let config = previous.with_high(BitFlagMode1::Restart);
            self.write_mode1(config)?;
            self.config = previous;
        }
        Ok(())
    }
/// Re-enable the controller after a sleep with restart enabled so that
/// previously active PWM channels are restarted.
///
/// This includes a delay of 500us in order for the oscillator to stabilize.
/// If you cannot afford a 500us delay you can use `restart_nonblocking()`.
Re-enable the controller after a sleep with restart enabled so that
previously active PWM channels are restarted.

This includes a delay of 500us in order for the oscillator to stabilize.
If you cannot afford a 500us delay you can use `restart_nonblocking()`.
Re - enable the controller after a sleep with restart enabled so that previously active PWM channels are restarted . This includes a delay of 500us in order for the oscillator to stabilize . If you cannot afford a 500us delay you can use ` restart_nonblocking () ` .
pub fn restart(&mut self, delay: &mut impl DelayUs<u16>) -> Result<(), Error<E>> {
        let mode1 = self.read_register(Register::MODE1)?;
        if (mode1 & BitFlagMode1::Restart as u8) != 0 {
            self.enable()?;
            delay.delay_us(500_u16);
            let previous = self.config;
            let config = previous.with_high(BitFlagMode1::Restart);
            self.write_mode1(config)?;
            self.config = previous;
        }
        Ok(())
    }
pub fn restart ( & mut self , delay : & mut impl DelayUs < u16 > ) -> Result < ( ) , Error < E > > { let mode1 = self . read_register ( Register :: MODE1 ) ? ; if ( mode1 & BitFlagMode1 :: Restart as u8 ) != 0 { self . enable ( ) ? ; delay . delay_us ( 500_u16 ) ; let previous = self . config ; let config = previous . with_high ( BitFlagMode1 :: Restart ) ; self . write_mode1 ( config ) ? ; self . config = previous ; } Ok ( ( ) ) }
Re-enable the controller after a sleep with restart enabled so that
previously active PWM channels are restarted.
Re - enable the controller after a sleep with restart enabled so that previously active PWM channels are restarted .
&mut self
delay
&mut impl DelayUs<u16>
&mut self
delay
&mut impl DelayUs<u16>