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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
#[doc = "Register `TTIE` reader"]
pub struct R(crate::R<TTIE_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<TTIE_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<TTIE_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<TTIE_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Register `TTIE` writer"]
pub struct W(crate::W<TTIE_SPEC>);
impl core::ops::Deref for W {
    type Target = crate::W<TTIE_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl core::ops::DerefMut for W {
    #[inline(always)]
    fn deref_mut(&mut self) -> &mut Self::Target {
        &mut self.0
    }
}
impl From<crate::W<TTIE_SPEC>> for W {
    #[inline(always)]
    fn from(writer: crate::W<TTIE_SPEC>) -> Self {
        W(writer)
    }
}
#[doc = "Field `SBCE` reader - Start of Basic Cycle Interrupt Enable"]
pub type SBCE_R = crate::BitReader<bool>;
#[doc = "Field `SBCE` writer - Start of Basic Cycle Interrupt Enable"]
pub type SBCE_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `SMCE` reader - Start of Matrix Cycle Interrupt Enable"]
pub type SMCE_R = crate::BitReader<bool>;
#[doc = "Field `SMCE` writer - Start of Matrix Cycle Interrupt Enable"]
pub type SMCE_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `CSME` reader - Change of Synchronization Mode Interrupt Enable"]
pub type CSME_R = crate::BitReader<bool>;
#[doc = "Field `CSME` writer - Change of Synchronization Mode Interrupt Enable"]
pub type CSME_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `SOGE` reader - Start of Gap Interrupt Enable"]
pub type SOGE_R = crate::BitReader<bool>;
#[doc = "Field `SOGE` writer - Start of Gap Interrupt Enable"]
pub type SOGE_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `RTMIE` reader - Register Time Mark Interrupt Enable"]
pub type RTMIE_R = crate::BitReader<bool>;
#[doc = "Field `RTMIE` writer - Register Time Mark Interrupt Enable"]
pub type RTMIE_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `TTMIE` reader - Trigger Time Mark Event Internal Interrupt Enable"]
pub type TTMIE_R = crate::BitReader<bool>;
#[doc = "Field `TTMIE` writer - Trigger Time Mark Event Internal Interrupt Enable"]
pub type TTMIE_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `SWEE` reader - Stop Watch Event Interrupt Enable"]
pub type SWEE_R = crate::BitReader<bool>;
#[doc = "Field `SWEE` writer - Stop Watch Event Interrupt Enable"]
pub type SWEE_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `GTWE` reader - Global Time Wrap Interrupt Enable"]
pub type GTWE_R = crate::BitReader<bool>;
#[doc = "Field `GTWE` writer - Global Time Wrap Interrupt Enable"]
pub type GTWE_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `GTDE` reader - Global Time Discontinuity Interrupt Enable"]
pub type GTDE_R = crate::BitReader<bool>;
#[doc = "Field `GTDE` writer - Global Time Discontinuity Interrupt Enable"]
pub type GTDE_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `GTEE` reader - Global Time Error Interrupt Enable"]
pub type GTEE_R = crate::BitReader<bool>;
#[doc = "Field `GTEE` writer - Global Time Error Interrupt Enable"]
pub type GTEE_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `TXUE` reader - Tx Count Underflow Interrupt Enable"]
pub type TXUE_R = crate::BitReader<bool>;
#[doc = "Field `TXUE` writer - Tx Count Underflow Interrupt Enable"]
pub type TXUE_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `TXOE` reader - Tx Count Overflow Interrupt Enable"]
pub type TXOE_R = crate::BitReader<bool>;
#[doc = "Field `TXOE` writer - Tx Count Overflow Interrupt Enable"]
pub type TXOE_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `SE1E` reader - Scheduling Error 1 Interrupt Enable"]
pub type SE1E_R = crate::BitReader<bool>;
#[doc = "Field `SE1E` writer - Scheduling Error 1 Interrupt Enable"]
pub type SE1E_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `SE2E` reader - Scheduling Error 2 Interrupt Enable"]
pub type SE2E_R = crate::BitReader<bool>;
#[doc = "Field `SE2E` writer - Scheduling Error 2 Interrupt Enable"]
pub type SE2E_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `ELCE` reader - Change Error Level Interrupt Enable"]
pub type ELCE_R = crate::BitReader<bool>;
#[doc = "Field `ELCE` writer - Change Error Level Interrupt Enable"]
pub type ELCE_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `IWTGE` reader - Initialization Watch Trigger Interrupt Enable"]
pub type IWTGE_R = crate::BitReader<bool>;
#[doc = "Field `IWTGE` writer - Initialization Watch Trigger Interrupt Enable"]
pub type IWTGE_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `WTE` reader - Watch Trigger Interrupt Enable"]
pub type WTE_R = crate::BitReader<bool>;
#[doc = "Field `WTE` writer - Watch Trigger Interrupt Enable"]
pub type WTE_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `AWE` reader - Application Watchdog Interrupt Enable"]
pub type AWE_R = crate::BitReader<bool>;
#[doc = "Field `AWE` writer - Application Watchdog Interrupt Enable"]
pub type AWE_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
#[doc = "Field `CERE` reader - Configuration Error Interrupt Enable"]
pub type CERE_R = crate::BitReader<bool>;
#[doc = "Field `CERE` writer - Configuration Error Interrupt Enable"]
pub type CERE_W<'a, const O: u8> = crate::BitWriter<'a, u32, TTIE_SPEC, bool, O>;
impl R {
    #[doc = "Bit 0 - Start of Basic Cycle Interrupt Enable"]
    #[inline(always)]
    pub fn sbce(&self) -> SBCE_R {
        SBCE_R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Start of Matrix Cycle Interrupt Enable"]
    #[inline(always)]
    pub fn smce(&self) -> SMCE_R {
        SMCE_R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Change of Synchronization Mode Interrupt Enable"]
    #[inline(always)]
    pub fn csme(&self) -> CSME_R {
        CSME_R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Start of Gap Interrupt Enable"]
    #[inline(always)]
    pub fn soge(&self) -> SOGE_R {
        SOGE_R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Register Time Mark Interrupt Enable"]
    #[inline(always)]
    pub fn rtmie(&self) -> RTMIE_R {
        RTMIE_R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Trigger Time Mark Event Internal Interrupt Enable"]
    #[inline(always)]
    pub fn ttmie(&self) -> TTMIE_R {
        TTMIE_R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Stop Watch Event Interrupt Enable"]
    #[inline(always)]
    pub fn swee(&self) -> SWEE_R {
        SWEE_R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Global Time Wrap Interrupt Enable"]
    #[inline(always)]
    pub fn gtwe(&self) -> GTWE_R {
        GTWE_R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - Global Time Discontinuity Interrupt Enable"]
    #[inline(always)]
    pub fn gtde(&self) -> GTDE_R {
        GTDE_R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Global Time Error Interrupt Enable"]
    #[inline(always)]
    pub fn gtee(&self) -> GTEE_R {
        GTEE_R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Tx Count Underflow Interrupt Enable"]
    #[inline(always)]
    pub fn txue(&self) -> TXUE_R {
        TXUE_R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Tx Count Overflow Interrupt Enable"]
    #[inline(always)]
    pub fn txoe(&self) -> TXOE_R {
        TXOE_R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - Scheduling Error 1 Interrupt Enable"]
    #[inline(always)]
    pub fn se1e(&self) -> SE1E_R {
        SE1E_R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - Scheduling Error 2 Interrupt Enable"]
    #[inline(always)]
    pub fn se2e(&self) -> SE2E_R {
        SE2E_R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - Change Error Level Interrupt Enable"]
    #[inline(always)]
    pub fn elce(&self) -> ELCE_R {
        ELCE_R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - Initialization Watch Trigger Interrupt Enable"]
    #[inline(always)]
    pub fn iwtge(&self) -> IWTGE_R {
        IWTGE_R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 16 - Watch Trigger Interrupt Enable"]
    #[inline(always)]
    pub fn wte(&self) -> WTE_R {
        WTE_R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - Application Watchdog Interrupt Enable"]
    #[inline(always)]
    pub fn awe(&self) -> AWE_R {
        AWE_R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - Configuration Error Interrupt Enable"]
    #[inline(always)]
    pub fn cere(&self) -> CERE_R {
        CERE_R::new(((self.bits >> 18) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Start of Basic Cycle Interrupt Enable"]
    #[inline(always)]
    pub fn sbce(&mut self) -> SBCE_W<0> {
        SBCE_W::new(self)
    }
    #[doc = "Bit 1 - Start of Matrix Cycle Interrupt Enable"]
    #[inline(always)]
    pub fn smce(&mut self) -> SMCE_W<1> {
        SMCE_W::new(self)
    }
    #[doc = "Bit 2 - Change of Synchronization Mode Interrupt Enable"]
    #[inline(always)]
    pub fn csme(&mut self) -> CSME_W<2> {
        CSME_W::new(self)
    }
    #[doc = "Bit 3 - Start of Gap Interrupt Enable"]
    #[inline(always)]
    pub fn soge(&mut self) -> SOGE_W<3> {
        SOGE_W::new(self)
    }
    #[doc = "Bit 4 - Register Time Mark Interrupt Enable"]
    #[inline(always)]
    pub fn rtmie(&mut self) -> RTMIE_W<4> {
        RTMIE_W::new(self)
    }
    #[doc = "Bit 5 - Trigger Time Mark Event Internal Interrupt Enable"]
    #[inline(always)]
    pub fn ttmie(&mut self) -> TTMIE_W<5> {
        TTMIE_W::new(self)
    }
    #[doc = "Bit 6 - Stop Watch Event Interrupt Enable"]
    #[inline(always)]
    pub fn swee(&mut self) -> SWEE_W<6> {
        SWEE_W::new(self)
    }
    #[doc = "Bit 7 - Global Time Wrap Interrupt Enable"]
    #[inline(always)]
    pub fn gtwe(&mut self) -> GTWE_W<7> {
        GTWE_W::new(self)
    }
    #[doc = "Bit 8 - Global Time Discontinuity Interrupt Enable"]
    #[inline(always)]
    pub fn gtde(&mut self) -> GTDE_W<8> {
        GTDE_W::new(self)
    }
    #[doc = "Bit 9 - Global Time Error Interrupt Enable"]
    #[inline(always)]
    pub fn gtee(&mut self) -> GTEE_W<9> {
        GTEE_W::new(self)
    }
    #[doc = "Bit 10 - Tx Count Underflow Interrupt Enable"]
    #[inline(always)]
    pub fn txue(&mut self) -> TXUE_W<10> {
        TXUE_W::new(self)
    }
    #[doc = "Bit 11 - Tx Count Overflow Interrupt Enable"]
    #[inline(always)]
    pub fn txoe(&mut self) -> TXOE_W<11> {
        TXOE_W::new(self)
    }
    #[doc = "Bit 12 - Scheduling Error 1 Interrupt Enable"]
    #[inline(always)]
    pub fn se1e(&mut self) -> SE1E_W<12> {
        SE1E_W::new(self)
    }
    #[doc = "Bit 13 - Scheduling Error 2 Interrupt Enable"]
    #[inline(always)]
    pub fn se2e(&mut self) -> SE2E_W<13> {
        SE2E_W::new(self)
    }
    #[doc = "Bit 14 - Change Error Level Interrupt Enable"]
    #[inline(always)]
    pub fn elce(&mut self) -> ELCE_W<14> {
        ELCE_W::new(self)
    }
    #[doc = "Bit 15 - Initialization Watch Trigger Interrupt Enable"]
    #[inline(always)]
    pub fn iwtge(&mut self) -> IWTGE_W<15> {
        IWTGE_W::new(self)
    }
    #[doc = "Bit 16 - Watch Trigger Interrupt Enable"]
    #[inline(always)]
    pub fn wte(&mut self) -> WTE_W<16> {
        WTE_W::new(self)
    }
    #[doc = "Bit 17 - Application Watchdog Interrupt Enable"]
    #[inline(always)]
    pub fn awe(&mut self) -> AWE_W<17> {
        AWE_W::new(self)
    }
    #[doc = "Bit 18 - Configuration Error Interrupt Enable"]
    #[inline(always)]
    pub fn cere(&mut self) -> CERE_W<18> {
        CERE_W::new(self)
    }
    #[doc = "Writes raw bits to the register."]
    #[inline(always)]
    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
        self.0.bits(bits);
        self
    }
}
#[doc = "FDCAN TT Interrupt Enable 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 [ttie](index.html) module"]
pub struct TTIE_SPEC;
impl crate::RegisterSpec for TTIE_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [ttie::R](R) reader structure"]
impl crate::Readable for TTIE_SPEC {
    type Reader = R;
}
#[doc = "`write(|w| ..)` method takes [ttie::W](W) writer structure"]
impl crate::Writable for TTIE_SPEC {
    type Writer = W;
}
#[doc = "`reset()` method sets TTIE to value 0"]
impl crate::Resettable for TTIE_SPEC {
    #[inline(always)]
    fn reset_value() -> Self::Ux {
        0
    }
}