efm32gg_pac/efm32gg995/usb/
daint.rs1#[doc = "Register `DAINT` reader"]
2pub struct R(crate::R<DAINT_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<DAINT_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<DAINT_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<DAINT_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `INEPINT0` reader - IN Endpoint 0 Interrupt Bit"]
17pub type INEPINT0_R = crate::BitReader<bool>;
18#[doc = "Field `INEPINT1` reader - IN Endpoint 1 Interrupt Bit"]
19pub type INEPINT1_R = crate::BitReader<bool>;
20#[doc = "Field `INEPINT2` reader - IN Endpoint 2 Interrupt Bit"]
21pub type INEPINT2_R = crate::BitReader<bool>;
22#[doc = "Field `INEPINT3` reader - IN Endpoint 3 Interrupt Bit"]
23pub type INEPINT3_R = crate::BitReader<bool>;
24#[doc = "Field `INEPINT4` reader - IN Endpoint 4 Interrupt Bit"]
25pub type INEPINT4_R = crate::BitReader<bool>;
26#[doc = "Field `INEPINT5` reader - IN Endpoint 5 Interrupt Bit"]
27pub type INEPINT5_R = crate::BitReader<bool>;
28#[doc = "Field `INEPINT6` reader - IN Endpoint 6 Interrupt Bit"]
29pub type INEPINT6_R = crate::BitReader<bool>;
30#[doc = "Field `OUTEPINT0` reader - OUT Endpoint 0 Interrupt Bit"]
31pub type OUTEPINT0_R = crate::BitReader<bool>;
32#[doc = "Field `OUTEPINT1` reader - OUT Endpoint 1 Interrupt Bit"]
33pub type OUTEPINT1_R = crate::BitReader<bool>;
34#[doc = "Field `OUTEPINT2` reader - OUT Endpoint 2 Interrupt Bit"]
35pub type OUTEPINT2_R = crate::BitReader<bool>;
36#[doc = "Field `OUTEPINT3` reader - OUT Endpoint 3 Interrupt Bit"]
37pub type OUTEPINT3_R = crate::BitReader<bool>;
38#[doc = "Field `OUTEPINT4` reader - OUT Endpoint 4 Interrupt Bit"]
39pub type OUTEPINT4_R = crate::BitReader<bool>;
40#[doc = "Field `OUTEPINT5` reader - OUT Endpoint 5 Interrupt Bit"]
41pub type OUTEPINT5_R = crate::BitReader<bool>;
42#[doc = "Field `OUTEPINT6` reader - OUT Endpoint 6 Interrupt Bit"]
43pub type OUTEPINT6_R = crate::BitReader<bool>;
44impl R {
45 #[doc = "Bit 0 - IN Endpoint 0 Interrupt Bit"]
46 #[inline(always)]
47 pub fn inepint0(&self) -> INEPINT0_R {
48 INEPINT0_R::new((self.bits & 1) != 0)
49 }
50 #[doc = "Bit 1 - IN Endpoint 1 Interrupt Bit"]
51 #[inline(always)]
52 pub fn inepint1(&self) -> INEPINT1_R {
53 INEPINT1_R::new(((self.bits >> 1) & 1) != 0)
54 }
55 #[doc = "Bit 2 - IN Endpoint 2 Interrupt Bit"]
56 #[inline(always)]
57 pub fn inepint2(&self) -> INEPINT2_R {
58 INEPINT2_R::new(((self.bits >> 2) & 1) != 0)
59 }
60 #[doc = "Bit 3 - IN Endpoint 3 Interrupt Bit"]
61 #[inline(always)]
62 pub fn inepint3(&self) -> INEPINT3_R {
63 INEPINT3_R::new(((self.bits >> 3) & 1) != 0)
64 }
65 #[doc = "Bit 4 - IN Endpoint 4 Interrupt Bit"]
66 #[inline(always)]
67 pub fn inepint4(&self) -> INEPINT4_R {
68 INEPINT4_R::new(((self.bits >> 4) & 1) != 0)
69 }
70 #[doc = "Bit 5 - IN Endpoint 5 Interrupt Bit"]
71 #[inline(always)]
72 pub fn inepint5(&self) -> INEPINT5_R {
73 INEPINT5_R::new(((self.bits >> 5) & 1) != 0)
74 }
75 #[doc = "Bit 6 - IN Endpoint 6 Interrupt Bit"]
76 #[inline(always)]
77 pub fn inepint6(&self) -> INEPINT6_R {
78 INEPINT6_R::new(((self.bits >> 6) & 1) != 0)
79 }
80 #[doc = "Bit 16 - OUT Endpoint 0 Interrupt Bit"]
81 #[inline(always)]
82 pub fn outepint0(&self) -> OUTEPINT0_R {
83 OUTEPINT0_R::new(((self.bits >> 16) & 1) != 0)
84 }
85 #[doc = "Bit 17 - OUT Endpoint 1 Interrupt Bit"]
86 #[inline(always)]
87 pub fn outepint1(&self) -> OUTEPINT1_R {
88 OUTEPINT1_R::new(((self.bits >> 17) & 1) != 0)
89 }
90 #[doc = "Bit 18 - OUT Endpoint 2 Interrupt Bit"]
91 #[inline(always)]
92 pub fn outepint2(&self) -> OUTEPINT2_R {
93 OUTEPINT2_R::new(((self.bits >> 18) & 1) != 0)
94 }
95 #[doc = "Bit 19 - OUT Endpoint 3 Interrupt Bit"]
96 #[inline(always)]
97 pub fn outepint3(&self) -> OUTEPINT3_R {
98 OUTEPINT3_R::new(((self.bits >> 19) & 1) != 0)
99 }
100 #[doc = "Bit 20 - OUT Endpoint 4 Interrupt Bit"]
101 #[inline(always)]
102 pub fn outepint4(&self) -> OUTEPINT4_R {
103 OUTEPINT4_R::new(((self.bits >> 20) & 1) != 0)
104 }
105 #[doc = "Bit 21 - OUT Endpoint 5 Interrupt Bit"]
106 #[inline(always)]
107 pub fn outepint5(&self) -> OUTEPINT5_R {
108 OUTEPINT5_R::new(((self.bits >> 21) & 1) != 0)
109 }
110 #[doc = "Bit 22 - OUT Endpoint 6 Interrupt Bit"]
111 #[inline(always)]
112 pub fn outepint6(&self) -> OUTEPINT6_R {
113 OUTEPINT6_R::new(((self.bits >> 22) & 1) != 0)
114 }
115}
116#[doc = "Device All Endpoints Interrupt 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 [daint](index.html) module"]
117pub struct DAINT_SPEC;
118impl crate::RegisterSpec for DAINT_SPEC {
119 type Ux = u32;
120}
121#[doc = "`read()` method returns [daint::R](R) reader structure"]
122impl crate::Readable for DAINT_SPEC {
123 type Reader = R;
124}
125#[doc = "`reset()` method sets DAINT to value 0"]
126impl crate::Resettable for DAINT_SPEC {
127 const RESET_VALUE: Self::Ux = 0;
128}