efm32pg22-pac 0.1.1

Peripheral access API for EFM32PG22 MCU (generated using svd2rust)
Documentation
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
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
#[doc = "Register `TRIGGER` reader"]
pub struct R(crate::R<TRIGGER_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<TRIGGER_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<TRIGGER_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<TRIGGER_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `TRIGGER` writer"]
pub struct W(crate::W<TRIGGER_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<TRIGGER_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<TRIGGER_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<TRIGGER_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Scan Trigger Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum SCANTRIGSEL_A {
    #[doc = "0: Immediate triggering. The scan queue will be disabled once all conversions in the scan table are complete, unless TRIGGERACTION is set to continuous."]
    IMMEDIATE = 0,
    #[doc = "1: Triggers when the local timer count reaches zero."]
    TIMER = 1,
    #[doc = "2: Triggers on PRS0 from a timer module that is using the same clock group as the ADC and has been programmed to use the same clock source as the ADC. The prescale may be different between the ADC and the timer module."]
    PRSCLKGRP = 2,
    #[doc = "3: Triggers on asynchronous PRS0 positive edge. Requires PRS0 to go low for 3 ADC_CLKs before another positive edge can be detected. Generates an additional delay of 1 to 2 ADC_SRC_CLK cycles for synchronization."]
    PRSPOS = 3,
    #[doc = "4: Triggers on asynchronous PRS0 negative edge. Requires PRS0 to go high for 3 ADC_CLKs before another negative edge can be detected. Generates an additional delay of 1 to 2 ADC_SRC_CLK cycles for synchronization. PRSNEG should only be used when the trigger source is from a module that remains powered during EM23. For modules (ie: TIMER) that power down during EM23, PRSPOS should be used for an asynchronous trigger, and PRSCLKGRP should be used for a synchronous trigger."]
    PRSNEG = 4,
}
impl From<SCANTRIGSEL_A> for u8 {
    #[inline(always)]
    fn from(variant: SCANTRIGSEL_A) -> Self {
        variant as _
    }
}
#[doc = "Field `SCANTRIGSEL` reader - Scan Trigger Select"]
pub type SCANTRIGSEL_R = crate::FieldReader<u8, SCANTRIGSEL_A>;
impl SCANTRIGSEL_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> Option<SCANTRIGSEL_A> {
        match self.bits {
            0 => Some(SCANTRIGSEL_A::IMMEDIATE),
            1 => Some(SCANTRIGSEL_A::TIMER),
            2 => Some(SCANTRIGSEL_A::PRSCLKGRP),
            3 => Some(SCANTRIGSEL_A::PRSPOS),
            4 => Some(SCANTRIGSEL_A::PRSNEG),
            _ => None,
        }
    }
    #[doc = "Checks if the value of the field is `IMMEDIATE`"]
    #[inline(always)]
    pub fn is_immediate(&self) -> bool {
        *self == SCANTRIGSEL_A::IMMEDIATE
    }
    #[doc = "Checks if the value of the field is `TIMER`"]
    #[inline(always)]
    pub fn is_timer(&self) -> bool {
        *self == SCANTRIGSEL_A::TIMER
    }
    #[doc = "Checks if the value of the field is `PRSCLKGRP`"]
    #[inline(always)]
    pub fn is_prsclkgrp(&self) -> bool {
        *self == SCANTRIGSEL_A::PRSCLKGRP
    }
    #[doc = "Checks if the value of the field is `PRSPOS`"]
    #[inline(always)]
    pub fn is_prspos(&self) -> bool {
        *self == SCANTRIGSEL_A::PRSPOS
    }
    #[doc = "Checks if the value of the field is `PRSNEG`"]
    #[inline(always)]
    pub fn is_prsneg(&self) -> bool {
        *self == SCANTRIGSEL_A::PRSNEG
    }
}
#[doc = "Field `SCANTRIGSEL` writer - Scan Trigger Select"]
pub type SCANTRIGSEL_W<'a> = crate::FieldWriter<'a, u32, TRIGGER_SPEC, u8, SCANTRIGSEL_A, 3, 0>;
impl<'a> SCANTRIGSEL_W<'a> {
    #[doc = "Immediate triggering. The scan queue will be disabled once all conversions in the scan table are complete, unless TRIGGERACTION is set to continuous."]
    #[inline(always)]
    pub fn immediate(self) -> &'a mut W {
        self.variant(SCANTRIGSEL_A::IMMEDIATE)
    }
    #[doc = "Triggers when the local timer count reaches zero."]
    #[inline(always)]
    pub fn timer(self) -> &'a mut W {
        self.variant(SCANTRIGSEL_A::TIMER)
    }
    #[doc = "Triggers on PRS0 from a timer module that is using the same clock group as the ADC and has been programmed to use the same clock source as the ADC. The prescale may be different between the ADC and the timer module."]
    #[inline(always)]
    pub fn prsclkgrp(self) -> &'a mut W {
        self.variant(SCANTRIGSEL_A::PRSCLKGRP)
    }
    #[doc = "Triggers on asynchronous PRS0 positive edge. Requires PRS0 to go low for 3 ADC_CLKs before another positive edge can be detected. Generates an additional delay of 1 to 2 ADC_SRC_CLK cycles for synchronization."]
    #[inline(always)]
    pub fn prspos(self) -> &'a mut W {
        self.variant(SCANTRIGSEL_A::PRSPOS)
    }
    #[doc = "Triggers on asynchronous PRS0 negative edge. Requires PRS0 to go high for 3 ADC_CLKs before another negative edge can be detected. Generates an additional delay of 1 to 2 ADC_SRC_CLK cycles for synchronization. PRSNEG should only be used when the trigger source is from a module that remains powered during EM23. For modules (ie: TIMER) that power down during EM23, PRSPOS should be used for an asynchronous trigger, and PRSCLKGRP should be used for a synchronous trigger."]
    #[inline(always)]
    pub fn prsneg(self) -> &'a mut W {
        self.variant(SCANTRIGSEL_A::PRSNEG)
    }
}
#[doc = "Scan Trigger Action\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SCANTRIGACTION_A {
    #[doc = "0: For TRIGSEL=IMMEDIATE, goes through the scan table once and disables queue. For TRIGSEL = TIMER, PRSCLKGRP, PRSPOS, PRSNEG, goes through the scan table once per trigger."]
    ONCE = 0,
    #[doc = "1: Goes through the scan table, converts each entry with a mask bit set, and puts it back into the scan queue to repeat again continuously. The queues are first come first serve. If both queues are triggered, the single queue will get to convert after each scan table completes. The scan queue will get to convert after each single conversion completes."]
    CONTINUOUS = 1,
}
impl From<SCANTRIGACTION_A> for bool {
    #[inline(always)]
    fn from(variant: SCANTRIGACTION_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `SCANTRIGACTION` reader - Scan Trigger Action"]
pub type SCANTRIGACTION_R = crate::BitReader<SCANTRIGACTION_A>;
impl SCANTRIGACTION_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> SCANTRIGACTION_A {
        match self.bits {
            false => SCANTRIGACTION_A::ONCE,
            true => SCANTRIGACTION_A::CONTINUOUS,
        }
    }
    #[doc = "Checks if the value of the field is `ONCE`"]
    #[inline(always)]
    pub fn is_once(&self) -> bool {
        *self == SCANTRIGACTION_A::ONCE
    }
    #[doc = "Checks if the value of the field is `CONTINUOUS`"]
    #[inline(always)]
    pub fn is_continuous(&self) -> bool {
        *self == SCANTRIGACTION_A::CONTINUOUS
    }
}
#[doc = "Field `SCANTRIGACTION` writer - Scan Trigger Action"]
pub type SCANTRIGACTION_W<'a> = crate::BitWriter<'a, u32, TRIGGER_SPEC, SCANTRIGACTION_A, 4>;
impl<'a> SCANTRIGACTION_W<'a> {
    #[doc = "For TRIGSEL=IMMEDIATE, goes through the scan table once and disables queue. For TRIGSEL = TIMER, PRSCLKGRP, PRSPOS, PRSNEG, goes through the scan table once per trigger."]
    #[inline(always)]
    pub fn once(self) -> &'a mut W {
        self.variant(SCANTRIGACTION_A::ONCE)
    }
    #[doc = "Goes through the scan table, converts each entry with a mask bit set, and puts it back into the scan queue to repeat again continuously. The queues are first come first serve. If both queues are triggered, the single queue will get to convert after each scan table completes. The scan queue will get to convert after each single conversion completes."]
    #[inline(always)]
    pub fn continuous(self) -> &'a mut W {
        self.variant(SCANTRIGACTION_A::CONTINUOUS)
    }
}
#[doc = "Single Trigger Select\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
#[repr(u8)]
pub enum SINGLETRIGSEL_A {
    #[doc = "0: Immediate triggering. The single queue will be disabled once the conversion is complete, unless TRIGGERACTION is set to continuous."]
    IMMEDIATE = 0,
    #[doc = "1: Triggers when the local timer count reaches zero."]
    TIMER = 1,
    #[doc = "2: Triggers on PRS1 from a timer module that is using the same clock group as the ADC and has been programmed to use the same clock source as the ADC. The prescale may be different between the ADC and the timer module."]
    PRSCLKGRP = 2,
    #[doc = "3: Triggers on asynchronous PRS1 positive edge. Requires PRS1 to go low for 3 ADC_CLKs before another positive edge can be detected. Generates an additional delay of 1 to 2 ADC_SRC_CLK cycles for synchronization."]
    PRSPOS = 3,
    #[doc = "4: Triggers on asynchronous PRS1 negative edge. Requires PRS1 to go high for 3 ADC_CLKs before another negative edge can be detected. Generates an additional delay of 1 to 2 ADC_SRC_CLK cycles for synchronization. PRSNEG should only be used when the trigger source is from a module that remains powered during EM23. For modules (ie: TIMER) that power down during EM23, PRSPOS should be used for an asynchronous trigger, and PRSCLKGRP should be used for a synchronous trigger."]
    PRSNEG = 4,
}
impl From<SINGLETRIGSEL_A> for u8 {
    #[inline(always)]
    fn from(variant: SINGLETRIGSEL_A) -> Self {
        variant as _
    }
}
#[doc = "Field `SINGLETRIGSEL` reader - Single Trigger Select"]
pub type SINGLETRIGSEL_R = crate::FieldReader<u8, SINGLETRIGSEL_A>;
impl SINGLETRIGSEL_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> Option<SINGLETRIGSEL_A> {
        match self.bits {
            0 => Some(SINGLETRIGSEL_A::IMMEDIATE),
            1 => Some(SINGLETRIGSEL_A::TIMER),
            2 => Some(SINGLETRIGSEL_A::PRSCLKGRP),
            3 => Some(SINGLETRIGSEL_A::PRSPOS),
            4 => Some(SINGLETRIGSEL_A::PRSNEG),
            _ => None,
        }
    }
    #[doc = "Checks if the value of the field is `IMMEDIATE`"]
    #[inline(always)]
    pub fn is_immediate(&self) -> bool {
        *self == SINGLETRIGSEL_A::IMMEDIATE
    }
    #[doc = "Checks if the value of the field is `TIMER`"]
    #[inline(always)]
    pub fn is_timer(&self) -> bool {
        *self == SINGLETRIGSEL_A::TIMER
    }
    #[doc = "Checks if the value of the field is `PRSCLKGRP`"]
    #[inline(always)]
    pub fn is_prsclkgrp(&self) -> bool {
        *self == SINGLETRIGSEL_A::PRSCLKGRP
    }
    #[doc = "Checks if the value of the field is `PRSPOS`"]
    #[inline(always)]
    pub fn is_prspos(&self) -> bool {
        *self == SINGLETRIGSEL_A::PRSPOS
    }
    #[doc = "Checks if the value of the field is `PRSNEG`"]
    #[inline(always)]
    pub fn is_prsneg(&self) -> bool {
        *self == SINGLETRIGSEL_A::PRSNEG
    }
}
#[doc = "Field `SINGLETRIGSEL` writer - Single Trigger Select"]
pub type SINGLETRIGSEL_W<'a> = crate::FieldWriter<'a, u32, TRIGGER_SPEC, u8, SINGLETRIGSEL_A, 3, 8>;
impl<'a> SINGLETRIGSEL_W<'a> {
    #[doc = "Immediate triggering. The single queue will be disabled once the conversion is complete, unless TRIGGERACTION is set to continuous."]
    #[inline(always)]
    pub fn immediate(self) -> &'a mut W {
        self.variant(SINGLETRIGSEL_A::IMMEDIATE)
    }
    #[doc = "Triggers when the local timer count reaches zero."]
    #[inline(always)]
    pub fn timer(self) -> &'a mut W {
        self.variant(SINGLETRIGSEL_A::TIMER)
    }
    #[doc = "Triggers on PRS1 from a timer module that is using the same clock group as the ADC and has been programmed to use the same clock source as the ADC. The prescale may be different between the ADC and the timer module."]
    #[inline(always)]
    pub fn prsclkgrp(self) -> &'a mut W {
        self.variant(SINGLETRIGSEL_A::PRSCLKGRP)
    }
    #[doc = "Triggers on asynchronous PRS1 positive edge. Requires PRS1 to go low for 3 ADC_CLKs before another positive edge can be detected. Generates an additional delay of 1 to 2 ADC_SRC_CLK cycles for synchronization."]
    #[inline(always)]
    pub fn prspos(self) -> &'a mut W {
        self.variant(SINGLETRIGSEL_A::PRSPOS)
    }
    #[doc = "Triggers on asynchronous PRS1 negative edge. Requires PRS1 to go high for 3 ADC_CLKs before another negative edge can be detected. Generates an additional delay of 1 to 2 ADC_SRC_CLK cycles for synchronization. PRSNEG should only be used when the trigger source is from a module that remains powered during EM23. For modules (ie: TIMER) that power down during EM23, PRSPOS should be used for an asynchronous trigger, and PRSCLKGRP should be used for a synchronous trigger."]
    #[inline(always)]
    pub fn prsneg(self) -> &'a mut W {
        self.variant(SINGLETRIGSEL_A::PRSNEG)
    }
}
#[doc = "Single Trigger Action\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SINGLETRIGACTION_A {
    #[doc = "0: For TRIGSEL=IMMEDIATE, converts the single queue once and disables queue. For TRIGSEL = TIMER, PRSCLKGRP, PRSPOS, PRSNEG, converts the single queue once per trigger.ask."]
    ONCE = 0,
    #[doc = "1: Converts the single queue, then checks for a pending scan queue before converting the single queue again continuously. The queues are first come first serve. If both queues are continuous, the IADC alternates between them."]
    CONTINUOUS = 1,
}
impl From<SINGLETRIGACTION_A> for bool {
    #[inline(always)]
    fn from(variant: SINGLETRIGACTION_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `SINGLETRIGACTION` reader - Single Trigger Action"]
pub type SINGLETRIGACTION_R = crate::BitReader<SINGLETRIGACTION_A>;
impl SINGLETRIGACTION_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> SINGLETRIGACTION_A {
        match self.bits {
            false => SINGLETRIGACTION_A::ONCE,
            true => SINGLETRIGACTION_A::CONTINUOUS,
        }
    }
    #[doc = "Checks if the value of the field is `ONCE`"]
    #[inline(always)]
    pub fn is_once(&self) -> bool {
        *self == SINGLETRIGACTION_A::ONCE
    }
    #[doc = "Checks if the value of the field is `CONTINUOUS`"]
    #[inline(always)]
    pub fn is_continuous(&self) -> bool {
        *self == SINGLETRIGACTION_A::CONTINUOUS
    }
}
#[doc = "Field `SINGLETRIGACTION` writer - Single Trigger Action"]
pub type SINGLETRIGACTION_W<'a> = crate::BitWriter<'a, u32, TRIGGER_SPEC, SINGLETRIGACTION_A, 12>;
impl<'a> SINGLETRIGACTION_W<'a> {
    #[doc = "For TRIGSEL=IMMEDIATE, converts the single queue once and disables queue. For TRIGSEL = TIMER, PRSCLKGRP, PRSPOS, PRSNEG, converts the single queue once per trigger.ask."]
    #[inline(always)]
    pub fn once(self) -> &'a mut W {
        self.variant(SINGLETRIGACTION_A::ONCE)
    }
    #[doc = "Converts the single queue, then checks for a pending scan queue before converting the single queue again continuously. The queues are first come first serve. If both queues are continuous, the IADC alternates between them."]
    #[inline(always)]
    pub fn continuous(self) -> &'a mut W {
        self.variant(SINGLETRIGACTION_A::CONTINUOUS)
    }
}
#[doc = "Single Tailgate Enable\n\nValue on reset: 0"]
#[derive(Clone, Copy, Debug, PartialEq)]
pub enum SINGLETAILGATE_A {
    #[doc = "0: The single queue is ready to start warming up and converting once the trigger had been detected."]
    TAILGATEOFF = 0,
    #[doc = "1: After the single queue's trigger is detected, it must wait until the end of a scan operation before the Single queue can be converted."]
    TAILGATEON = 1,
}
impl From<SINGLETAILGATE_A> for bool {
    #[inline(always)]
    fn from(variant: SINGLETAILGATE_A) -> Self {
        variant as u8 != 0
    }
}
#[doc = "Field `SINGLETAILGATE` reader - Single Tailgate Enable"]
pub type SINGLETAILGATE_R = crate::BitReader<SINGLETAILGATE_A>;
impl SINGLETAILGATE_R {
    #[doc = "Get enumerated values variant"]
    #[inline(always)]
    pub fn variant(&self) -> SINGLETAILGATE_A {
        match self.bits {
            false => SINGLETAILGATE_A::TAILGATEOFF,
            true => SINGLETAILGATE_A::TAILGATEON,
        }
    }
    #[doc = "Checks if the value of the field is `TAILGATEOFF`"]
    #[inline(always)]
    pub fn is_tailgateoff(&self) -> bool {
        *self == SINGLETAILGATE_A::TAILGATEOFF
    }
    #[doc = "Checks if the value of the field is `TAILGATEON`"]
    #[inline(always)]
    pub fn is_tailgateon(&self) -> bool {
        *self == SINGLETAILGATE_A::TAILGATEON
    }
}
#[doc = "Field `SINGLETAILGATE` writer - Single Tailgate Enable"]
pub type SINGLETAILGATE_W<'a> = crate::BitWriter<'a, u32, TRIGGER_SPEC, SINGLETAILGATE_A, 16>;
impl<'a> SINGLETAILGATE_W<'a> {
    #[doc = "The single queue is ready to start warming up and converting once the trigger had been detected."]
    #[inline(always)]
    pub fn tailgateoff(self) -> &'a mut W {
        self.variant(SINGLETAILGATE_A::TAILGATEOFF)
    }
    #[doc = "After the single queue's trigger is detected, it must wait until the end of a scan operation before the Single queue can be converted."]
    #[inline(always)]
    pub fn tailgateon(self) -> &'a mut W {
        self.variant(SINGLETAILGATE_A::TAILGATEON)
    }
}
impl R {
    #[doc = "Bits 0:2 - Scan Trigger Select"]
    #[inline(always)]
    pub fn scantrigsel(&self) -> SCANTRIGSEL_R {
        SCANTRIGSEL_R::new((self.bits & 7) as u8)
    }
    #[doc = "Bit 4 - Scan Trigger Action"]
    #[inline(always)]
    pub fn scantrigaction(&self) -> SCANTRIGACTION_R {
        SCANTRIGACTION_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bits 8:10 - Single Trigger Select"]
    #[inline(always)]
    pub fn singletrigsel(&self) -> SINGLETRIGSEL_R {
        SINGLETRIGSEL_R::new(((self.bits >> 8) & 7) as u8)
    }
    #[doc = "Bit 12 - Single Trigger Action"]
    #[inline(always)]
    pub fn singletrigaction(&self) -> SINGLETRIGACTION_R {
        SINGLETRIGACTION_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 16 - Single Tailgate Enable"]
    #[inline(always)]
    pub fn singletailgate(&self) -> SINGLETAILGATE_R {
        SINGLETAILGATE_R::new(((self.bits >> 16) & 1) != 0)
    }
}
impl W {
    #[doc = "Bits 0:2 - Scan Trigger Select"]
    #[inline(always)]
    pub fn scantrigsel(&mut self) -> SCANTRIGSEL_W {
        SCANTRIGSEL_W::new(self)
    }
    #[doc = "Bit 4 - Scan Trigger Action"]
    #[inline(always)]
    pub fn scantrigaction(&mut self) -> SCANTRIGACTION_W {
        SCANTRIGACTION_W::new(self)
    }
    #[doc = "Bits 8:10 - Single Trigger Select"]
    #[inline(always)]
    pub fn singletrigsel(&mut self) -> SINGLETRIGSEL_W {
        SINGLETRIGSEL_W::new(self)
    }
    #[doc = "Bit 12 - Single Trigger Action"]
    #[inline(always)]
    pub fn singletrigaction(&mut self) -> SINGLETRIGACTION_W {
        SINGLETRIGACTION_W::new(self)
    }
    #[doc = "Bit 16 - Single Tailgate Enable"]
    #[inline(always)]
    pub fn singletailgate(&mut self) -> SINGLETAILGATE_W {
        SINGLETAILGATE_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 = "Trigger\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 [trigger](index.html) module"]
pub struct TRIGGER_SPEC;
impl crate::RegisterSpec for TRIGGER_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [trigger::R](R) reader structure"]
impl crate::Readable for TRIGGER_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [trigger::W](W) writer structure"]
impl crate::Writable for TRIGGER_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets TRIGGER to value 0"]
impl crate::Resettable for TRIGGER_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}