stm32f1_staging/stm32f100/rtc/
alrh.rs

1///Register `ALRH` writer
2pub type W = crate::W<ALRHrs>;
3///Field `ALRH` writer - RTC alarm register high
4pub type ALRH_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16, crate::Safe>;
5impl core::fmt::Debug for crate::generic::Reg<ALRHrs> {
6    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
7        write!(f, "(not readable)")
8    }
9}
10impl W {
11    ///Bits 0:15 - RTC alarm register high
12    #[inline(always)]
13    pub fn alrh(&mut self) -> ALRH_W<ALRHrs> {
14        ALRH_W::new(self, 0)
15    }
16}
17/**RTC Alarm Register High
18
19You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`alrh::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
20
21See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F100.html#RTC:ALRH)*/
22pub struct ALRHrs;
23impl crate::RegisterSpec for ALRHrs {
24    type Ux = u32;
25}
26///`write(|w| ..)` method takes [`alrh::W`](W) writer structure
27impl crate::Writable for ALRHrs {
28    type Safety = crate::Unsafe;
29    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
30    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
31}
32///`reset()` method sets ALRH to value 0xffff
33impl crate::Resettable for ALRHrs {
34    const RESET_VALUE: u32 = 0xffff;
35}