mimxrt685s_pac/sysctl0/
starten1_set.rs

1#[doc = "Register `STARTEN1_SET` writer"]
2pub type W = crate::W<Starten1SetSpec>;
3#[doc = "no description available\n\nValue on reset: 0"]
4#[cfg_attr(feature = "defmt", derive(defmt::Format))]
5#[derive(Clone, Copy, Debug, PartialEq, Eq)]
6pub enum RtcLite0AlarmOrWakeup {
7    #[doc = "0: No effect"]
8    NoEffect = 0,
9    #[doc = "1: Sets the START_EN1 Bit"]
10    SetStartEn1 = 1,
11}
12impl From<RtcLite0AlarmOrWakeup> for bool {
13    #[inline(always)]
14    fn from(variant: RtcLite0AlarmOrWakeup) -> Self {
15        variant as u8 != 0
16    }
17}
18#[doc = "Field `RTC_LITE0_ALARM_or_WAKEUP` writer - no description available"]
19pub type RtcLite0AlarmOrWakeupW<'a, REG> = crate::BitWriter<'a, REG, RtcLite0AlarmOrWakeup>;
20impl<'a, REG> RtcLite0AlarmOrWakeupW<'a, REG>
21where
22    REG: crate::Writable + crate::RegisterSpec,
23{
24    #[doc = "No effect"]
25    #[inline(always)]
26    pub fn no_effect(self) -> &'a mut crate::W<REG> {
27        self.variant(RtcLite0AlarmOrWakeup::NoEffect)
28    }
29    #[doc = "Sets the START_EN1 Bit"]
30    #[inline(always)]
31    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
32        self.variant(RtcLite0AlarmOrWakeup::SetStartEn1)
33    }
34}
35#[doc = "no description available\n\nValue on reset: 0"]
36#[cfg_attr(feature = "defmt", derive(defmt::Format))]
37#[derive(Clone, Copy, Debug, PartialEq, Eq)]
38pub enum Mu {
39    #[doc = "0: No effect"]
40    NoEffect = 0,
41    #[doc = "1: Sets the START_EN1 Bit"]
42    SetStartEn1 = 1,
43}
44impl From<Mu> for bool {
45    #[inline(always)]
46    fn from(variant: Mu) -> Self {
47        variant as u8 != 0
48    }
49}
50#[doc = "Field `MU` writer - no description available"]
51pub type MuW<'a, REG> = crate::BitWriter<'a, REG, Mu>;
52impl<'a, REG> MuW<'a, REG>
53where
54    REG: crate::Writable + crate::RegisterSpec,
55{
56    #[doc = "No effect"]
57    #[inline(always)]
58    pub fn no_effect(self) -> &'a mut crate::W<REG> {
59        self.variant(Mu::NoEffect)
60    }
61    #[doc = "Sets the START_EN1 Bit"]
62    #[inline(always)]
63    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
64        self.variant(Mu::SetStartEn1)
65    }
66}
67#[doc = "no description available\n\nValue on reset: 0"]
68#[cfg_attr(feature = "defmt", derive(defmt::Format))]
69#[derive(Clone, Copy, Debug, PartialEq, Eq)]
70pub enum GpioInt0Irq4 {
71    #[doc = "0: No effect"]
72    NoEffect = 0,
73    #[doc = "1: Sets the START_EN1 Bit"]
74    SetStartEn1 = 1,
75}
76impl From<GpioInt0Irq4> for bool {
77    #[inline(always)]
78    fn from(variant: GpioInt0Irq4) -> Self {
79        variant as u8 != 0
80    }
81}
82#[doc = "Field `GPIO_INT0_IRQ4` writer - no description available"]
83pub type GpioInt0Irq4W<'a, REG> = crate::BitWriter<'a, REG, GpioInt0Irq4>;
84impl<'a, REG> GpioInt0Irq4W<'a, REG>
85where
86    REG: crate::Writable + crate::RegisterSpec,
87{
88    #[doc = "No effect"]
89    #[inline(always)]
90    pub fn no_effect(self) -> &'a mut crate::W<REG> {
91        self.variant(GpioInt0Irq4::NoEffect)
92    }
93    #[doc = "Sets the START_EN1 Bit"]
94    #[inline(always)]
95    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
96        self.variant(GpioInt0Irq4::SetStartEn1)
97    }
98}
99#[doc = "no description available\n\nValue on reset: 0"]
100#[cfg_attr(feature = "defmt", derive(defmt::Format))]
101#[derive(Clone, Copy, Debug, PartialEq, Eq)]
102pub enum GpioInt0Irq5 {
103    #[doc = "0: No effect"]
104    NoEffect = 0,
105    #[doc = "1: Sets the START_EN1 Bit"]
106    SetStartEn1 = 1,
107}
108impl From<GpioInt0Irq5> for bool {
109    #[inline(always)]
110    fn from(variant: GpioInt0Irq5) -> Self {
111        variant as u8 != 0
112    }
113}
114#[doc = "Field `GPIO_INT0_IRQ5` writer - no description available"]
115pub type GpioInt0Irq5W<'a, REG> = crate::BitWriter<'a, REG, GpioInt0Irq5>;
116impl<'a, REG> GpioInt0Irq5W<'a, REG>
117where
118    REG: crate::Writable + crate::RegisterSpec,
119{
120    #[doc = "No effect"]
121    #[inline(always)]
122    pub fn no_effect(self) -> &'a mut crate::W<REG> {
123        self.variant(GpioInt0Irq5::NoEffect)
124    }
125    #[doc = "Sets the START_EN1 Bit"]
126    #[inline(always)]
127    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
128        self.variant(GpioInt0Irq5::SetStartEn1)
129    }
130}
131#[doc = "no description available\n\nValue on reset: 0"]
132#[cfg_attr(feature = "defmt", derive(defmt::Format))]
133#[derive(Clone, Copy, Debug, PartialEq, Eq)]
134pub enum GpioInt0Irq6 {
135    #[doc = "0: No effect"]
136    NoEffect = 0,
137    #[doc = "1: Sets the START_EN1 Bit"]
138    SetStartEn1 = 1,
139}
140impl From<GpioInt0Irq6> for bool {
141    #[inline(always)]
142    fn from(variant: GpioInt0Irq6) -> Self {
143        variant as u8 != 0
144    }
145}
146#[doc = "Field `GPIO_INT0_IRQ6` writer - no description available"]
147pub type GpioInt0Irq6W<'a, REG> = crate::BitWriter<'a, REG, GpioInt0Irq6>;
148impl<'a, REG> GpioInt0Irq6W<'a, REG>
149where
150    REG: crate::Writable + crate::RegisterSpec,
151{
152    #[doc = "No effect"]
153    #[inline(always)]
154    pub fn no_effect(self) -> &'a mut crate::W<REG> {
155        self.variant(GpioInt0Irq6::NoEffect)
156    }
157    #[doc = "Sets the START_EN1 Bit"]
158    #[inline(always)]
159    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
160        self.variant(GpioInt0Irq6::SetStartEn1)
161    }
162}
163#[doc = "no description available\n\nValue on reset: 0"]
164#[cfg_attr(feature = "defmt", derive(defmt::Format))]
165#[derive(Clone, Copy, Debug, PartialEq, Eq)]
166pub enum GpioInt0Irq7 {
167    #[doc = "0: No effect"]
168    NoEffect = 0,
169    #[doc = "1: Sets the START_EN1 Bit"]
170    SetStartEn1 = 1,
171}
172impl From<GpioInt0Irq7> for bool {
173    #[inline(always)]
174    fn from(variant: GpioInt0Irq7) -> Self {
175        variant as u8 != 0
176    }
177}
178#[doc = "Field `GPIO_INT0_IRQ7` writer - no description available"]
179pub type GpioInt0Irq7W<'a, REG> = crate::BitWriter<'a, REG, GpioInt0Irq7>;
180impl<'a, REG> GpioInt0Irq7W<'a, REG>
181where
182    REG: crate::Writable + crate::RegisterSpec,
183{
184    #[doc = "No effect"]
185    #[inline(always)]
186    pub fn no_effect(self) -> &'a mut crate::W<REG> {
187        self.variant(GpioInt0Irq7::NoEffect)
188    }
189    #[doc = "Sets the START_EN1 Bit"]
190    #[inline(always)]
191    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
192        self.variant(GpioInt0Irq7::SetStartEn1)
193    }
194}
195#[doc = "no description available\n\nValue on reset: 0"]
196#[cfg_attr(feature = "defmt", derive(defmt::Format))]
197#[derive(Clone, Copy, Debug, PartialEq, Eq)]
198pub enum Ct32bit2 {
199    #[doc = "0: No effect"]
200    NoEffect = 0,
201    #[doc = "1: Sets the START_EN1 Bit"]
202    SetStartEn1 = 1,
203}
204impl From<Ct32bit2> for bool {
205    #[inline(always)]
206    fn from(variant: Ct32bit2) -> Self {
207        variant as u8 != 0
208    }
209}
210#[doc = "Field `CT32BIT2` writer - no description available"]
211pub type Ct32bit2W<'a, REG> = crate::BitWriter<'a, REG, Ct32bit2>;
212impl<'a, REG> Ct32bit2W<'a, REG>
213where
214    REG: crate::Writable + crate::RegisterSpec,
215{
216    #[doc = "No effect"]
217    #[inline(always)]
218    pub fn no_effect(self) -> &'a mut crate::W<REG> {
219        self.variant(Ct32bit2::NoEffect)
220    }
221    #[doc = "Sets the START_EN1 Bit"]
222    #[inline(always)]
223    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
224        self.variant(Ct32bit2::SetStartEn1)
225    }
226}
227#[doc = "no description available\n\nValue on reset: 0"]
228#[cfg_attr(feature = "defmt", derive(defmt::Format))]
229#[derive(Clone, Copy, Debug, PartialEq, Eq)]
230pub enum Ct32bit4 {
231    #[doc = "0: No effect"]
232    NoEffect = 0,
233    #[doc = "1: Sets the START_EN1 Bit"]
234    SetStartEn1 = 1,
235}
236impl From<Ct32bit4> for bool {
237    #[inline(always)]
238    fn from(variant: Ct32bit4) -> Self {
239        variant as u8 != 0
240    }
241}
242#[doc = "Field `CT32BIT4` writer - no description available"]
243pub type Ct32bit4W<'a, REG> = crate::BitWriter<'a, REG, Ct32bit4>;
244impl<'a, REG> Ct32bit4W<'a, REG>
245where
246    REG: crate::Writable + crate::RegisterSpec,
247{
248    #[doc = "No effect"]
249    #[inline(always)]
250    pub fn no_effect(self) -> &'a mut crate::W<REG> {
251        self.variant(Ct32bit4::NoEffect)
252    }
253    #[doc = "Sets the START_EN1 Bit"]
254    #[inline(always)]
255    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
256        self.variant(Ct32bit4::SetStartEn1)
257    }
258}
259#[doc = "no description available\n\nValue on reset: 0"]
260#[cfg_attr(feature = "defmt", derive(defmt::Format))]
261#[derive(Clone, Copy, Debug, PartialEq, Eq)]
262pub enum OsEventTimerWu {
263    #[doc = "0: No effect"]
264    NoEffect = 0,
265    #[doc = "1: Sets the START_EN1 Bit"]
266    SetStartEn1 = 1,
267}
268impl From<OsEventTimerWu> for bool {
269    #[inline(always)]
270    fn from(variant: OsEventTimerWu) -> Self {
271        variant as u8 != 0
272    }
273}
274#[doc = "Field `OS_EVENT_TIMER_WU` writer - no description available"]
275pub type OsEventTimerWuW<'a, REG> = crate::BitWriter<'a, REG, OsEventTimerWu>;
276impl<'a, REG> OsEventTimerWuW<'a, REG>
277where
278    REG: crate::Writable + crate::RegisterSpec,
279{
280    #[doc = "No effect"]
281    #[inline(always)]
282    pub fn no_effect(self) -> &'a mut crate::W<REG> {
283        self.variant(OsEventTimerWu::NoEffect)
284    }
285    #[doc = "Sets the START_EN1 Bit"]
286    #[inline(always)]
287    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
288        self.variant(OsEventTimerWu::SetStartEn1)
289    }
290}
291#[doc = "no description available\n\nValue on reset: 0"]
292#[cfg_attr(feature = "defmt", derive(defmt::Format))]
293#[derive(Clone, Copy, Debug, PartialEq, Eq)]
294pub enum Flexspi {
295    #[doc = "0: No effect"]
296    NoEffect = 0,
297    #[doc = "1: Sets the START_EN1 Bit"]
298    SetStartEn1 = 1,
299}
300impl From<Flexspi> for bool {
301    #[inline(always)]
302    fn from(variant: Flexspi) -> Self {
303        variant as u8 != 0
304    }
305}
306#[doc = "Field `FLEXSPI` writer - no description available"]
307pub type FlexspiW<'a, REG> = crate::BitWriter<'a, REG, Flexspi>;
308impl<'a, REG> FlexspiW<'a, REG>
309where
310    REG: crate::Writable + crate::RegisterSpec,
311{
312    #[doc = "No effect"]
313    #[inline(always)]
314    pub fn no_effect(self) -> &'a mut crate::W<REG> {
315        self.variant(Flexspi::NoEffect)
316    }
317    #[doc = "Sets the START_EN1 Bit"]
318    #[inline(always)]
319    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
320        self.variant(Flexspi::SetStartEn1)
321    }
322}
323#[doc = "no description available\n\nValue on reset: 0"]
324#[cfg_attr(feature = "defmt", derive(defmt::Format))]
325#[derive(Clone, Copy, Debug, PartialEq, Eq)]
326pub enum Flexcomm6 {
327    #[doc = "0: No effect"]
328    NoEffect = 0,
329    #[doc = "1: Sets the START_EN1 Bit"]
330    SetStartEn1 = 1,
331}
332impl From<Flexcomm6> for bool {
333    #[inline(always)]
334    fn from(variant: Flexcomm6) -> Self {
335        variant as u8 != 0
336    }
337}
338#[doc = "Field `FLEXCOMM6` writer - no description available"]
339pub type Flexcomm6W<'a, REG> = crate::BitWriter<'a, REG, Flexcomm6>;
340impl<'a, REG> Flexcomm6W<'a, REG>
341where
342    REG: crate::Writable + crate::RegisterSpec,
343{
344    #[doc = "No effect"]
345    #[inline(always)]
346    pub fn no_effect(self) -> &'a mut crate::W<REG> {
347        self.variant(Flexcomm6::NoEffect)
348    }
349    #[doc = "Sets the START_EN1 Bit"]
350    #[inline(always)]
351    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
352        self.variant(Flexcomm6::SetStartEn1)
353    }
354}
355#[doc = "no description available\n\nValue on reset: 0"]
356#[cfg_attr(feature = "defmt", derive(defmt::Format))]
357#[derive(Clone, Copy, Debug, PartialEq, Eq)]
358pub enum Flexcomm7 {
359    #[doc = "0: No effect"]
360    NoEffect = 0,
361    #[doc = "1: Sets the START_EN1 Bit"]
362    SetStartEn1 = 1,
363}
364impl From<Flexcomm7> for bool {
365    #[inline(always)]
366    fn from(variant: Flexcomm7) -> Self {
367        variant as u8 != 0
368    }
369}
370#[doc = "Field `FLEXCOMM7` writer - no description available"]
371pub type Flexcomm7W<'a, REG> = crate::BitWriter<'a, REG, Flexcomm7>;
372impl<'a, REG> Flexcomm7W<'a, REG>
373where
374    REG: crate::Writable + crate::RegisterSpec,
375{
376    #[doc = "No effect"]
377    #[inline(always)]
378    pub fn no_effect(self) -> &'a mut crate::W<REG> {
379        self.variant(Flexcomm7::NoEffect)
380    }
381    #[doc = "Sets the START_EN1 Bit"]
382    #[inline(always)]
383    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
384        self.variant(Flexcomm7::SetStartEn1)
385    }
386}
387#[doc = "no description available\n\nValue on reset: 0"]
388#[cfg_attr(feature = "defmt", derive(defmt::Format))]
389#[derive(Clone, Copy, Debug, PartialEq, Eq)]
390pub enum Sdio0 {
391    #[doc = "0: No effect"]
392    NoEffect = 0,
393    #[doc = "1: Sets the START_EN1 Bit"]
394    SetStartEn1 = 1,
395}
396impl From<Sdio0> for bool {
397    #[inline(always)]
398    fn from(variant: Sdio0) -> Self {
399        variant as u8 != 0
400    }
401}
402#[doc = "Field `SDIO0` writer - no description available"]
403pub type Sdio0W<'a, REG> = crate::BitWriter<'a, REG, Sdio0>;
404impl<'a, REG> Sdio0W<'a, REG>
405where
406    REG: crate::Writable + crate::RegisterSpec,
407{
408    #[doc = "No effect"]
409    #[inline(always)]
410    pub fn no_effect(self) -> &'a mut crate::W<REG> {
411        self.variant(Sdio0::NoEffect)
412    }
413    #[doc = "Sets the START_EN1 Bit"]
414    #[inline(always)]
415    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
416        self.variant(Sdio0::SetStartEn1)
417    }
418}
419#[doc = "no description available\n\nValue on reset: 0"]
420#[cfg_attr(feature = "defmt", derive(defmt::Format))]
421#[derive(Clone, Copy, Debug, PartialEq, Eq)]
422pub enum Sdio1 {
423    #[doc = "0: No effect"]
424    NoEffect = 0,
425    #[doc = "1: Sets the START_EN1 Bit"]
426    SetStartEn1 = 1,
427}
428impl From<Sdio1> for bool {
429    #[inline(always)]
430    fn from(variant: Sdio1) -> Self {
431        variant as u8 != 0
432    }
433}
434#[doc = "Field `SDIO1` writer - no description available"]
435pub type Sdio1W<'a, REG> = crate::BitWriter<'a, REG, Sdio1>;
436impl<'a, REG> Sdio1W<'a, REG>
437where
438    REG: crate::Writable + crate::RegisterSpec,
439{
440    #[doc = "No effect"]
441    #[inline(always)]
442    pub fn no_effect(self) -> &'a mut crate::W<REG> {
443        self.variant(Sdio1::NoEffect)
444    }
445    #[doc = "Sets the START_EN1 Bit"]
446    #[inline(always)]
447    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
448        self.variant(Sdio1::SetStartEn1)
449    }
450}
451#[doc = "no description available\n\nValue on reset: 0"]
452#[cfg_attr(feature = "defmt", derive(defmt::Format))]
453#[derive(Clone, Copy, Debug, PartialEq, Eq)]
454pub enum ShsgpioInt0 {
455    #[doc = "0: No effect"]
456    NoEffect = 0,
457    #[doc = "1: Sets the START_EN1 Bit"]
458    SetStartEn1 = 1,
459}
460impl From<ShsgpioInt0> for bool {
461    #[inline(always)]
462    fn from(variant: ShsgpioInt0) -> Self {
463        variant as u8 != 0
464    }
465}
466#[doc = "Field `SHSGPIO_INT0` writer - no description available"]
467pub type ShsgpioInt0W<'a, REG> = crate::BitWriter<'a, REG, ShsgpioInt0>;
468impl<'a, REG> ShsgpioInt0W<'a, REG>
469where
470    REG: crate::Writable + crate::RegisterSpec,
471{
472    #[doc = "No effect"]
473    #[inline(always)]
474    pub fn no_effect(self) -> &'a mut crate::W<REG> {
475        self.variant(ShsgpioInt0::NoEffect)
476    }
477    #[doc = "Sets the START_EN1 Bit"]
478    #[inline(always)]
479    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
480        self.variant(ShsgpioInt0::SetStartEn1)
481    }
482}
483#[doc = "no description available\n\nValue on reset: 0"]
484#[cfg_attr(feature = "defmt", derive(defmt::Format))]
485#[derive(Clone, Copy, Debug, PartialEq, Eq)]
486pub enum ShsgpioInt1 {
487    #[doc = "0: No effect"]
488    NoEffect = 0,
489    #[doc = "1: Sets the START_EN1 Bit"]
490    SetStartEn1 = 1,
491}
492impl From<ShsgpioInt1> for bool {
493    #[inline(always)]
494    fn from(variant: ShsgpioInt1) -> Self {
495        variant as u8 != 0
496    }
497}
498#[doc = "Field `SHSGPIO_INT1` writer - no description available"]
499pub type ShsgpioInt1W<'a, REG> = crate::BitWriter<'a, REG, ShsgpioInt1>;
500impl<'a, REG> ShsgpioInt1W<'a, REG>
501where
502    REG: crate::Writable + crate::RegisterSpec,
503{
504    #[doc = "No effect"]
505    #[inline(always)]
506    pub fn no_effect(self) -> &'a mut crate::W<REG> {
507        self.variant(ShsgpioInt1::NoEffect)
508    }
509    #[doc = "Sets the START_EN1 Bit"]
510    #[inline(always)]
511    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
512        self.variant(ShsgpioInt1::SetStartEn1)
513    }
514}
515#[doc = "no description available\n\nValue on reset: 0"]
516#[cfg_attr(feature = "defmt", derive(defmt::Format))]
517#[derive(Clone, Copy, Debug, PartialEq, Eq)]
518pub enum I3c0 {
519    #[doc = "0: No effect"]
520    NoEffect = 0,
521    #[doc = "1: Sets the START_EN1 Bit"]
522    SetStartEn1 = 1,
523}
524impl From<I3c0> for bool {
525    #[inline(always)]
526    fn from(variant: I3c0) -> Self {
527        variant as u8 != 0
528    }
529}
530#[doc = "Field `I3C0` writer - no description available"]
531pub type I3c0W<'a, REG> = crate::BitWriter<'a, REG, I3c0>;
532impl<'a, REG> I3c0W<'a, REG>
533where
534    REG: crate::Writable + crate::RegisterSpec,
535{
536    #[doc = "No effect"]
537    #[inline(always)]
538    pub fn no_effect(self) -> &'a mut crate::W<REG> {
539        self.variant(I3c0::NoEffect)
540    }
541    #[doc = "Sets the START_EN1 Bit"]
542    #[inline(always)]
543    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
544        self.variant(I3c0::SetStartEn1)
545    }
546}
547#[doc = "no description available\n\nValue on reset: 0"]
548#[cfg_attr(feature = "defmt", derive(defmt::Format))]
549#[derive(Clone, Copy, Debug, PartialEq, Eq)]
550pub enum UsbIrq {
551    #[doc = "0: No effect"]
552    NoEffect = 0,
553    #[doc = "1: Sets the START_EN1 Bit"]
554    SetStartEn1 = 1,
555}
556impl From<UsbIrq> for bool {
557    #[inline(always)]
558    fn from(variant: UsbIrq) -> Self {
559        variant as u8 != 0
560    }
561}
562#[doc = "Field `USB_IRQ` writer - no description available"]
563pub type UsbIrqW<'a, REG> = crate::BitWriter<'a, REG, UsbIrq>;
564impl<'a, REG> UsbIrqW<'a, REG>
565where
566    REG: crate::Writable + crate::RegisterSpec,
567{
568    #[doc = "No effect"]
569    #[inline(always)]
570    pub fn no_effect(self) -> &'a mut crate::W<REG> {
571        self.variant(UsbIrq::NoEffect)
572    }
573    #[doc = "Sets the START_EN1 Bit"]
574    #[inline(always)]
575    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
576        self.variant(UsbIrq::SetStartEn1)
577    }
578}
579#[doc = "no description available\n\nValue on reset: 0"]
580#[cfg_attr(feature = "defmt", derive(defmt::Format))]
581#[derive(Clone, Copy, Debug, PartialEq, Eq)]
582pub enum UsbNeedclk {
583    #[doc = "0: No effect"]
584    NoEffect = 0,
585    #[doc = "1: Sets the START_EN1 Bit"]
586    SetStartEn1 = 1,
587}
588impl From<UsbNeedclk> for bool {
589    #[inline(always)]
590    fn from(variant: UsbNeedclk) -> Self {
591        variant as u8 != 0
592    }
593}
594#[doc = "Field `USB_NEEDCLK` writer - no description available"]
595pub type UsbNeedclkW<'a, REG> = crate::BitWriter<'a, REG, UsbNeedclk>;
596impl<'a, REG> UsbNeedclkW<'a, REG>
597where
598    REG: crate::Writable + crate::RegisterSpec,
599{
600    #[doc = "No effect"]
601    #[inline(always)]
602    pub fn no_effect(self) -> &'a mut crate::W<REG> {
603        self.variant(UsbNeedclk::NoEffect)
604    }
605    #[doc = "Sets the START_EN1 Bit"]
606    #[inline(always)]
607    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
608        self.variant(UsbNeedclk::SetStartEn1)
609    }
610}
611#[doc = "no description available\n\nValue on reset: 0"]
612#[cfg_attr(feature = "defmt", derive(defmt::Format))]
613#[derive(Clone, Copy, Debug, PartialEq, Eq)]
614pub enum Dmac1 {
615    #[doc = "0: No effect"]
616    NoEffect = 0,
617    #[doc = "1: Sets the START_EN1 Bit"]
618    SetStartEn1 = 1,
619}
620impl From<Dmac1> for bool {
621    #[inline(always)]
622    fn from(variant: Dmac1) -> Self {
623        variant as u8 != 0
624    }
625}
626#[doc = "Field `DMAC1` writer - no description available"]
627pub type Dmac1W<'a, REG> = crate::BitWriter<'a, REG, Dmac1>;
628impl<'a, REG> Dmac1W<'a, REG>
629where
630    REG: crate::Writable + crate::RegisterSpec,
631{
632    #[doc = "No effect"]
633    #[inline(always)]
634    pub fn no_effect(self) -> &'a mut crate::W<REG> {
635        self.variant(Dmac1::NoEffect)
636    }
637    #[doc = "Sets the START_EN1 Bit"]
638    #[inline(always)]
639    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
640        self.variant(Dmac1::SetStartEn1)
641    }
642}
643#[doc = "no description available\n\nValue on reset: 0"]
644#[cfg_attr(feature = "defmt", derive(defmt::Format))]
645#[derive(Clone, Copy, Debug, PartialEq, Eq)]
646pub enum Puf {
647    #[doc = "0: No effect"]
648    NoEffect = 0,
649    #[doc = "1: Sets the START_EN1 Bit"]
650    SetStartEn1 = 1,
651}
652impl From<Puf> for bool {
653    #[inline(always)]
654    fn from(variant: Puf) -> Self {
655        variant as u8 != 0
656    }
657}
658#[doc = "Field `PUF` writer - no description available"]
659pub type PufW<'a, REG> = crate::BitWriter<'a, REG, Puf>;
660impl<'a, REG> PufW<'a, REG>
661where
662    REG: crate::Writable + crate::RegisterSpec,
663{
664    #[doc = "No effect"]
665    #[inline(always)]
666    pub fn no_effect(self) -> &'a mut crate::W<REG> {
667        self.variant(Puf::NoEffect)
668    }
669    #[doc = "Sets the START_EN1 Bit"]
670    #[inline(always)]
671    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
672        self.variant(Puf::SetStartEn1)
673    }
674}
675#[doc = "no description available\n\nValue on reset: 0"]
676#[cfg_attr(feature = "defmt", derive(defmt::Format))]
677#[derive(Clone, Copy, Debug, PartialEq, Eq)]
678pub enum Powerquad {
679    #[doc = "0: No effect"]
680    NoEffect = 0,
681    #[doc = "1: Sets the START_EN1 Bit"]
682    SetStartEn1 = 1,
683}
684impl From<Powerquad> for bool {
685    #[inline(always)]
686    fn from(variant: Powerquad) -> Self {
687        variant as u8 != 0
688    }
689}
690#[doc = "Field `POWERQUAD` writer - no description available"]
691pub type PowerquadW<'a, REG> = crate::BitWriter<'a, REG, Powerquad>;
692impl<'a, REG> PowerquadW<'a, REG>
693where
694    REG: crate::Writable + crate::RegisterSpec,
695{
696    #[doc = "No effect"]
697    #[inline(always)]
698    pub fn no_effect(self) -> &'a mut crate::W<REG> {
699        self.variant(Powerquad::NoEffect)
700    }
701    #[doc = "Sets the START_EN1 Bit"]
702    #[inline(always)]
703    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
704        self.variant(Powerquad::SetStartEn1)
705    }
706}
707#[doc = "no description available\n\nValue on reset: 0"]
708#[cfg_attr(feature = "defmt", derive(defmt::Format))]
709#[derive(Clone, Copy, Debug, PartialEq, Eq)]
710pub enum Casper {
711    #[doc = "0: No effect"]
712    NoEffect = 0,
713    #[doc = "1: Sets the START_EN1 Bit"]
714    SetStartEn1 = 1,
715}
716impl From<Casper> for bool {
717    #[inline(always)]
718    fn from(variant: Casper) -> Self {
719        variant as u8 != 0
720    }
721}
722#[doc = "Field `CASPER` writer - no description available"]
723pub type CasperW<'a, REG> = crate::BitWriter<'a, REG, Casper>;
724impl<'a, REG> CasperW<'a, REG>
725where
726    REG: crate::Writable + crate::RegisterSpec,
727{
728    #[doc = "No effect"]
729    #[inline(always)]
730    pub fn no_effect(self) -> &'a mut crate::W<REG> {
731        self.variant(Casper::NoEffect)
732    }
733    #[doc = "Sets the START_EN1 Bit"]
734    #[inline(always)]
735    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
736        self.variant(Casper::SetStartEn1)
737    }
738}
739#[doc = "no description available\n\nValue on reset: 0"]
740#[cfg_attr(feature = "defmt", derive(defmt::Format))]
741#[derive(Clone, Copy, Debug, PartialEq, Eq)]
742pub enum Pmic {
743    #[doc = "0: No effect"]
744    NoEffect = 0,
745    #[doc = "1: Sets the START_EN1 Bit"]
746    SetStartEn1 = 1,
747}
748impl From<Pmic> for bool {
749    #[inline(always)]
750    fn from(variant: Pmic) -> Self {
751        variant as u8 != 0
752    }
753}
754#[doc = "Field `PMIC` writer - no description available"]
755pub type PmicW<'a, REG> = crate::BitWriter<'a, REG, Pmic>;
756impl<'a, REG> PmicW<'a, REG>
757where
758    REG: crate::Writable + crate::RegisterSpec,
759{
760    #[doc = "No effect"]
761    #[inline(always)]
762    pub fn no_effect(self) -> &'a mut crate::W<REG> {
763        self.variant(Pmic::NoEffect)
764    }
765    #[doc = "Sets the START_EN1 Bit"]
766    #[inline(always)]
767    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
768        self.variant(Pmic::SetStartEn1)
769    }
770}
771#[doc = "no description available\n\nValue on reset: 0"]
772#[cfg_attr(feature = "defmt", derive(defmt::Format))]
773#[derive(Clone, Copy, Debug, PartialEq, Eq)]
774pub enum Sha {
775    #[doc = "0: No effect"]
776    NoEffect = 0,
777    #[doc = "1: Sets the START_EN1 Bit"]
778    SetStartEn1 = 1,
779}
780impl From<Sha> for bool {
781    #[inline(always)]
782    fn from(variant: Sha) -> Self {
783        variant as u8 != 0
784    }
785}
786#[doc = "Field `SHA` writer - no description available"]
787pub type ShaW<'a, REG> = crate::BitWriter<'a, REG, Sha>;
788impl<'a, REG> ShaW<'a, REG>
789where
790    REG: crate::Writable + crate::RegisterSpec,
791{
792    #[doc = "No effect"]
793    #[inline(always)]
794    pub fn no_effect(self) -> &'a mut crate::W<REG> {
795        self.variant(Sha::NoEffect)
796    }
797    #[doc = "Sets the START_EN1 Bit"]
798    #[inline(always)]
799    pub fn set_start_en1(self) -> &'a mut crate::W<REG> {
800        self.variant(Sha::SetStartEn1)
801    }
802}
803#[cfg(feature = "debug")]
804impl core::fmt::Debug for crate::generic::Reg<Starten1SetSpec> {
805    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
806        write!(f, "(not readable)")
807    }
808}
809impl W {
810    #[doc = "Bit 0 - no description available"]
811    #[inline(always)]
812    pub fn rtc_lite0_alarm_or_wakeup(&mut self) -> RtcLite0AlarmOrWakeupW<Starten1SetSpec> {
813        RtcLite0AlarmOrWakeupW::new(self, 0)
814    }
815    #[doc = "Bit 2 - no description available"]
816    #[inline(always)]
817    pub fn mu(&mut self) -> MuW<Starten1SetSpec> {
818        MuW::new(self, 2)
819    }
820    #[doc = "Bit 3 - no description available"]
821    #[inline(always)]
822    pub fn gpio_int0_irq4(&mut self) -> GpioInt0Irq4W<Starten1SetSpec> {
823        GpioInt0Irq4W::new(self, 3)
824    }
825    #[doc = "Bit 4 - no description available"]
826    #[inline(always)]
827    pub fn gpio_int0_irq5(&mut self) -> GpioInt0Irq5W<Starten1SetSpec> {
828        GpioInt0Irq5W::new(self, 4)
829    }
830    #[doc = "Bit 5 - no description available"]
831    #[inline(always)]
832    pub fn gpio_int0_irq6(&mut self) -> GpioInt0Irq6W<Starten1SetSpec> {
833        GpioInt0Irq6W::new(self, 5)
834    }
835    #[doc = "Bit 6 - no description available"]
836    #[inline(always)]
837    pub fn gpio_int0_irq7(&mut self) -> GpioInt0Irq7W<Starten1SetSpec> {
838        GpioInt0Irq7W::new(self, 6)
839    }
840    #[doc = "Bit 7 - no description available"]
841    #[inline(always)]
842    pub fn ct32bit2(&mut self) -> Ct32bit2W<Starten1SetSpec> {
843        Ct32bit2W::new(self, 7)
844    }
845    #[doc = "Bit 8 - no description available"]
846    #[inline(always)]
847    pub fn ct32bit4(&mut self) -> Ct32bit4W<Starten1SetSpec> {
848        Ct32bit4W::new(self, 8)
849    }
850    #[doc = "Bit 9 - no description available"]
851    #[inline(always)]
852    pub fn os_event_timer_wu(&mut self) -> OsEventTimerWuW<Starten1SetSpec> {
853        OsEventTimerWuW::new(self, 9)
854    }
855    #[doc = "Bit 10 - no description available"]
856    #[inline(always)]
857    pub fn flexspi(&mut self) -> FlexspiW<Starten1SetSpec> {
858        FlexspiW::new(self, 10)
859    }
860    #[doc = "Bit 11 - no description available"]
861    #[inline(always)]
862    pub fn flexcomm6(&mut self) -> Flexcomm6W<Starten1SetSpec> {
863        Flexcomm6W::new(self, 11)
864    }
865    #[doc = "Bit 12 - no description available"]
866    #[inline(always)]
867    pub fn flexcomm7(&mut self) -> Flexcomm7W<Starten1SetSpec> {
868        Flexcomm7W::new(self, 12)
869    }
870    #[doc = "Bit 13 - no description available"]
871    #[inline(always)]
872    pub fn sdio0(&mut self) -> Sdio0W<Starten1SetSpec> {
873        Sdio0W::new(self, 13)
874    }
875    #[doc = "Bit 14 - no description available"]
876    #[inline(always)]
877    pub fn sdio1(&mut self) -> Sdio1W<Starten1SetSpec> {
878        Sdio1W::new(self, 14)
879    }
880    #[doc = "Bit 15 - no description available"]
881    #[inline(always)]
882    pub fn shsgpio_int0(&mut self) -> ShsgpioInt0W<Starten1SetSpec> {
883        ShsgpioInt0W::new(self, 15)
884    }
885    #[doc = "Bit 16 - no description available"]
886    #[inline(always)]
887    pub fn shsgpio_int1(&mut self) -> ShsgpioInt1W<Starten1SetSpec> {
888        ShsgpioInt1W::new(self, 16)
889    }
890    #[doc = "Bit 17 - no description available"]
891    #[inline(always)]
892    pub fn i3c0(&mut self) -> I3c0W<Starten1SetSpec> {
893        I3c0W::new(self, 17)
894    }
895    #[doc = "Bit 18 - no description available"]
896    #[inline(always)]
897    pub fn usb_irq(&mut self) -> UsbIrqW<Starten1SetSpec> {
898        UsbIrqW::new(self, 18)
899    }
900    #[doc = "Bit 19 - no description available"]
901    #[inline(always)]
902    pub fn usb_needclk(&mut self) -> UsbNeedclkW<Starten1SetSpec> {
903        UsbNeedclkW::new(self, 19)
904    }
905    #[doc = "Bit 22 - no description available"]
906    #[inline(always)]
907    pub fn dmac1(&mut self) -> Dmac1W<Starten1SetSpec> {
908        Dmac1W::new(self, 22)
909    }
910    #[doc = "Bit 23 - no description available"]
911    #[inline(always)]
912    pub fn puf(&mut self) -> PufW<Starten1SetSpec> {
913        PufW::new(self, 23)
914    }
915    #[doc = "Bit 24 - no description available"]
916    #[inline(always)]
917    pub fn powerquad(&mut self) -> PowerquadW<Starten1SetSpec> {
918        PowerquadW::new(self, 24)
919    }
920    #[doc = "Bit 25 - no description available"]
921    #[inline(always)]
922    pub fn casper(&mut self) -> CasperW<Starten1SetSpec> {
923        CasperW::new(self, 25)
924    }
925    #[doc = "Bit 26 - no description available"]
926    #[inline(always)]
927    pub fn pmic(&mut self) -> PmicW<Starten1SetSpec> {
928        PmicW::new(self, 26)
929    }
930    #[doc = "Bit 27 - no description available"]
931    #[inline(always)]
932    pub fn sha(&mut self) -> ShaW<Starten1SetSpec> {
933        ShaW::new(self, 27)
934    }
935}
936#[doc = "Start enable 1 set\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`starten1_set::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
937pub struct Starten1SetSpec;
938impl crate::RegisterSpec for Starten1SetSpec {
939    type Ux = u32;
940}
941#[doc = "`write(|w| ..)` method takes [`starten1_set::W`](W) writer structure"]
942impl crate::Writable for Starten1SetSpec {
943    type Safety = crate::Unsafe;
944    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
945    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
946}
947#[doc = "`reset()` method sets STARTEN1_SET to value 0"]
948impl crate::Resettable for Starten1SetSpec {
949    const RESET_VALUE: u32 = 0;
950}