pub fn enable_restart_and_disable(&mut self) -> Result<(), Error<E>> {
        let config = self.config.with_high(BitFlagMode1::Sleep);
        self.write_mode1(config.with_high(BitFlagMode1::Restart))?;
        // Do not store restart bit high as writing this bit high again
        // would internally clear it to 0. Writing 0 has no effect.
        self.config = config;
        Ok(())
    }
/// Put the controller to sleep while keeping the PWM register
/// contents in preparation for a future restart.
Put the controller to sleep while keeping the PWM register
contents in preparation for a future restart.
Put the controller to sleep while keeping the PWM register contents in preparation for a future restart .
pub fn enable_restart_and_disable(&mut self) -> Result<(), Error<E>> {
        let config = self.config.with_high(BitFlagMode1::Sleep);
        self.write_mode1(config.with_high(BitFlagMode1::Restart))?;
        // Do not store restart bit high as writing this bit high again
        // would internally clear it to 0. Writing 0 has no effect.
        self.config = config;
        Ok(())
    }
pub fn enable_restart_and_disable ( & mut self ) -> Result < ( ) , Error < E > > { let config = self . config . with_high ( BitFlagMode1 :: Sleep ) ; self . write_mode1 ( config . with_high ( BitFlagMode1 :: Restart ) ) ? ; // Do not store restart bit high as writing this bit high again // would internally clear it to 0. Writing 0 has no effect. self . config = config ; Ok ( ( ) ) }
Put the controller to sleep while keeping the PWM register
contents in preparation for a future restart.
Put the controller to sleep while keeping the PWM register contents in preparation for a future restart .
&mut self
&mut self