pub fn end_dst(&mut self) -> Result<(), DstError> {
        self.calendar_initialized()
            .ok_or(DstError::ClockNotInitialized)?;
        if self.reg.cr.read().bkp().bit_is_clear() {
            return Err(DstError::AlreadyStandardTime);
        }
        let time = self.reg.tr.read();
        if time.ht().bits() == 0 && time.hu().bits() == 0 {
            return Err(DstError::CannotSubtract);
        }
        self.reg
            .cr
            .modify(|_, w| w.sub1h().set_bit().bkp().clear_bit());
        Ok(())
    }
/// End Daylight Savings Time
///
/// Subtracts an hour from the stored time and sets the stored DST status.
/// Returns an error if the clock has not been initialized, if the stored DST status
/// indicates it is already standard time, or if we cannot subtract an hour because
/// it is not at least one hour past midnight.
End Daylight Savings Time
Subtracts an hour from the stored time and sets the stored DST status.
Returns an error if the clock has not been initialized, if the stored DST status
indicates it is already standard time, or if we cannot subtract an hour because
it is not at least one hour past midnight.
End Daylight Savings Time Subtracts an hour from the stored time and sets the stored DST status . Returns an error if the clock has not been initialized if the stored DST status indicates it is already standard time or if we cannot subtract an hour because it is not at least one hour past midnight .
pub fn end_dst(&mut self) -> Result<(), DstError> {
        self.calendar_initialized()
            .ok_or(DstError::ClockNotInitialized)?;
        if self.reg.cr.read().bkp().bit_is_clear() {
            return Err(DstError::AlreadyStandardTime);
        }
        let time = self.reg.tr.read();
        if time.ht().bits() == 0 && time.hu().bits() == 0 {
            return Err(DstError::CannotSubtract);
        }
        self.reg
            .cr
            .modify(|_, w| w.sub1h().set_bit().bkp().clear_bit());
        Ok(())
    }
pub fn end_dst ( & mut self ) -> Result < ( ) , DstError > { self . calendar_initialized ( ) . ok_or ( DstError :: ClockNotInitialized ) ? ; if self . reg . cr . read ( ) . bkp ( ) . bit_is_clear ( ) { return Err ( DstError :: AlreadyStandardTime ) ; } let time = self . reg . tr . read ( ) ; if time . ht ( ) . bits ( ) == 0 && time . hu ( ) . bits ( ) == 0 { return Err ( DstError :: CannotSubtract ) ; } self . reg . cr . modify ( | _ , w | w . sub1h ( ) . set_bit ( ) . bkp ( ) . clear_bit ( ) ) ; Ok ( ( ) ) }
End Daylight Savings Time
Subtracts an hour from the stored time and sets the stored DST status.
End Daylight Savings Time Subtracts an hour from the stored time and sets the stored DST status .
&mut self
&mut self