1#[doc = "Register `IR` reader"]
2pub struct R(crate::R<IR_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<IR_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<IR_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<IR_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `IR` writer"]
17pub struct W(crate::W<IR_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<IR_SPEC>;
20 #[inline(always)]
21 fn deref(&self) -> &Self::Target {
22 &self.0
23 }
24}
25impl core::ops::DerefMut for W {
26 #[inline(always)]
27 fn deref_mut(&mut self) -> &mut Self::Target {
28 &mut self.0
29 }
30}
31impl From<crate::W<IR_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<IR_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `IEDONE` reader - IEDONE field"]
38pub type IEDONE_R = crate::BitReader<bool>;
39#[doc = "Field `IEDONE` writer - IEDONE field"]
40pub type IEDONE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IR_SPEC, bool, O>;
41#[doc = "Field `IEEMPTY` reader - IEEMPTY field"]
42pub type IEEMPTY_R = crate::BitReader<bool>;
43#[doc = "Field `IEEMPTY` writer - IEEMPTY field"]
44pub type IEEMPTY_W<'a, const O: u8> = crate::BitWriter<'a, u32, IR_SPEC, bool, O>;
45#[doc = "Field `IEERROR` reader - IEERROR field"]
46pub type IEERROR_R = crate::BitReader<bool>;
47#[doc = "Field `IEERROR` writer - IEERROR field"]
48pub type IEERROR_W<'a, const O: u8> = crate::BitWriter<'a, u32, IR_SPEC, bool, O>;
49#[doc = "Field `ICDONE` reader - ICDONE field"]
50pub type ICDONE_R = crate::BitReader<bool>;
51#[doc = "Field `ICDONE` writer - ICDONE field"]
52pub type ICDONE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IR_SPEC, bool, O>;
53#[doc = "Field `ICEMPTY` reader - ICEMPTY field"]
54pub type ICEMPTY_R = crate::BitReader<bool>;
55#[doc = "Field `ICEMPTY` writer - ICEMPTY field"]
56pub type ICEMPTY_W<'a, const O: u8> = crate::BitWriter<'a, u32, IR_SPEC, bool, O>;
57#[doc = "Field `ICERROR` reader - ICERROR field"]
58pub type ICERROR_R = crate::BitReader<bool>;
59#[doc = "Field `ICERROR` writer - ICERROR field"]
60pub type ICERROR_W<'a, const O: u8> = crate::BitWriter<'a, u32, IR_SPEC, bool, O>;
61#[doc = "Field `IFDONE` reader - IFDONE field"]
62pub type IFDONE_R = crate::BitReader<bool>;
63#[doc = "Field `IFDONE` writer - IFDONE field"]
64pub type IFDONE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IR_SPEC, bool, O>;
65#[doc = "Field `IFEMPTY` reader - IFEMPTY field"]
66pub type IFEMPTY_R = crate::BitReader<bool>;
67#[doc = "Field `IFEMPTY` writer - IFEMPTY field"]
68pub type IFEMPTY_W<'a, const O: u8> = crate::BitWriter<'a, u32, IR_SPEC, bool, O>;
69#[doc = "Field `IFERROR` reader - IFERROR field"]
70pub type IFERROR_R = crate::BitReader<bool>;
71#[doc = "Field `IFERROR` writer - IFERROR field"]
72pub type IFERROR_W<'a, const O: u8> = crate::BitWriter<'a, u32, IR_SPEC, bool, O>;
73impl R {
74 #[doc = "Bit 0 - IEDONE field"]
75 #[inline(always)]
76 pub fn iedone(&self) -> IEDONE_R {
77 IEDONE_R::new((self.bits & 1) != 0)
78 }
79 #[doc = "Bit 2 - IEEMPTY field"]
80 #[inline(always)]
81 pub fn ieempty(&self) -> IEEMPTY_R {
82 IEEMPTY_R::new(((self.bits >> 2) & 1) != 0)
83 }
84 #[doc = "Bit 3 - IEERROR field"]
85 #[inline(always)]
86 pub fn ieerror(&self) -> IEERROR_R {
87 IEERROR_R::new(((self.bits >> 3) & 1) != 0)
88 }
89 #[doc = "Bit 5 - ICDONE field"]
90 #[inline(always)]
91 pub fn icdone(&self) -> ICDONE_R {
92 ICDONE_R::new(((self.bits >> 5) & 1) != 0)
93 }
94 #[doc = "Bit 7 - ICEMPTY field"]
95 #[inline(always)]
96 pub fn icempty(&self) -> ICEMPTY_R {
97 ICEMPTY_R::new(((self.bits >> 7) & 1) != 0)
98 }
99 #[doc = "Bit 8 - ICERROR field"]
100 #[inline(always)]
101 pub fn icerror(&self) -> ICERROR_R {
102 ICERROR_R::new(((self.bits >> 8) & 1) != 0)
103 }
104 #[doc = "Bit 10 - IFDONE field"]
105 #[inline(always)]
106 pub fn ifdone(&self) -> IFDONE_R {
107 IFDONE_R::new(((self.bits >> 10) & 1) != 0)
108 }
109 #[doc = "Bit 12 - IFEMPTY field"]
110 #[inline(always)]
111 pub fn ifempty(&self) -> IFEMPTY_R {
112 IFEMPTY_R::new(((self.bits >> 12) & 1) != 0)
113 }
114 #[doc = "Bit 13 - IFERROR field"]
115 #[inline(always)]
116 pub fn iferror(&self) -> IFERROR_R {
117 IFERROR_R::new(((self.bits >> 13) & 1) != 0)
118 }
119}
120impl W {
121 #[doc = "Bit 0 - IEDONE field"]
122 #[inline(always)]
123 pub fn iedone(&mut self) -> IEDONE_W<0> {
124 IEDONE_W::new(self)
125 }
126 #[doc = "Bit 2 - IEEMPTY field"]
127 #[inline(always)]
128 pub fn ieempty(&mut self) -> IEEMPTY_W<2> {
129 IEEMPTY_W::new(self)
130 }
131 #[doc = "Bit 3 - IEERROR field"]
132 #[inline(always)]
133 pub fn ieerror(&mut self) -> IEERROR_W<3> {
134 IEERROR_W::new(self)
135 }
136 #[doc = "Bit 5 - ICDONE field"]
137 #[inline(always)]
138 pub fn icdone(&mut self) -> ICDONE_W<5> {
139 ICDONE_W::new(self)
140 }
141 #[doc = "Bit 7 - ICEMPTY field"]
142 #[inline(always)]
143 pub fn icempty(&mut self) -> ICEMPTY_W<7> {
144 ICEMPTY_W::new(self)
145 }
146 #[doc = "Bit 8 - ICERROR field"]
147 #[inline(always)]
148 pub fn icerror(&mut self) -> ICERROR_W<8> {
149 ICERROR_W::new(self)
150 }
151 #[doc = "Bit 10 - IFDONE field"]
152 #[inline(always)]
153 pub fn ifdone(&mut self) -> IFDONE_W<10> {
154 IFDONE_W::new(self)
155 }
156 #[doc = "Bit 12 - IFEMPTY field"]
157 #[inline(always)]
158 pub fn ifempty(&mut self) -> IFEMPTY_W<12> {
159 IFEMPTY_W::new(self)
160 }
161 #[doc = "Bit 13 - IFERROR field"]
162 #[inline(always)]
163 pub fn iferror(&mut self) -> IFERROR_W<13> {
164 IFERROR_W::new(self)
165 }
166 #[doc = "Writes raw bits to the register."]
167 #[inline(always)]
168 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
169 self.0.bits(bits);
170 self
171 }
172}
173#[doc = "IR register\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 [ir](index.html) module"]
174pub struct IR_SPEC;
175impl crate::RegisterSpec for IR_SPEC {
176 type Ux = u32;
177}
178#[doc = "`read()` method returns [ir::R](R) reader structure"]
179impl crate::Readable for IR_SPEC {
180 type Reader = R;
181}
182#[doc = "`write(|w| ..)` method takes [ir::W](W) writer structure"]
183impl crate::Writable for IR_SPEC {
184 type Writer = W;
185}
186#[doc = "`reset()` method sets IR to value 0"]
187impl crate::Resettable for IR_SPEC {
188 #[inline(always)]
189 fn reset_value() -> Self::Ux {
190 0
191 }
192}