1#[doc = "Register `IE` reader"]
2pub struct R(crate::R<IE_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<IE_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<IE_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<IE_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `IE` writer"]
17pub struct W(crate::W<IE_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<IE_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<IE_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<IE_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `RFOV` reader - RFOV field"]
38pub type RFOV_R = crate::BitReader<bool>;
39#[doc = "Field `RFOV` writer - RFOV field"]
40pub type RFOV_W<'a, const O: u8> = crate::BitWriter<'a, u32, IE_SPEC, bool, O>;
41#[doc = "Field `RFF` reader - RFF field"]
42pub type RFF_R = crate::BitReader<bool>;
43#[doc = "Field `RFF` writer - RFF field"]
44pub type RFF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IE_SPEC, bool, O>;
45#[doc = "Field `RFHF` reader - RFHF field"]
46pub type RFHF_R = crate::BitReader<bool>;
47#[doc = "Field `RFHF` writer - RFHF field"]
48pub type RFHF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IE_SPEC, bool, O>;
49#[doc = "Field `TFE` reader - TFE field"]
50pub type TFE_R = crate::BitReader<bool>;
51#[doc = "Field `TFE` writer - TFE field"]
52pub type TFE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IE_SPEC, bool, O>;
53#[doc = "Field `TFHF` reader - TFHF field"]
54pub type TFHF_R = crate::BitReader<bool>;
55#[doc = "Field `TFHF` writer - TFHF field"]
56pub type TFHF_W<'a, const O: u8> = crate::BitWriter<'a, u32, IE_SPEC, bool, O>;
57#[doc = "Field `RFTHR` reader - RFTHR field"]
58pub type RFTHR_R = crate::BitReader<bool>;
59#[doc = "Field `RFTHR` writer - RFTHR field"]
60pub type RFTHR_W<'a, const O: u8> = crate::BitWriter<'a, u32, IE_SPEC, bool, O>;
61#[doc = "Field `TFTHR` reader - TFTHR field"]
62pub type TFTHR_R = crate::BitReader<bool>;
63#[doc = "Field `TFTHR` writer - TFTHR field"]
64pub type TFTHR_W<'a, const O: u8> = crate::BitWriter<'a, u32, IE_SPEC, bool, O>;
65#[doc = "Field `WTC` reader - WTC field"]
66pub type WTC_R = crate::BitReader<bool>;
67#[doc = "Field `WTC` writer - WTC field"]
68pub type WTC_W<'a, const O: u8> = crate::BitWriter<'a, u32, IE_SPEC, bool, O>;
69#[doc = "Field `FTC` reader - FTC field"]
70pub type FTC_R = crate::BitReader<bool>;
71#[doc = "Field `FTC` writer - FTC field"]
72pub type FTC_W<'a, const O: u8> = crate::BitWriter<'a, u32, IE_SPEC, bool, O>;
73#[doc = "Field `SSFALL` reader - SSFALL field"]
74pub type SSFALL_R = crate::BitReader<bool>;
75#[doc = "Field `SSFALL` writer - SSFALL field"]
76pub type SSFALL_W<'a, const O: u8> = crate::BitWriter<'a, u32, IE_SPEC, bool, O>;
77#[doc = "Field `SSRISE` reader - SSRISE field"]
78pub type SSRISE_R = crate::BitReader<bool>;
79#[doc = "Field `SSRISE` writer - SSRISE field"]
80pub type SSRISE_W<'a, const O: u8> = crate::BitWriter<'a, u32, IE_SPEC, bool, O>;
81impl R {
82 #[doc = "Bit 0 - RFOV field"]
83 #[inline(always)]
84 pub fn rfov(&self) -> RFOV_R {
85 RFOV_R::new((self.bits & 1) != 0)
86 }
87 #[doc = "Bit 1 - RFF field"]
88 #[inline(always)]
89 pub fn rff(&self) -> RFF_R {
90 RFF_R::new(((self.bits >> 1) & 1) != 0)
91 }
92 #[doc = "Bit 2 - RFHF field"]
93 #[inline(always)]
94 pub fn rfhf(&self) -> RFHF_R {
95 RFHF_R::new(((self.bits >> 2) & 1) != 0)
96 }
97 #[doc = "Bit 3 - TFE field"]
98 #[inline(always)]
99 pub fn tfe(&self) -> TFE_R {
100 TFE_R::new(((self.bits >> 3) & 1) != 0)
101 }
102 #[doc = "Bit 4 - TFHF field"]
103 #[inline(always)]
104 pub fn tfhf(&self) -> TFHF_R {
105 TFHF_R::new(((self.bits >> 4) & 1) != 0)
106 }
107 #[doc = "Bit 5 - RFTHR field"]
108 #[inline(always)]
109 pub fn rfthr(&self) -> RFTHR_R {
110 RFTHR_R::new(((self.bits >> 5) & 1) != 0)
111 }
112 #[doc = "Bit 6 - TFTHR field"]
113 #[inline(always)]
114 pub fn tfthr(&self) -> TFTHR_R {
115 TFTHR_R::new(((self.bits >> 6) & 1) != 0)
116 }
117 #[doc = "Bit 8 - WTC field"]
118 #[inline(always)]
119 pub fn wtc(&self) -> WTC_R {
120 WTC_R::new(((self.bits >> 8) & 1) != 0)
121 }
122 #[doc = "Bit 9 - FTC field"]
123 #[inline(always)]
124 pub fn ftc(&self) -> FTC_R {
125 FTC_R::new(((self.bits >> 9) & 1) != 0)
126 }
127 #[doc = "Bit 10 - SSFALL field"]
128 #[inline(always)]
129 pub fn ssfall(&self) -> SSFALL_R {
130 SSFALL_R::new(((self.bits >> 10) & 1) != 0)
131 }
132 #[doc = "Bit 11 - SSRISE field"]
133 #[inline(always)]
134 pub fn ssrise(&self) -> SSRISE_R {
135 SSRISE_R::new(((self.bits >> 11) & 1) != 0)
136 }
137}
138impl W {
139 #[doc = "Bit 0 - RFOV field"]
140 #[inline(always)]
141 pub fn rfov(&mut self) -> RFOV_W<0> {
142 RFOV_W::new(self)
143 }
144 #[doc = "Bit 1 - RFF field"]
145 #[inline(always)]
146 pub fn rff(&mut self) -> RFF_W<1> {
147 RFF_W::new(self)
148 }
149 #[doc = "Bit 2 - RFHF field"]
150 #[inline(always)]
151 pub fn rfhf(&mut self) -> RFHF_W<2> {
152 RFHF_W::new(self)
153 }
154 #[doc = "Bit 3 - TFE field"]
155 #[inline(always)]
156 pub fn tfe(&mut self) -> TFE_W<3> {
157 TFE_W::new(self)
158 }
159 #[doc = "Bit 4 - TFHF field"]
160 #[inline(always)]
161 pub fn tfhf(&mut self) -> TFHF_W<4> {
162 TFHF_W::new(self)
163 }
164 #[doc = "Bit 5 - RFTHR field"]
165 #[inline(always)]
166 pub fn rfthr(&mut self) -> RFTHR_W<5> {
167 RFTHR_W::new(self)
168 }
169 #[doc = "Bit 6 - TFTHR field"]
170 #[inline(always)]
171 pub fn tfthr(&mut self) -> TFTHR_W<6> {
172 TFTHR_W::new(self)
173 }
174 #[doc = "Bit 8 - WTC field"]
175 #[inline(always)]
176 pub fn wtc(&mut self) -> WTC_W<8> {
177 WTC_W::new(self)
178 }
179 #[doc = "Bit 9 - FTC field"]
180 #[inline(always)]
181 pub fn ftc(&mut self) -> FTC_W<9> {
182 FTC_W::new(self)
183 }
184 #[doc = "Bit 10 - SSFALL field"]
185 #[inline(always)]
186 pub fn ssfall(&mut self) -> SSFALL_W<10> {
187 SSFALL_W::new(self)
188 }
189 #[doc = "Bit 11 - SSRISE field"]
190 #[inline(always)]
191 pub fn ssrise(&mut self) -> SSRISE_W<11> {
192 SSRISE_W::new(self)
193 }
194 #[doc = "Writes raw bits to the register."]
195 #[inline(always)]
196 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
197 self.0.bits(bits);
198 self
199 }
200}
201#[doc = "IE 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 [ie](index.html) module"]
202pub struct IE_SPEC;
203impl crate::RegisterSpec for IE_SPEC {
204 type Ux = u32;
205}
206#[doc = "`read()` method returns [ie::R](R) reader structure"]
207impl crate::Readable for IE_SPEC {
208 type Reader = R;
209}
210#[doc = "`write(|w| ..)` method takes [ie::W](W) writer structure"]
211impl crate::Writable for IE_SPEC {
212 type Writer = W;
213}
214#[doc = "`reset()` method sets IE to value 0"]
215impl crate::Resettable for IE_SPEC {
216 #[inline(always)]
217 fn reset_value() -> Self::Ux {
218 0
219 }
220}