1#[doc = "Reader of register SR1"]
2pub type R = crate::R<u32, super::SR1>;
3#[doc = "Reader of field `WUFI`"]
4pub type WUFI_R = crate::R<bool, bool>;
5#[doc = "Reader of field `C2HF`"]
6pub type C2HF_R = crate::R<bool, bool>;
7#[doc = "Reader of field `AF802`"]
8pub type AF802_R = crate::R<bool, bool>;
9#[doc = "Reader of field `BLEAF`"]
10pub type BLEAF_R = crate::R<bool, bool>;
11#[doc = "Reader of field `CRPEF`"]
12pub type CRPEF_R = crate::R<bool, bool>;
13#[doc = "Reader of field `802WUF`"]
14pub type _802WUF_R = crate::R<bool, bool>;
15#[doc = "Reader of field `BLEWUF`"]
16pub type BLEWUF_R = crate::R<bool, bool>;
17#[doc = "Reader of field `BORHF`"]
18pub type BORHF_R = crate::R<bool, bool>;
19#[doc = "Reader of field `SDFBF`"]
20pub type SDFBF_R = crate::R<bool, bool>;
21#[doc = "Reader of field `CWUF5`"]
22pub type CWUF5_R = crate::R<bool, bool>;
23#[doc = "Reader of field `CWUF4`"]
24pub type CWUF4_R = crate::R<bool, bool>;
25#[doc = "Reader of field `CWUF3`"]
26pub type CWUF3_R = crate::R<bool, bool>;
27#[doc = "Reader of field `CWUF2`"]
28pub type CWUF2_R = crate::R<bool, bool>;
29#[doc = "Reader of field `CWUF1`"]
30pub type CWUF1_R = crate::R<bool, bool>;
31impl R {
32 #[doc = "Bit 15 - Internal Wakeup interrupt flag"]
33 #[inline(always)]
34 pub fn wufi(&self) -> WUFI_R {
35 WUFI_R::new(((self.bits >> 15) & 0x01) != 0)
36 }
37 #[doc = "Bit 14 - CPU2 Hold interrupt flag"]
38 #[inline(always)]
39 pub fn c2hf(&self) -> C2HF_R {
40 C2HF_R::new(((self.bits >> 14) & 0x01) != 0)
41 }
42 #[doc = "Bit 13 - 802.15.4 end of activity interrupt flag"]
43 #[inline(always)]
44 pub fn af802(&self) -> AF802_R {
45 AF802_R::new(((self.bits >> 13) & 0x01) != 0)
46 }
47 #[doc = "Bit 12 - BLE end of activity interrupt flag"]
48 #[inline(always)]
49 pub fn bleaf(&self) -> BLEAF_R {
50 BLEAF_R::new(((self.bits >> 12) & 0x01) != 0)
51 }
52 #[doc = "Bit 11 - Enable critical radio phase end of activity interrupt flag"]
53 #[inline(always)]
54 pub fn crpef(&self) -> CRPEF_R {
55 CRPEF_R::new(((self.bits >> 11) & 0x01) != 0)
56 }
57 #[doc = "Bit 10 - 802.15.4 wakeup interrupt flag"]
58 #[inline(always)]
59 pub fn _802wuf(&self) -> _802WUF_R {
60 _802WUF_R::new(((self.bits >> 10) & 0x01) != 0)
61 }
62 #[doc = "Bit 9 - BLE wakeup interrupt flag"]
63 #[inline(always)]
64 pub fn blewuf(&self) -> BLEWUF_R {
65 BLEWUF_R::new(((self.bits >> 9) & 0x01) != 0)
66 }
67 #[doc = "Bit 8 - BORH interrupt flag"]
68 #[inline(always)]
69 pub fn borhf(&self) -> BORHF_R {
70 BORHF_R::new(((self.bits >> 8) & 0x01) != 0)
71 }
72 #[doc = "Bit 7 - Step Down converter forced in Bypass interrupt flag"]
73 #[inline(always)]
74 pub fn sdfbf(&self) -> SDFBF_R {
75 SDFBF_R::new(((self.bits >> 7) & 0x01) != 0)
76 }
77 #[doc = "Bit 4 - Wakeup flag 5"]
78 #[inline(always)]
79 pub fn cwuf5(&self) -> CWUF5_R {
80 CWUF5_R::new(((self.bits >> 4) & 0x01) != 0)
81 }
82 #[doc = "Bit 3 - Wakeup flag 4"]
83 #[inline(always)]
84 pub fn cwuf4(&self) -> CWUF4_R {
85 CWUF4_R::new(((self.bits >> 3) & 0x01) != 0)
86 }
87 #[doc = "Bit 2 - Wakeup flag 3"]
88 #[inline(always)]
89 pub fn cwuf3(&self) -> CWUF3_R {
90 CWUF3_R::new(((self.bits >> 2) & 0x01) != 0)
91 }
92 #[doc = "Bit 1 - Wakeup flag 2"]
93 #[inline(always)]
94 pub fn cwuf2(&self) -> CWUF2_R {
95 CWUF2_R::new(((self.bits >> 1) & 0x01) != 0)
96 }
97 #[doc = "Bit 0 - Wakeup flag 1"]
98 #[inline(always)]
99 pub fn cwuf1(&self) -> CWUF1_R {
100 CWUF1_R::new((self.bits & 0x01) != 0)
101 }
102}