stm32f1/stm32f102/rtc/
divh.rs

1///Register `DIVH` reader
2pub type R = crate::R<DIVHrs>;
3///Field `DIVH` reader - RTC prescaler divider register high
4pub type DIVH_R = crate::FieldReader;
5impl R {
6    ///Bits 0:3 - RTC prescaler divider register high
7    #[inline(always)]
8    pub fn divh(&self) -> DIVH_R {
9        DIVH_R::new((self.bits & 0x0f) as u8)
10    }
11}
12impl core::fmt::Debug for R {
13    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
14        f.debug_struct("DIVH").field("divh", &self.divh()).finish()
15    }
16}
17/**RTC Prescaler Divider Register High
18
19You can [`read`](crate::Reg::read) this register and get [`divh::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
20
21See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F102.html#RTC:DIVH)*/
22pub struct DIVHrs;
23impl crate::RegisterSpec for DIVHrs {
24    type Ux = u32;
25}
26///`read()` method returns [`divh::R`](R) reader structure
27impl crate::Readable for DIVHrs {}
28///`reset()` method sets DIVH to value 0
29impl crate::Resettable for DIVHrs {}