pub fn begin_dst(&mut self) -> Result<(), DstError> {
        self.calendar_initialized()
            .ok_or(DstError::ClockNotInitialized)?;
        if self.reg.cr.read().bkp().bit_is_set() {
            return Err(DstError::AlreadyDst);
        }
        self.reg
            .cr
            .modify(|_, w| w.add1h().set_bit().bkp().set_bit());
        Ok(())
    }
/// Begin Daylight Savings Time
///
/// Adds an hour to the stored time and sets the stored DST status.
/// Returns an error if the clock has not been initialized, or if the stored DST status
/// indicates it has already begun.
Begin Daylight Savings Time
Adds an hour to the stored time and sets the stored DST status.
Returns an error if the clock has not been initialized, or if the stored DST status
indicates it has already begun.
Begin Daylight Savings Time Adds an hour to the stored time and sets the stored DST status . Returns an error if the clock has not been initialized or if the stored DST status indicates it has already begun .
pub fn begin_dst(&mut self) -> Result<(), DstError> {
        self.calendar_initialized()
            .ok_or(DstError::ClockNotInitialized)?;
        if self.reg.cr.read().bkp().bit_is_set() {
            return Err(DstError::AlreadyDst);
        }
        self.reg
            .cr
            .modify(|_, w| w.add1h().set_bit().bkp().set_bit());
        Ok(())
    }
pub fn begin_dst ( & mut self ) -> Result < ( ) , DstError > { self . calendar_initialized ( ) . ok_or ( DstError :: ClockNotInitialized ) ? ; if self . reg . cr . read ( ) . bkp ( ) . bit_is_set ( ) { return Err ( DstError :: AlreadyDst ) ; } self . reg . cr . modify ( | _ , w | w . add1h ( ) . set_bit ( ) . bkp ( ) . set_bit ( ) ) ; Ok ( ( ) ) }
Begin Daylight Savings Time
Adds an hour to the stored time and sets the stored DST status.
Begin Daylight Savings Time Adds an hour to the stored time and sets the stored DST status .
&mut self
&mut self