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
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
#[doc = "Register `SR1` reader"]
pub struct R(crate::R<SR1_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<SR1_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<SR1_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<SR1_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `WUFI` reader - Internal Wakeup interrupt flag"]
pub type WUFI_R = crate::BitReader<bool>;
#[doc = "Field `C2HF` reader - CPU2 Hold interrupt flag"]
pub type C2HF_R = crate::BitReader<bool>;
#[doc = "Field `AF802` reader - 802.15.4 end of activity interrupt flag"]
pub type AF802_R = crate::BitReader<bool>;
#[doc = "Field `BLEAF` reader - BLE end of activity interrupt flag"]
pub type BLEAF_R = crate::BitReader<bool>;
#[doc = "Field `CRPEF` reader - Enable critical radio phase end of activity interrupt flag"]
pub type CRPEF_R = crate::BitReader<bool>;
#[doc = "Field `_802WUF` reader - 802.15.4 wakeup interrupt flag"]
pub type _802WUF_R = crate::BitReader<bool>;
#[doc = "Field `BLEWUF` reader - BLE wakeup interrupt flag"]
pub type BLEWUF_R = crate::BitReader<bool>;
#[doc = "Field `BORHF` reader - BORH interrupt flag"]
pub type BORHF_R = crate::BitReader<bool>;
#[doc = "Field `SDFBF` reader - Step Down converter forced in Bypass interrupt flag"]
pub type SDFBF_R = crate::BitReader<bool>;
#[doc = "Field `CWUF5` reader - Wakeup flag 5"]
pub type CWUF5_R = crate::BitReader<bool>;
#[doc = "Field `CWUF4` reader - Wakeup flag 4"]
pub type CWUF4_R = crate::BitReader<bool>;
#[doc = "Field `CWUF3` reader - Wakeup flag 3"]
pub type CWUF3_R = crate::BitReader<bool>;
#[doc = "Field `CWUF2` reader - Wakeup flag 2"]
pub type CWUF2_R = crate::BitReader<bool>;
#[doc = "Field `CWUF1` reader - Wakeup flag 1"]
pub type CWUF1_R = crate::BitReader<bool>;
impl R {
    #[doc = "Bit 15 - Internal Wakeup interrupt flag"]
    #[inline(always)]
    pub fn wufi(&self) -> WUFI_R {
        WUFI_R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 14 - CPU2 Hold interrupt flag"]
    #[inline(always)]
    pub fn c2hf(&self) -> C2HF_R {
        C2HF_R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 13 - 802.15.4 end of activity interrupt flag"]
    #[inline(always)]
    pub fn af802(&self) -> AF802_R {
        AF802_R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 12 - BLE end of activity interrupt flag"]
    #[inline(always)]
    pub fn bleaf(&self) -> BLEAF_R {
        BLEAF_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 11 - Enable critical radio phase end of activity interrupt flag"]
    #[inline(always)]
    pub fn crpef(&self) -> CRPEF_R {
        CRPEF_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 10 - 802.15.4 wakeup interrupt flag"]
    #[inline(always)]
    pub fn _802wuf(&self) -> _802WUF_R {
        _802WUF_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 9 - BLE wakeup interrupt flag"]
    #[inline(always)]
    pub fn blewuf(&self) -> BLEWUF_R {
        BLEWUF_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 8 - BORH interrupt flag"]
    #[inline(always)]
    pub fn borhf(&self) -> BORHF_R {
        BORHF_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 7 - Step Down converter forced in Bypass interrupt flag"]
    #[inline(always)]
    pub fn sdfbf(&self) -> SDFBF_R {
        SDFBF_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 4 - Wakeup flag 5"]
    #[inline(always)]
    pub fn cwuf5(&self) -> CWUF5_R {
        CWUF5_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 3 - Wakeup flag 4"]
    #[inline(always)]
    pub fn cwuf4(&self) -> CWUF4_R {
        CWUF4_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 2 - Wakeup flag 3"]
    #[inline(always)]
    pub fn cwuf3(&self) -> CWUF3_R {
        CWUF3_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 1 - Wakeup flag 2"]
    #[inline(always)]
    pub fn cwuf2(&self) -> CWUF2_R {
        CWUF2_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 0 - Wakeup flag 1"]
    #[inline(always)]
    pub fn cwuf1(&self) -> CWUF1_R {
        CWUF1_R::new((self.bits & 1) != 0)
    }
}
#[doc = "Power status register 1\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 [sr1](index.html) module"]
pub struct SR1_SPEC;
impl crate::RegisterSpec for SR1_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [sr1::R](R) reader structure"]
impl crate::Readable for SR1_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets SR1 to value 0"]
impl crate::Resettable for SR1_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}