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