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
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
#[doc = "Register `OCTL` reader"]
pub type R = crate::R<OctlSpec>;
#[doc = "Register `OCTL` writer"]
pub type W = crate::W<OctlSpec>;
#[doc = "Port output data 0\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq, Eq)]
pub enum Octl0 {
    #[doc = "0: Set output to logic low"]
    Low = 0,
    #[doc = "1: Set output to logic high"]
    High = 1,
}
impl From<Octl0> for bool {
    #[inline(always)]
    fn from(variant: Octl0) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `OCTL0` reader - Port output data 0"]
pub type Octl0R = crate::BitReader<Octl0>;
impl Octl0R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub const fn variant(&self) -> Octl0 {
        match self.bits {
            false => Octl0::Low,
            true => Octl0::High,
        }
    }
    #[doc = "Set output to logic low"]
    #[inline(always)]
    pub fn is_low(&self) -> bool {
        *self == Octl0::Low
    }
    #[doc = "Set output to logic high"]
    #[inline(always)]
    pub fn is_high(&self) -> bool {
        *self == Octl0::High
    }
}
#[doc = "Field `OCTL0` writer - Port output data 0"]
pub type Octl0W<'a, REG> = crate::BitWriter<'a, REG, Octl0>;
impl<'a, REG> Octl0W<'a, REG>
where
    REG: crate::Writable + crate::RegisterSpec,
{
    #[doc = "Set output to logic low"]
    #[inline(always)]
    pub fn low(self) -> &'a mut crate::W<REG> {
        self.variant(Octl0::Low)
    }
    #[doc = "Set output to logic high"]
    #[inline(always)]
    pub fn high(self) -> &'a mut crate::W<REG> {
        self.variant(Octl0::High)
    }
}
#[doc = "Field `OCTL1` reader - Port output data 1"]
pub use Octl0R as Octl1R;
#[doc = "Field `OCTL2` reader - Port output data 2"]
pub use Octl0R as Octl2R;
#[doc = "Field `OCTL3` reader - Port output data 3"]
pub use Octl0R as Octl3R;
#[doc = "Field `OCTL4` reader - Port output data 4"]
pub use Octl0R as Octl4R;
#[doc = "Field `OCTL5` reader - Port output data 5"]
pub use Octl0R as Octl5R;
#[doc = "Field `OCTL6` reader - Port output data 6"]
pub use Octl0R as Octl6R;
#[doc = "Field `OCTL7` reader - Port output data 7"]
pub use Octl0R as Octl7R;
#[doc = "Field `OCTL8` reader - Port output data 8"]
pub use Octl0R as Octl8R;
#[doc = "Field `OCTL9` reader - Port output data 9"]
pub use Octl0R as Octl9R;
#[doc = "Field `OCTL10` reader - Port output data 10"]
pub use Octl0R as Octl10R;
#[doc = "Field `OCTL11` reader - Port output data 11"]
pub use Octl0R as Octl11R;
#[doc = "Field `OCTL12` reader - Port output data 12"]
pub use Octl0R as Octl12R;
#[doc = "Field `OCTL13` reader - Port output data 13"]
pub use Octl0R as Octl13R;
#[doc = "Field `OCTL14` reader - Port output data 14"]
pub use Octl0R as Octl14R;
#[doc = "Field `OCTL15` reader - Port output data 15"]
pub use Octl0R as Octl15R;
#[doc = "Field `OCTL1` writer - Port output data 1"]
pub use Octl0W as Octl1W;
#[doc = "Field `OCTL2` writer - Port output data 2"]
pub use Octl0W as Octl2W;
#[doc = "Field `OCTL3` writer - Port output data 3"]
pub use Octl0W as Octl3W;
#[doc = "Field `OCTL4` writer - Port output data 4"]
pub use Octl0W as Octl4W;
#[doc = "Field `OCTL5` writer - Port output data 5"]
pub use Octl0W as Octl5W;
#[doc = "Field `OCTL6` writer - Port output data 6"]
pub use Octl0W as Octl6W;
#[doc = "Field `OCTL7` writer - Port output data 7"]
pub use Octl0W as Octl7W;
#[doc = "Field `OCTL8` writer - Port output data 8"]
pub use Octl0W as Octl8W;
#[doc = "Field `OCTL9` writer - Port output data 9"]
pub use Octl0W as Octl9W;
#[doc = "Field `OCTL10` writer - Port output data 10"]
pub use Octl0W as Octl10W;
#[doc = "Field `OCTL11` writer - Port output data 11"]
pub use Octl0W as Octl11W;
#[doc = "Field `OCTL12` writer - Port output data 12"]
pub use Octl0W as Octl12W;
#[doc = "Field `OCTL13` writer - Port output data 13"]
pub use Octl0W as Octl13W;
#[doc = "Field `OCTL14` writer - Port output data 14"]
pub use Octl0W as Octl14W;
#[doc = "Field `OCTL15` writer - Port output data 15"]
pub use Octl0W as Octl15W;
impl R {
    #[doc = "Bit 0 - Port output data 0"]
    #[inline(always)]
    pub fn octl0(&self) -> Octl0R {
        Octl0R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Port output data 1"]
    #[inline(always)]
    pub fn octl1(&self) -> Octl1R {
        Octl1R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Port output data 2"]
    #[inline(always)]
    pub fn octl2(&self) -> Octl2R {
        Octl2R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Port output data 3"]
    #[inline(always)]
    pub fn octl3(&self) -> Octl3R {
        Octl3R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Port output data 4"]
    #[inline(always)]
    pub fn octl4(&self) -> Octl4R {
        Octl4R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Port output data 5"]
    #[inline(always)]
    pub fn octl5(&self) -> Octl5R {
        Octl5R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Port output data 6"]
    #[inline(always)]
    pub fn octl6(&self) -> Octl6R {
        Octl6R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Port output data 7"]
    #[inline(always)]
    pub fn octl7(&self) -> Octl7R {
        Octl7R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - Port output data 8"]
    #[inline(always)]
    pub fn octl8(&self) -> Octl8R {
        Octl8R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Port output data 9"]
    #[inline(always)]
    pub fn octl9(&self) -> Octl9R {
        Octl9R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Port output data 10"]
    #[inline(always)]
    pub fn octl10(&self) -> Octl10R {
        Octl10R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Port output data 11"]
    #[inline(always)]
    pub fn octl11(&self) -> Octl11R {
        Octl11R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - Port output data 12"]
    #[inline(always)]
    pub fn octl12(&self) -> Octl12R {
        Octl12R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - Port output data 13"]
    #[inline(always)]
    pub fn octl13(&self) -> Octl13R {
        Octl13R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - Port output data 14"]
    #[inline(always)]
    pub fn octl14(&self) -> Octl14R {
        Octl14R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - Port output data 15"]
    #[inline(always)]
    pub fn octl15(&self) -> Octl15R {
        Octl15R::new(((self.bits >> 15) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Port output data 0"]
    #[inline(always)]
    #[must_use]
    pub fn octl0(&mut self) -> Octl0W<OctlSpec> {
        Octl0W::new(self, 0)
    }
    #[doc = "Bit 1 - Port output data 1"]
    #[inline(always)]
    #[must_use]
    pub fn octl1(&mut self) -> Octl1W<OctlSpec> {
        Octl1W::new(self, 1)
    }
    #[doc = "Bit 2 - Port output data 2"]
    #[inline(always)]
    #[must_use]
    pub fn octl2(&mut self) -> Octl2W<OctlSpec> {
        Octl2W::new(self, 2)
    }
    #[doc = "Bit 3 - Port output data 3"]
    #[inline(always)]
    #[must_use]
    pub fn octl3(&mut self) -> Octl3W<OctlSpec> {
        Octl3W::new(self, 3)
    }
    #[doc = "Bit 4 - Port output data 4"]
    #[inline(always)]
    #[must_use]
    pub fn octl4(&mut self) -> Octl4W<OctlSpec> {
        Octl4W::new(self, 4)
    }
    #[doc = "Bit 5 - Port output data 5"]
    #[inline(always)]
    #[must_use]
    pub fn octl5(&mut self) -> Octl5W<OctlSpec> {
        Octl5W::new(self, 5)
    }
    #[doc = "Bit 6 - Port output data 6"]
    #[inline(always)]
    #[must_use]
    pub fn octl6(&mut self) -> Octl6W<OctlSpec> {
        Octl6W::new(self, 6)
    }
    #[doc = "Bit 7 - Port output data 7"]
    #[inline(always)]
    #[must_use]
    pub fn octl7(&mut self) -> Octl7W<OctlSpec> {
        Octl7W::new(self, 7)
    }
    #[doc = "Bit 8 - Port output data 8"]
    #[inline(always)]
    #[must_use]
    pub fn octl8(&mut self) -> Octl8W<OctlSpec> {
        Octl8W::new(self, 8)
    }
    #[doc = "Bit 9 - Port output data 9"]
    #[inline(always)]
    #[must_use]
    pub fn octl9(&mut self) -> Octl9W<OctlSpec> {
        Octl9W::new(self, 9)
    }
    #[doc = "Bit 10 - Port output data 10"]
    #[inline(always)]
    #[must_use]
    pub fn octl10(&mut self) -> Octl10W<OctlSpec> {
        Octl10W::new(self, 10)
    }
    #[doc = "Bit 11 - Port output data 11"]
    #[inline(always)]
    #[must_use]
    pub fn octl11(&mut self) -> Octl11W<OctlSpec> {
        Octl11W::new(self, 11)
    }
    #[doc = "Bit 12 - Port output data 12"]
    #[inline(always)]
    #[must_use]
    pub fn octl12(&mut self) -> Octl12W<OctlSpec> {
        Octl12W::new(self, 12)
    }
    #[doc = "Bit 13 - Port output data 13"]
    #[inline(always)]
    #[must_use]
    pub fn octl13(&mut self) -> Octl13W<OctlSpec> {
        Octl13W::new(self, 13)
    }
    #[doc = "Bit 14 - Port output data 14"]
    #[inline(always)]
    #[must_use]
    pub fn octl14(&mut self) -> Octl14W<OctlSpec> {
        Octl14W::new(self, 14)
    }
    #[doc = "Bit 15 - Port output data 15"]
    #[inline(always)]
    #[must_use]
    pub fn octl15(&mut self) -> Octl15W<OctlSpec> {
        Octl15W::new(self, 15)
    }
}
#[doc = "GPIO port output data register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`octl::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`octl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct OctlSpec;
impl crate::RegisterSpec for OctlSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`octl::R`](R) reader structure"]
impl crate::Readable for OctlSpec {}
#[doc = "`write(|w| ..)` method takes [`octl::W`](W) writer structure"]
impl crate::Writable for OctlSpec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets OCTL to value 0"]
impl crate::Resettable for OctlSpec {
    const RESET_VALUE: u32 = 0;
}