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
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
#[doc = "Register `PRIVCFGR2` reader"]
pub struct R(crate::R<PRIVCFGR2_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<PRIVCFGR2_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<PRIVCFGR2_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<PRIVCFGR2_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `PRIVCFGR2` writer"]
pub struct W(crate::W<PRIVCFGR2_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<PRIVCFGR2_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<PRIVCFGR2_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<PRIVCFGR2_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `PRIV32` reader - PRIV32"]
pub type PRIV32_R = crate::BitReader<bool>;
#[doc = "Field `PRIV32` writer - PRIV32"]
pub type PRIV32_W<'a, const O: u8> = crate::BitWriter<'a, u32, PRIVCFGR2_SPEC, bool, O>;
#[doc = "Field `PRIV33` reader - PRIV33"]
pub type PRIV33_R = crate::BitReader<bool>;
#[doc = "Field `PRIV33` writer - PRIV33"]
pub type PRIV33_W<'a, const O: u8> = crate::BitWriter<'a, u32, PRIVCFGR2_SPEC, bool, O>;
#[doc = "Field `PRIV34` reader - PRIV34"]
pub type PRIV34_R = crate::BitReader<bool>;
#[doc = "Field `PRIV34` writer - PRIV34"]
pub type PRIV34_W<'a, const O: u8> = crate::BitWriter<'a, u32, PRIVCFGR2_SPEC, bool, O>;
#[doc = "Field `PRIV35` reader - PRIV35"]
pub type PRIV35_R = crate::BitReader<bool>;
#[doc = "Field `PRIV35` writer - PRIV35"]
pub type PRIV35_W<'a, const O: u8> = crate::BitWriter<'a, u32, PRIVCFGR2_SPEC, bool, O>;
#[doc = "Field `PRIV36` reader - PRIV36"]
pub type PRIV36_R = crate::BitReader<bool>;
#[doc = "Field `PRIV36` writer - PRIV36"]
pub type PRIV36_W<'a, const O: u8> = crate::BitWriter<'a, u32, PRIVCFGR2_SPEC, bool, O>;
#[doc = "Field `PRIV37` reader - PRIV37"]
pub type PRIV37_R = crate::BitReader<bool>;
#[doc = "Field `PRIV37` writer - PRIV37"]
pub type PRIV37_W<'a, const O: u8> = crate::BitWriter<'a, u32, PRIVCFGR2_SPEC, bool, O>;
#[doc = "Field `PRIV38` reader - PRIV38"]
pub type PRIV38_R = crate::BitReader<bool>;
#[doc = "Field `PRIV38` writer - PRIV38"]
pub type PRIV38_W<'a, const O: u8> = crate::BitWriter<'a, u32, PRIVCFGR2_SPEC, bool, O>;
#[doc = "Field `PRIV39` reader - PRIV39"]
pub type PRIV39_R = crate::BitReader<bool>;
#[doc = "Field `PRIV39` writer - PRIV39"]
pub type PRIV39_W<'a, const O: u8> = crate::BitWriter<'a, u32, PRIVCFGR2_SPEC, bool, O>;
#[doc = "Field `PRIV40` reader - PRIV40"]
pub type PRIV40_R = crate::BitReader<bool>;
#[doc = "Field `PRIV40` writer - PRIV40"]
pub type PRIV40_W<'a, const O: u8> = crate::BitWriter<'a, u32, PRIVCFGR2_SPEC, bool, O>;
#[doc = "Field `PRIV41` reader - PRIV41"]
pub type PRIV41_R = crate::BitReader<bool>;
#[doc = "Field `PRIV41` writer - PRIV41"]
pub type PRIV41_W<'a, const O: u8> = crate::BitWriter<'a, u32, PRIVCFGR2_SPEC, bool, O>;
#[doc = "Field `PRIV42` reader - PRIV42"]
pub type PRIV42_R = crate::BitReader<bool>;
#[doc = "Field `PRIV42` writer - PRIV42"]
pub type PRIV42_W<'a, const O: u8> = crate::BitWriter<'a, u32, PRIVCFGR2_SPEC, bool, O>;
impl R {
    #[doc = "Bit 0 - PRIV32"]
    #[inline(always)]
    pub fn priv32(&self) -> PRIV32_R {
        PRIV32_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - PRIV33"]
    #[inline(always)]
    pub fn priv33(&self) -> PRIV33_R {
        PRIV33_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - PRIV34"]
    #[inline(always)]
    pub fn priv34(&self) -> PRIV34_R {
        PRIV34_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - PRIV35"]
    #[inline(always)]
    pub fn priv35(&self) -> PRIV35_R {
        PRIV35_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - PRIV36"]
    #[inline(always)]
    pub fn priv36(&self) -> PRIV36_R {
        PRIV36_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - PRIV37"]
    #[inline(always)]
    pub fn priv37(&self) -> PRIV37_R {
        PRIV37_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - PRIV38"]
    #[inline(always)]
    pub fn priv38(&self) -> PRIV38_R {
        PRIV38_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - PRIV39"]
    #[inline(always)]
    pub fn priv39(&self) -> PRIV39_R {
        PRIV39_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - PRIV40"]
    #[inline(always)]
    pub fn priv40(&self) -> PRIV40_R {
        PRIV40_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - PRIV41"]
    #[inline(always)]
    pub fn priv41(&self) -> PRIV41_R {
        PRIV41_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - PRIV42"]
    #[inline(always)]
    pub fn priv42(&self) -> PRIV42_R {
        PRIV42_R::new(((self.bits >> 10) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - PRIV32"]
    #[inline(always)]
    pub fn priv32(&mut self) -> PRIV32_W<0> {
        PRIV32_W::new(self)
    }
    #[doc = "Bit 1 - PRIV33"]
    #[inline(always)]
    pub fn priv33(&mut self) -> PRIV33_W<1> {
        PRIV33_W::new(self)
    }
    #[doc = "Bit 2 - PRIV34"]
    #[inline(always)]
    pub fn priv34(&mut self) -> PRIV34_W<2> {
        PRIV34_W::new(self)
    }
    #[doc = "Bit 3 - PRIV35"]
    #[inline(always)]
    pub fn priv35(&mut self) -> PRIV35_W<3> {
        PRIV35_W::new(self)
    }
    #[doc = "Bit 4 - PRIV36"]
    #[inline(always)]
    pub fn priv36(&mut self) -> PRIV36_W<4> {
        PRIV36_W::new(self)
    }
    #[doc = "Bit 5 - PRIV37"]
    #[inline(always)]
    pub fn priv37(&mut self) -> PRIV37_W<5> {
        PRIV37_W::new(self)
    }
    #[doc = "Bit 6 - PRIV38"]
    #[inline(always)]
    pub fn priv38(&mut self) -> PRIV38_W<6> {
        PRIV38_W::new(self)
    }
    #[doc = "Bit 7 - PRIV39"]
    #[inline(always)]
    pub fn priv39(&mut self) -> PRIV39_W<7> {
        PRIV39_W::new(self)
    }
    #[doc = "Bit 8 - PRIV40"]
    #[inline(always)]
    pub fn priv40(&mut self) -> PRIV40_W<8> {
        PRIV40_W::new(self)
    }
    #[doc = "Bit 9 - PRIV41"]
    #[inline(always)]
    pub fn priv41(&mut self) -> PRIV41_W<9> {
        PRIV41_W::new(self)
    }
    #[doc = "Bit 10 - PRIV42"]
    #[inline(always)]
    pub fn priv42(&mut self) -> PRIV42_W<10> {
        PRIV42_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "EXTI security enable register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [privcfgr2](index.html) module"]
pub struct PRIVCFGR2_SPEC;
impl crate::RegisterSpec for PRIVCFGR2_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [privcfgr2::R](R) reader structure"]
impl crate::Readable for PRIVCFGR2_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [privcfgr2::W](W) writer structure"]
impl crate::Writable for PRIVCFGR2_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets PRIVCFGR2 to value 0"]
impl crate::Resettable for PRIVCFGR2_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}