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
#[doc = "Register `ADC14IFGR1` reader"]
pub struct R(crate::R<ADC14IFGR1_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<ADC14IFGR1_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<ADC14IFGR1_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<ADC14IFGR1_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Interrupt flag for ADC14MEMx within comparator window\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ADC14INIFG_A {
    #[doc = "0: No interrupt pending"]
    ADC14INIFG_0 = 0,
    #[doc = "1: Interrupt pending"]
    ADC14INIFG_1 = 1,
}
impl From<ADC14INIFG_A> for bool {
    #[inline(always)]
    fn from(variant: ADC14INIFG_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `ADC14INIFG` reader - Interrupt flag for ADC14MEMx within comparator window"]
pub type ADC14INIFG_R = crate::BitReader<ADC14INIFG_A>;
impl ADC14INIFG_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ADC14INIFG_A {
        match self.bits {
            false => ADC14INIFG_A::ADC14INIFG_0,
            true => ADC14INIFG_A::ADC14INIFG_1,
        }
    }
    #[doc = "Checks if the value of the field is `ADC14INIFG_0`"]
    #[inline(always)]
    pub fn is_adc14inifg_0(&self) -> bool {
        *self == ADC14INIFG_A::ADC14INIFG_0
    }
    #[doc = "Checks if the value of the field is `ADC14INIFG_1`"]
    #[inline(always)]
    pub fn is_adc14inifg_1(&self) -> bool {
        *self == ADC14INIFG_A::ADC14INIFG_1
    }
}
#[doc = "Interrupt flag for ADC14MEMx below comparator window\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ADC14LOIFG_A {
    #[doc = "0: No interrupt pending"]
    ADC14LOIFG_0 = 0,
    #[doc = "1: Interrupt pending"]
    ADC14LOIFG_1 = 1,
}
impl From<ADC14LOIFG_A> for bool {
    #[inline(always)]
    fn from(variant: ADC14LOIFG_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `ADC14LOIFG` reader - Interrupt flag for ADC14MEMx below comparator window"]
pub type ADC14LOIFG_R = crate::BitReader<ADC14LOIFG_A>;
impl ADC14LOIFG_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ADC14LOIFG_A {
        match self.bits {
            false => ADC14LOIFG_A::ADC14LOIFG_0,
            true => ADC14LOIFG_A::ADC14LOIFG_1,
        }
    }
    #[doc = "Checks if the value of the field is `ADC14LOIFG_0`"]
    #[inline(always)]
    pub fn is_adc14loifg_0(&self) -> bool {
        *self == ADC14LOIFG_A::ADC14LOIFG_0
    }
    #[doc = "Checks if the value of the field is `ADC14LOIFG_1`"]
    #[inline(always)]
    pub fn is_adc14loifg_1(&self) -> bool {
        *self == ADC14LOIFG_A::ADC14LOIFG_1
    }
}
#[doc = "Interrupt flag for ADC14MEMx above comparator window\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ADC14HIIFG_A {
    #[doc = "0: No interrupt pending"]
    ADC14HIIFG_0 = 0,
    #[doc = "1: Interrupt pending"]
    ADC14HIIFG_1 = 1,
}
impl From<ADC14HIIFG_A> for bool {
    #[inline(always)]
    fn from(variant: ADC14HIIFG_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `ADC14HIIFG` reader - Interrupt flag for ADC14MEMx above comparator window"]
pub type ADC14HIIFG_R = crate::BitReader<ADC14HIIFG_A>;
impl ADC14HIIFG_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ADC14HIIFG_A {
        match self.bits {
            false => ADC14HIIFG_A::ADC14HIIFG_0,
            true => ADC14HIIFG_A::ADC14HIIFG_1,
        }
    }
    #[doc = "Checks if the value of the field is `ADC14HIIFG_0`"]
    #[inline(always)]
    pub fn is_adc14hiifg_0(&self) -> bool {
        *self == ADC14HIIFG_A::ADC14HIIFG_0
    }
    #[doc = "Checks if the value of the field is `ADC14HIIFG_1`"]
    #[inline(always)]
    pub fn is_adc14hiifg_1(&self) -> bool {
        *self == ADC14HIIFG_A::ADC14HIIFG_1
    }
}
#[doc = "ADC14MEMx overflow interrupt flag\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ADC14OVIFG_A {
    #[doc = "0: No interrupt pending"]
    ADC14OVIFG_0 = 0,
    #[doc = "1: Interrupt pending"]
    ADC14OVIFG_1 = 1,
}
impl From<ADC14OVIFG_A> for bool {
    #[inline(always)]
    fn from(variant: ADC14OVIFG_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `ADC14OVIFG` reader - ADC14MEMx overflow interrupt flag"]
pub type ADC14OVIFG_R = crate::BitReader<ADC14OVIFG_A>;
impl ADC14OVIFG_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ADC14OVIFG_A {
        match self.bits {
            false => ADC14OVIFG_A::ADC14OVIFG_0,
            true => ADC14OVIFG_A::ADC14OVIFG_1,
        }
    }
    #[doc = "Checks if the value of the field is `ADC14OVIFG_0`"]
    #[inline(always)]
    pub fn is_adc14ovifg_0(&self) -> bool {
        *self == ADC14OVIFG_A::ADC14OVIFG_0
    }
    #[doc = "Checks if the value of the field is `ADC14OVIFG_1`"]
    #[inline(always)]
    pub fn is_adc14ovifg_1(&self) -> bool {
        *self == ADC14OVIFG_A::ADC14OVIFG_1
    }
}
#[doc = "ADC14 conversion time overflow interrupt flag\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ADC14TOVIFG_A {
    #[doc = "0: No interrupt pending"]
    ADC14TOVIFG_0 = 0,
    #[doc = "1: Interrupt pending"]
    ADC14TOVIFG_1 = 1,
}
impl From<ADC14TOVIFG_A> for bool {
    #[inline(always)]
    fn from(variant: ADC14TOVIFG_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `ADC14TOVIFG` reader - ADC14 conversion time overflow interrupt flag"]
pub type ADC14TOVIFG_R = crate::BitReader<ADC14TOVIFG_A>;
impl ADC14TOVIFG_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ADC14TOVIFG_A {
        match self.bits {
            false => ADC14TOVIFG_A::ADC14TOVIFG_0,
            true => ADC14TOVIFG_A::ADC14TOVIFG_1,
        }
    }
    #[doc = "Checks if the value of the field is `ADC14TOVIFG_0`"]
    #[inline(always)]
    pub fn is_adc14tovifg_0(&self) -> bool {
        *self == ADC14TOVIFG_A::ADC14TOVIFG_0
    }
    #[doc = "Checks if the value of the field is `ADC14TOVIFG_1`"]
    #[inline(always)]
    pub fn is_adc14tovifg_1(&self) -> bool {
        *self == ADC14TOVIFG_A::ADC14TOVIFG_1
    }
}
#[doc = "ADC14 local buffered reference ready interrupt flag\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum ADC14RDYIFG_A {
    #[doc = "0: No interrupt pending"]
    ADC14RDYIFG_0 = 0,
    #[doc = "1: Interrupt pending"]
    ADC14RDYIFG_1 = 1,
}
impl From<ADC14RDYIFG_A> for bool {
    #[inline(always)]
    fn from(variant: ADC14RDYIFG_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `ADC14RDYIFG` reader - ADC14 local buffered reference ready interrupt flag"]
pub type ADC14RDYIFG_R = crate::BitReader<ADC14RDYIFG_A>;
impl ADC14RDYIFG_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> ADC14RDYIFG_A {
        match self.bits {
            false => ADC14RDYIFG_A::ADC14RDYIFG_0,
            true => ADC14RDYIFG_A::ADC14RDYIFG_1,
        }
    }
    #[doc = "Checks if the value of the field is `ADC14RDYIFG_0`"]
    #[inline(always)]
    pub fn is_adc14rdyifg_0(&self) -> bool {
        *self == ADC14RDYIFG_A::ADC14RDYIFG_0
    }
    #[doc = "Checks if the value of the field is `ADC14RDYIFG_1`"]
    #[inline(always)]
    pub fn is_adc14rdyifg_1(&self) -> bool {
        *self == ADC14RDYIFG_A::ADC14RDYIFG_1
    }
}
impl R {
    #[doc = "Bit 1 - Interrupt flag for ADC14MEMx within comparator window"]
    #[inline(always)]
    pub fn adc14inifg(&self) -> ADC14INIFG_R {
        ADC14INIFG_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Interrupt flag for ADC14MEMx below comparator window"]
    #[inline(always)]
    pub fn adc14loifg(&self) -> ADC14LOIFG_R {
        ADC14LOIFG_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Interrupt flag for ADC14MEMx above comparator window"]
    #[inline(always)]
    pub fn adc14hiifg(&self) -> ADC14HIIFG_R {
        ADC14HIIFG_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - ADC14MEMx overflow interrupt flag"]
    #[inline(always)]
    pub fn adc14ovifg(&self) -> ADC14OVIFG_R {
        ADC14OVIFG_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - ADC14 conversion time overflow interrupt flag"]
    #[inline(always)]
    pub fn adc14tovifg(&self) -> ADC14TOVIFG_R {
        ADC14TOVIFG_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - ADC14 local buffered reference ready interrupt flag"]
    #[inline(always)]
    pub fn adc14rdyifg(&self) -> ADC14RDYIFG_R {
        ADC14RDYIFG_R::new(((self.bits >> 6) & 1) != 0)
    }
}
#[doc = "Interrupt Flag 1 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 [adc14ifgr1](index.html) module"]
pub struct ADC14IFGR1_SPEC;
impl crate::RegisterSpec for ADC14IFGR1_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [adc14ifgr1::R](R) reader structure"]
impl crate::Readable for ADC14IFGR1_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets ADC14IFGR1 to value 0"]
impl crate::Resettable for ADC14IFGR1_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}