xmc4700/rtc/
rawstat.rs

1#[doc = "Register `RAWSTAT` reader"]
2pub type R = crate::R<RAWSTAT_SPEC>;
3#[doc = "Field `RPSE` reader - Raw Periodic Seconds Service Request"]
4pub type RPSE_R = crate::BitReader;
5#[doc = "Field `RPMI` reader - Raw Periodic Minutes Service Request"]
6pub type RPMI_R = crate::BitReader;
7#[doc = "Field `RPHO` reader - Raw Periodic Hours Service Request"]
8pub type RPHO_R = crate::BitReader;
9#[doc = "Field `RPDA` reader - Raw Periodic Days Service Request"]
10pub type RPDA_R = crate::BitReader;
11#[doc = "Field `RPMO` reader - Raw Periodic Months Service Request"]
12pub type RPMO_R = crate::BitReader;
13#[doc = "Field `RPYE` reader - Raw Periodic Years Service Request"]
14pub type RPYE_R = crate::BitReader;
15#[doc = "Field `RAI` reader - Raw Alarm Service Request"]
16pub type RAI_R = crate::BitReader;
17impl R {
18    #[doc = "Bit 0 - Raw Periodic Seconds Service Request"]
19    #[inline(always)]
20    pub fn rpse(&self) -> RPSE_R {
21        RPSE_R::new((self.bits & 1) != 0)
22    }
23    #[doc = "Bit 1 - Raw Periodic Minutes Service Request"]
24    #[inline(always)]
25    pub fn rpmi(&self) -> RPMI_R {
26        RPMI_R::new(((self.bits >> 1) & 1) != 0)
27    }
28    #[doc = "Bit 2 - Raw Periodic Hours Service Request"]
29    #[inline(always)]
30    pub fn rpho(&self) -> RPHO_R {
31        RPHO_R::new(((self.bits >> 2) & 1) != 0)
32    }
33    #[doc = "Bit 3 - Raw Periodic Days Service Request"]
34    #[inline(always)]
35    pub fn rpda(&self) -> RPDA_R {
36        RPDA_R::new(((self.bits >> 3) & 1) != 0)
37    }
38    #[doc = "Bit 5 - Raw Periodic Months Service Request"]
39    #[inline(always)]
40    pub fn rpmo(&self) -> RPMO_R {
41        RPMO_R::new(((self.bits >> 5) & 1) != 0)
42    }
43    #[doc = "Bit 6 - Raw Periodic Years Service Request"]
44    #[inline(always)]
45    pub fn rpye(&self) -> RPYE_R {
46        RPYE_R::new(((self.bits >> 6) & 1) != 0)
47    }
48    #[doc = "Bit 8 - Raw Alarm Service Request"]
49    #[inline(always)]
50    pub fn rai(&self) -> RAI_R {
51        RAI_R::new(((self.bits >> 8) & 1) != 0)
52    }
53}
54#[doc = "RTC Raw Service Request Register\n\nYou can [`read`](crate::Reg::read) this register and get [`rawstat::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
55pub struct RAWSTAT_SPEC;
56impl crate::RegisterSpec for RAWSTAT_SPEC {
57    type Ux = u32;
58}
59#[doc = "`read()` method returns [`rawstat::R`](R) reader structure"]
60impl crate::Readable for RAWSTAT_SPEC {}
61#[doc = "`reset()` method sets RAWSTAT to value 0"]
62impl crate::Resettable for RAWSTAT_SPEC {
63    const RESET_VALUE: u32 = 0;
64}