stm32l0/stm32l0x2/rtc/
or.rs1pub type R = crate::R<ORrs>;
3pub type W = crate::W<ORrs>;
5pub type RTC_ALARM_TYPE_R = crate::BitReader;
7pub type RTC_ALARM_TYPE_W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type RTC_OUT_RMP_R = crate::BitReader;
11pub type RTC_OUT_RMP_W<'a, REG> = crate::BitWriter<'a, REG>;
13impl R {
14 #[inline(always)]
16 pub fn rtc_alarm_type(&self) -> RTC_ALARM_TYPE_R {
17 RTC_ALARM_TYPE_R::new((self.bits & 1) != 0)
18 }
19 #[inline(always)]
21 pub fn rtc_out_rmp(&self) -> RTC_OUT_RMP_R {
22 RTC_OUT_RMP_R::new(((self.bits >> 1) & 1) != 0)
23 }
24}
25impl core::fmt::Debug for R {
26 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
27 f.debug_struct("OR")
28 .field("rtc_out_rmp", &self.rtc_out_rmp())
29 .field("rtc_alarm_type", &self.rtc_alarm_type())
30 .finish()
31 }
32}
33impl W {
34 #[inline(always)]
36 pub fn rtc_alarm_type(&mut self) -> RTC_ALARM_TYPE_W<ORrs> {
37 RTC_ALARM_TYPE_W::new(self, 0)
38 }
39 #[inline(always)]
41 pub fn rtc_out_rmp(&mut self) -> RTC_OUT_RMP_W<ORrs> {
42 RTC_OUT_RMP_W::new(self, 1)
43 }
44}
45pub struct ORrs;
51impl crate::RegisterSpec for ORrs {
52 type Ux = u32;
53}
54impl crate::Readable for ORrs {}
56impl crate::Writable for ORrs {
58 type Safety = crate::Unsafe;
59}
60impl crate::Resettable for ORrs {}