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
#[doc = "Register `UDINTE` reader"]
pub struct R(crate::R<UDINTE_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<UDINTE_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<UDINTE_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<UDINTE_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `SUSPE` reader - SUSP Interrupt Enable"]
pub type SUSPE_R = crate::BitReader<bool>;
#[doc = "Field `MSOFE` reader - MSOF Interrupt Enable"]
pub type MSOFE_R = crate::BitReader<bool>;
#[doc = "Field `SOFE` reader - SOF Interrupt Enable"]
pub type SOFE_R = crate::BitReader<bool>;
#[doc = "Field `EORSTE` reader - EORST Interrupt Enable"]
pub type EORSTE_R = crate::BitReader<bool>;
#[doc = "Field `WAKEUPE` reader - WAKEUP Interrupt Enable"]
pub type WAKEUPE_R = crate::BitReader<bool>;
#[doc = "Field `EORSME` reader - EORSM Interrupt Enable"]
pub type EORSME_R = crate::BitReader<bool>;
#[doc = "Field `UPRSME` reader - UPRSM Interrupt Enable"]
pub type UPRSME_R = crate::BitReader<bool>;
#[doc = "Field `EP0INTE` reader - EP0INT Interrupt Enable"]
pub type EP0INTE_R = crate::BitReader<bool>;
#[doc = "Field `EP1INTE` reader - EP1INT Interrupt Enable"]
pub type EP1INTE_R = crate::BitReader<bool>;
#[doc = "Field `EP2INTE` reader - EP2INT Interrupt Enable"]
pub type EP2INTE_R = crate::BitReader<bool>;
#[doc = "Field `EP3INTE` reader - EP3INT Interrupt Enable"]
pub type EP3INTE_R = crate::BitReader<bool>;
#[doc = "Field `EP4INTE` reader - EP4INT Interrupt Enable"]
pub type EP4INTE_R = crate::BitReader<bool>;
#[doc = "Field `EP5INTE` reader - EP5INT Interrupt Enable"]
pub type EP5INTE_R = crate::BitReader<bool>;
#[doc = "Field `EP6INTE` reader - EP6INT Interrupt Enable"]
pub type EP6INTE_R = crate::BitReader<bool>;
#[doc = "Field `EP7INTE` reader - EP7INT Interrupt Enable"]
pub type EP7INTE_R = crate::BitReader<bool>;
impl R {
    #[doc = "Bit 0 - SUSP Interrupt Enable"]
    #[inline(always)]
    pub fn suspe(&self) -> SUSPE_R {
        SUSPE_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - MSOF Interrupt Enable"]
    #[inline(always)]
    pub fn msofe(&self) -> MSOFE_R {
        MSOFE_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - SOF Interrupt Enable"]
    #[inline(always)]
    pub fn sofe(&self) -> SOFE_R {
        SOFE_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - EORST Interrupt Enable"]
    #[inline(always)]
    pub fn eorste(&self) -> EORSTE_R {
        EORSTE_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - WAKEUP Interrupt Enable"]
    #[inline(always)]
    pub fn wakeupe(&self) -> WAKEUPE_R {
        WAKEUPE_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - EORSM Interrupt Enable"]
    #[inline(always)]
    pub fn eorsme(&self) -> EORSME_R {
        EORSME_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - UPRSM Interrupt Enable"]
    #[inline(always)]
    pub fn uprsme(&self) -> UPRSME_R {
        UPRSME_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 12 - EP0INT Interrupt Enable"]
    #[inline(always)]
    pub fn ep0inte(&self) -> EP0INTE_R {
        EP0INTE_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - EP1INT Interrupt Enable"]
    #[inline(always)]
    pub fn ep1inte(&self) -> EP1INTE_R {
        EP1INTE_R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - EP2INT Interrupt Enable"]
    #[inline(always)]
    pub fn ep2inte(&self) -> EP2INTE_R {
        EP2INTE_R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - EP3INT Interrupt Enable"]
    #[inline(always)]
    pub fn ep3inte(&self) -> EP3INTE_R {
        EP3INTE_R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 16 - EP4INT Interrupt Enable"]
    #[inline(always)]
    pub fn ep4inte(&self) -> EP4INTE_R {
        EP4INTE_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - EP5INT Interrupt Enable"]
    #[inline(always)]
    pub fn ep5inte(&self) -> EP5INTE_R {
        EP5INTE_R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - EP6INT Interrupt Enable"]
    #[inline(always)]
    pub fn ep6inte(&self) -> EP6INTE_R {
        EP6INTE_R::new(((self.bits >> 18) & 1) != 0)
    }
    #[doc = "Bit 19 - EP7INT Interrupt Enable"]
    #[inline(always)]
    pub fn ep7inte(&self) -> EP7INTE_R {
        EP7INTE_R::new(((self.bits >> 19) & 1) != 0)
    }
}
#[doc = "Device Global Interrupt Enable 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 [udinte](index.html) module"]
pub struct UDINTE_SPEC;
impl crate::RegisterSpec for UDINTE_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [udinte::R](R) reader structure"]
impl crate::Readable for UDINTE_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets UDINTE to value 0"]
impl crate::Resettable for UDINTE_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}