1#[doc = "Register `TRIGCTRL` reader"]
2pub struct R(crate::R<TRIGCTRL_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<TRIGCTRL_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<TRIGCTRL_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<TRIGCTRL_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Register `TRIGCTRL` writer"]
17pub struct W(crate::W<TRIGCTRL_SPEC>);
18impl core::ops::Deref for W {
19 type Target = crate::W<TRIGCTRL_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<TRIGCTRL_SPEC>> for W {
32 #[inline(always)]
33 fn from(writer: crate::W<TRIGCTRL_SPEC>) -> Self {
34 W(writer)
35 }
36}
37#[doc = "Field `RXTEN` reader - Receive Trigger Enable"]
38pub type RXTEN_R = crate::BitReader<bool>;
39#[doc = "Field `RXTEN` writer - Receive Trigger Enable"]
40pub type RXTEN_W<'a> = crate::BitWriter<'a, u32, TRIGCTRL_SPEC, bool, 4>;
41#[doc = "Field `TXTEN` reader - Transmit Trigger Enable"]
42pub type TXTEN_R = crate::BitReader<bool>;
43#[doc = "Field `TXTEN` writer - Transmit Trigger Enable"]
44pub type TXTEN_W<'a> = crate::BitWriter<'a, u32, TRIGCTRL_SPEC, bool, 5>;
45#[doc = "Field `AUTOTXTEN` reader - AUTOTX Trigger Enable"]
46pub type AUTOTXTEN_R = crate::BitReader<bool>;
47#[doc = "Field `AUTOTXTEN` writer - AUTOTX Trigger Enable"]
48pub type AUTOTXTEN_W<'a> = crate::BitWriter<'a, u32, TRIGCTRL_SPEC, bool, 6>;
49#[doc = "Field `TXARX0EN` reader - Enable Transmit Trigger After RX End of Frame Plus TCMP0VAL"]
50pub type TXARX0EN_R = crate::BitReader<bool>;
51#[doc = "Field `TXARX0EN` writer - Enable Transmit Trigger After RX End of Frame Plus TCMP0VAL"]
52pub type TXARX0EN_W<'a> = crate::BitWriter<'a, u32, TRIGCTRL_SPEC, bool, 7>;
53#[doc = "Field `TXARX1EN` reader - Enable Transmit Trigger After RX End of Frame Plus TCMP1VAL"]
54pub type TXARX1EN_R = crate::BitReader<bool>;
55#[doc = "Field `TXARX1EN` writer - Enable Transmit Trigger After RX End of Frame Plus TCMP1VAL"]
56pub type TXARX1EN_W<'a> = crate::BitWriter<'a, u32, TRIGCTRL_SPEC, bool, 8>;
57#[doc = "Field `TXARX2EN` reader - Enable Transmit Trigger After RX End of Frame Plus TCMP2VAL"]
58pub type TXARX2EN_R = crate::BitReader<bool>;
59#[doc = "Field `TXARX2EN` writer - Enable Transmit Trigger After RX End of Frame Plus TCMP2VAL"]
60pub type TXARX2EN_W<'a> = crate::BitWriter<'a, u32, TRIGCTRL_SPEC, bool, 9>;
61#[doc = "Field `RXATX0EN` reader - Enable Receive Trigger After TX End of Frame Plus TCMPVAL0 Baud-times"]
62pub type RXATX0EN_R = crate::BitReader<bool>;
63#[doc = "Field `RXATX0EN` writer - Enable Receive Trigger After TX End of Frame Plus TCMPVAL0 Baud-times"]
64pub type RXATX0EN_W<'a> = crate::BitWriter<'a, u32, TRIGCTRL_SPEC, bool, 10>;
65#[doc = "Field `RXATX1EN` reader - Enable Receive Trigger After TX End of Frame Plus TCMPVAL1 Baud-times"]
66pub type RXATX1EN_R = crate::BitReader<bool>;
67#[doc = "Field `RXATX1EN` writer - Enable Receive Trigger After TX End of Frame Plus TCMPVAL1 Baud-times"]
68pub type RXATX1EN_W<'a> = crate::BitWriter<'a, u32, TRIGCTRL_SPEC, bool, 11>;
69#[doc = "Field `RXATX2EN` reader - Enable Receive Trigger After TX End of Frame Plus TCMPVAL2 Baud-times"]
70pub type RXATX2EN_R = crate::BitReader<bool>;
71#[doc = "Field `RXATX2EN` writer - Enable Receive Trigger After TX End of Frame Plus TCMPVAL2 Baud-times"]
72pub type RXATX2EN_W<'a> = crate::BitWriter<'a, u32, TRIGCTRL_SPEC, bool, 12>;
73#[doc = "Trigger PRS Channel Select\n\nValue on reset: 0"]
74#[derive(Clone, Copy, Debug, PartialEq)]
75#[repr(u8)]
76pub enum TSEL_A {
77 #[doc = "0: PRS Channel 0 selected"]
78 PRSCH0 = 0,
79 #[doc = "1: PRS Channel 1 selected"]
80 PRSCH1 = 1,
81 #[doc = "2: PRS Channel 2 selected"]
82 PRSCH2 = 2,
83 #[doc = "3: PRS Channel 3 selected"]
84 PRSCH3 = 3,
85 #[doc = "4: PRS Channel 4 selected"]
86 PRSCH4 = 4,
87 #[doc = "5: PRS Channel 5 selected"]
88 PRSCH5 = 5,
89 #[doc = "6: PRS Channel 6 selected"]
90 PRSCH6 = 6,
91 #[doc = "7: PRS Channel 7 selected"]
92 PRSCH7 = 7,
93 #[doc = "8: PRS Channel 8 selected"]
94 PRSCH8 = 8,
95 #[doc = "9: PRS Channel 9 selected"]
96 PRSCH9 = 9,
97 #[doc = "10: PRS Channel 10 selected"]
98 PRSCH10 = 10,
99 #[doc = "11: PRS Channel 11 selected"]
100 PRSCH11 = 11,
101 #[doc = "12: PRS Channel 12 selected"]
102 PRSCH12 = 12,
103 #[doc = "13: PRS Channel 13 selected"]
104 PRSCH13 = 13,
105 #[doc = "14: PRS Channel 14 selected"]
106 PRSCH14 = 14,
107 #[doc = "15: PRS Channel 15 selected"]
108 PRSCH15 = 15,
109 #[doc = "16: PRS Channel 16 selected"]
110 PRSCH16 = 16,
111 #[doc = "17: PRS Channel 17 selected"]
112 PRSCH17 = 17,
113 #[doc = "18: PRS Channel 18 selected"]
114 PRSCH18 = 18,
115 #[doc = "19: PRS Channel 19 selected"]
116 PRSCH19 = 19,
117 #[doc = "20: PRS Channel 20 selected"]
118 PRSCH20 = 20,
119 #[doc = "21: PRS Channel 21 selected"]
120 PRSCH21 = 21,
121 #[doc = "22: PRS Channel 22 selected"]
122 PRSCH22 = 22,
123 #[doc = "23: PRS Channel 23 selected"]
124 PRSCH23 = 23,
125}
126impl From<TSEL_A> for u8 {
127 #[inline(always)]
128 fn from(variant: TSEL_A) -> Self {
129 variant as _
130 }
131}
132#[doc = "Field `TSEL` reader - Trigger PRS Channel Select"]
133pub type TSEL_R = crate::FieldReader<u8, TSEL_A>;
134impl TSEL_R {
135 #[doc = "Get enumerated values variant"]
136 #[inline(always)]
137 pub fn variant(&self) -> Option<TSEL_A> {
138 match self.bits {
139 0 => Some(TSEL_A::PRSCH0),
140 1 => Some(TSEL_A::PRSCH1),
141 2 => Some(TSEL_A::PRSCH2),
142 3 => Some(TSEL_A::PRSCH3),
143 4 => Some(TSEL_A::PRSCH4),
144 5 => Some(TSEL_A::PRSCH5),
145 6 => Some(TSEL_A::PRSCH6),
146 7 => Some(TSEL_A::PRSCH7),
147 8 => Some(TSEL_A::PRSCH8),
148 9 => Some(TSEL_A::PRSCH9),
149 10 => Some(TSEL_A::PRSCH10),
150 11 => Some(TSEL_A::PRSCH11),
151 12 => Some(TSEL_A::PRSCH12),
152 13 => Some(TSEL_A::PRSCH13),
153 14 => Some(TSEL_A::PRSCH14),
154 15 => Some(TSEL_A::PRSCH15),
155 16 => Some(TSEL_A::PRSCH16),
156 17 => Some(TSEL_A::PRSCH17),
157 18 => Some(TSEL_A::PRSCH18),
158 19 => Some(TSEL_A::PRSCH19),
159 20 => Some(TSEL_A::PRSCH20),
160 21 => Some(TSEL_A::PRSCH21),
161 22 => Some(TSEL_A::PRSCH22),
162 23 => Some(TSEL_A::PRSCH23),
163 _ => None,
164 }
165 }
166 #[doc = "Checks if the value of the field is `PRSCH0`"]
167 #[inline(always)]
168 pub fn is_prsch0(&self) -> bool {
169 *self == TSEL_A::PRSCH0
170 }
171 #[doc = "Checks if the value of the field is `PRSCH1`"]
172 #[inline(always)]
173 pub fn is_prsch1(&self) -> bool {
174 *self == TSEL_A::PRSCH1
175 }
176 #[doc = "Checks if the value of the field is `PRSCH2`"]
177 #[inline(always)]
178 pub fn is_prsch2(&self) -> bool {
179 *self == TSEL_A::PRSCH2
180 }
181 #[doc = "Checks if the value of the field is `PRSCH3`"]
182 #[inline(always)]
183 pub fn is_prsch3(&self) -> bool {
184 *self == TSEL_A::PRSCH3
185 }
186 #[doc = "Checks if the value of the field is `PRSCH4`"]
187 #[inline(always)]
188 pub fn is_prsch4(&self) -> bool {
189 *self == TSEL_A::PRSCH4
190 }
191 #[doc = "Checks if the value of the field is `PRSCH5`"]
192 #[inline(always)]
193 pub fn is_prsch5(&self) -> bool {
194 *self == TSEL_A::PRSCH5
195 }
196 #[doc = "Checks if the value of the field is `PRSCH6`"]
197 #[inline(always)]
198 pub fn is_prsch6(&self) -> bool {
199 *self == TSEL_A::PRSCH6
200 }
201 #[doc = "Checks if the value of the field is `PRSCH7`"]
202 #[inline(always)]
203 pub fn is_prsch7(&self) -> bool {
204 *self == TSEL_A::PRSCH7
205 }
206 #[doc = "Checks if the value of the field is `PRSCH8`"]
207 #[inline(always)]
208 pub fn is_prsch8(&self) -> bool {
209 *self == TSEL_A::PRSCH8
210 }
211 #[doc = "Checks if the value of the field is `PRSCH9`"]
212 #[inline(always)]
213 pub fn is_prsch9(&self) -> bool {
214 *self == TSEL_A::PRSCH9
215 }
216 #[doc = "Checks if the value of the field is `PRSCH10`"]
217 #[inline(always)]
218 pub fn is_prsch10(&self) -> bool {
219 *self == TSEL_A::PRSCH10
220 }
221 #[doc = "Checks if the value of the field is `PRSCH11`"]
222 #[inline(always)]
223 pub fn is_prsch11(&self) -> bool {
224 *self == TSEL_A::PRSCH11
225 }
226 #[doc = "Checks if the value of the field is `PRSCH12`"]
227 #[inline(always)]
228 pub fn is_prsch12(&self) -> bool {
229 *self == TSEL_A::PRSCH12
230 }
231 #[doc = "Checks if the value of the field is `PRSCH13`"]
232 #[inline(always)]
233 pub fn is_prsch13(&self) -> bool {
234 *self == TSEL_A::PRSCH13
235 }
236 #[doc = "Checks if the value of the field is `PRSCH14`"]
237 #[inline(always)]
238 pub fn is_prsch14(&self) -> bool {
239 *self == TSEL_A::PRSCH14
240 }
241 #[doc = "Checks if the value of the field is `PRSCH15`"]
242 #[inline(always)]
243 pub fn is_prsch15(&self) -> bool {
244 *self == TSEL_A::PRSCH15
245 }
246 #[doc = "Checks if the value of the field is `PRSCH16`"]
247 #[inline(always)]
248 pub fn is_prsch16(&self) -> bool {
249 *self == TSEL_A::PRSCH16
250 }
251 #[doc = "Checks if the value of the field is `PRSCH17`"]
252 #[inline(always)]
253 pub fn is_prsch17(&self) -> bool {
254 *self == TSEL_A::PRSCH17
255 }
256 #[doc = "Checks if the value of the field is `PRSCH18`"]
257 #[inline(always)]
258 pub fn is_prsch18(&self) -> bool {
259 *self == TSEL_A::PRSCH18
260 }
261 #[doc = "Checks if the value of the field is `PRSCH19`"]
262 #[inline(always)]
263 pub fn is_prsch19(&self) -> bool {
264 *self == TSEL_A::PRSCH19
265 }
266 #[doc = "Checks if the value of the field is `PRSCH20`"]
267 #[inline(always)]
268 pub fn is_prsch20(&self) -> bool {
269 *self == TSEL_A::PRSCH20
270 }
271 #[doc = "Checks if the value of the field is `PRSCH21`"]
272 #[inline(always)]
273 pub fn is_prsch21(&self) -> bool {
274 *self == TSEL_A::PRSCH21
275 }
276 #[doc = "Checks if the value of the field is `PRSCH22`"]
277 #[inline(always)]
278 pub fn is_prsch22(&self) -> bool {
279 *self == TSEL_A::PRSCH22
280 }
281 #[doc = "Checks if the value of the field is `PRSCH23`"]
282 #[inline(always)]
283 pub fn is_prsch23(&self) -> bool {
284 *self == TSEL_A::PRSCH23
285 }
286}
287#[doc = "Field `TSEL` writer - Trigger PRS Channel Select"]
288pub type TSEL_W<'a> = crate::FieldWriter<'a, u32, TRIGCTRL_SPEC, u8, TSEL_A, 5, 16>;
289impl<'a> TSEL_W<'a> {
290 #[doc = "PRS Channel 0 selected"]
291 #[inline(always)]
292 pub fn prsch0(self) -> &'a mut W {
293 self.variant(TSEL_A::PRSCH0)
294 }
295 #[doc = "PRS Channel 1 selected"]
296 #[inline(always)]
297 pub fn prsch1(self) -> &'a mut W {
298 self.variant(TSEL_A::PRSCH1)
299 }
300 #[doc = "PRS Channel 2 selected"]
301 #[inline(always)]
302 pub fn prsch2(self) -> &'a mut W {
303 self.variant(TSEL_A::PRSCH2)
304 }
305 #[doc = "PRS Channel 3 selected"]
306 #[inline(always)]
307 pub fn prsch3(self) -> &'a mut W {
308 self.variant(TSEL_A::PRSCH3)
309 }
310 #[doc = "PRS Channel 4 selected"]
311 #[inline(always)]
312 pub fn prsch4(self) -> &'a mut W {
313 self.variant(TSEL_A::PRSCH4)
314 }
315 #[doc = "PRS Channel 5 selected"]
316 #[inline(always)]
317 pub fn prsch5(self) -> &'a mut W {
318 self.variant(TSEL_A::PRSCH5)
319 }
320 #[doc = "PRS Channel 6 selected"]
321 #[inline(always)]
322 pub fn prsch6(self) -> &'a mut W {
323 self.variant(TSEL_A::PRSCH6)
324 }
325 #[doc = "PRS Channel 7 selected"]
326 #[inline(always)]
327 pub fn prsch7(self) -> &'a mut W {
328 self.variant(TSEL_A::PRSCH7)
329 }
330 #[doc = "PRS Channel 8 selected"]
331 #[inline(always)]
332 pub fn prsch8(self) -> &'a mut W {
333 self.variant(TSEL_A::PRSCH8)
334 }
335 #[doc = "PRS Channel 9 selected"]
336 #[inline(always)]
337 pub fn prsch9(self) -> &'a mut W {
338 self.variant(TSEL_A::PRSCH9)
339 }
340 #[doc = "PRS Channel 10 selected"]
341 #[inline(always)]
342 pub fn prsch10(self) -> &'a mut W {
343 self.variant(TSEL_A::PRSCH10)
344 }
345 #[doc = "PRS Channel 11 selected"]
346 #[inline(always)]
347 pub fn prsch11(self) -> &'a mut W {
348 self.variant(TSEL_A::PRSCH11)
349 }
350 #[doc = "PRS Channel 12 selected"]
351 #[inline(always)]
352 pub fn prsch12(self) -> &'a mut W {
353 self.variant(TSEL_A::PRSCH12)
354 }
355 #[doc = "PRS Channel 13 selected"]
356 #[inline(always)]
357 pub fn prsch13(self) -> &'a mut W {
358 self.variant(TSEL_A::PRSCH13)
359 }
360 #[doc = "PRS Channel 14 selected"]
361 #[inline(always)]
362 pub fn prsch14(self) -> &'a mut W {
363 self.variant(TSEL_A::PRSCH14)
364 }
365 #[doc = "PRS Channel 15 selected"]
366 #[inline(always)]
367 pub fn prsch15(self) -> &'a mut W {
368 self.variant(TSEL_A::PRSCH15)
369 }
370 #[doc = "PRS Channel 16 selected"]
371 #[inline(always)]
372 pub fn prsch16(self) -> &'a mut W {
373 self.variant(TSEL_A::PRSCH16)
374 }
375 #[doc = "PRS Channel 17 selected"]
376 #[inline(always)]
377 pub fn prsch17(self) -> &'a mut W {
378 self.variant(TSEL_A::PRSCH17)
379 }
380 #[doc = "PRS Channel 18 selected"]
381 #[inline(always)]
382 pub fn prsch18(self) -> &'a mut W {
383 self.variant(TSEL_A::PRSCH18)
384 }
385 #[doc = "PRS Channel 19 selected"]
386 #[inline(always)]
387 pub fn prsch19(self) -> &'a mut W {
388 self.variant(TSEL_A::PRSCH19)
389 }
390 #[doc = "PRS Channel 20 selected"]
391 #[inline(always)]
392 pub fn prsch20(self) -> &'a mut W {
393 self.variant(TSEL_A::PRSCH20)
394 }
395 #[doc = "PRS Channel 21 selected"]
396 #[inline(always)]
397 pub fn prsch21(self) -> &'a mut W {
398 self.variant(TSEL_A::PRSCH21)
399 }
400 #[doc = "PRS Channel 22 selected"]
401 #[inline(always)]
402 pub fn prsch22(self) -> &'a mut W {
403 self.variant(TSEL_A::PRSCH22)
404 }
405 #[doc = "PRS Channel 23 selected"]
406 #[inline(always)]
407 pub fn prsch23(self) -> &'a mut W {
408 self.variant(TSEL_A::PRSCH23)
409 }
410}
411impl R {
412 #[doc = "Bit 4 - Receive Trigger Enable"]
413 #[inline(always)]
414 pub fn rxten(&self) -> RXTEN_R {
415 RXTEN_R::new(((self.bits >> 4) & 1) != 0)
416 }
417 #[doc = "Bit 5 - Transmit Trigger Enable"]
418 #[inline(always)]
419 pub fn txten(&self) -> TXTEN_R {
420 TXTEN_R::new(((self.bits >> 5) & 1) != 0)
421 }
422 #[doc = "Bit 6 - AUTOTX Trigger Enable"]
423 #[inline(always)]
424 pub fn autotxten(&self) -> AUTOTXTEN_R {
425 AUTOTXTEN_R::new(((self.bits >> 6) & 1) != 0)
426 }
427 #[doc = "Bit 7 - Enable Transmit Trigger After RX End of Frame Plus TCMP0VAL"]
428 #[inline(always)]
429 pub fn txarx0en(&self) -> TXARX0EN_R {
430 TXARX0EN_R::new(((self.bits >> 7) & 1) != 0)
431 }
432 #[doc = "Bit 8 - Enable Transmit Trigger After RX End of Frame Plus TCMP1VAL"]
433 #[inline(always)]
434 pub fn txarx1en(&self) -> TXARX1EN_R {
435 TXARX1EN_R::new(((self.bits >> 8) & 1) != 0)
436 }
437 #[doc = "Bit 9 - Enable Transmit Trigger After RX End of Frame Plus TCMP2VAL"]
438 #[inline(always)]
439 pub fn txarx2en(&self) -> TXARX2EN_R {
440 TXARX2EN_R::new(((self.bits >> 9) & 1) != 0)
441 }
442 #[doc = "Bit 10 - Enable Receive Trigger After TX End of Frame Plus TCMPVAL0 Baud-times"]
443 #[inline(always)]
444 pub fn rxatx0en(&self) -> RXATX0EN_R {
445 RXATX0EN_R::new(((self.bits >> 10) & 1) != 0)
446 }
447 #[doc = "Bit 11 - Enable Receive Trigger After TX End of Frame Plus TCMPVAL1 Baud-times"]
448 #[inline(always)]
449 pub fn rxatx1en(&self) -> RXATX1EN_R {
450 RXATX1EN_R::new(((self.bits >> 11) & 1) != 0)
451 }
452 #[doc = "Bit 12 - Enable Receive Trigger After TX End of Frame Plus TCMPVAL2 Baud-times"]
453 #[inline(always)]
454 pub fn rxatx2en(&self) -> RXATX2EN_R {
455 RXATX2EN_R::new(((self.bits >> 12) & 1) != 0)
456 }
457 #[doc = "Bits 16:20 - Trigger PRS Channel Select"]
458 #[inline(always)]
459 pub fn tsel(&self) -> TSEL_R {
460 TSEL_R::new(((self.bits >> 16) & 0x1f) as u8)
461 }
462}
463impl W {
464 #[doc = "Bit 4 - Receive Trigger Enable"]
465 #[inline(always)]
466 pub fn rxten(&mut self) -> RXTEN_W {
467 RXTEN_W::new(self)
468 }
469 #[doc = "Bit 5 - Transmit Trigger Enable"]
470 #[inline(always)]
471 pub fn txten(&mut self) -> TXTEN_W {
472 TXTEN_W::new(self)
473 }
474 #[doc = "Bit 6 - AUTOTX Trigger Enable"]
475 #[inline(always)]
476 pub fn autotxten(&mut self) -> AUTOTXTEN_W {
477 AUTOTXTEN_W::new(self)
478 }
479 #[doc = "Bit 7 - Enable Transmit Trigger After RX End of Frame Plus TCMP0VAL"]
480 #[inline(always)]
481 pub fn txarx0en(&mut self) -> TXARX0EN_W {
482 TXARX0EN_W::new(self)
483 }
484 #[doc = "Bit 8 - Enable Transmit Trigger After RX End of Frame Plus TCMP1VAL"]
485 #[inline(always)]
486 pub fn txarx1en(&mut self) -> TXARX1EN_W {
487 TXARX1EN_W::new(self)
488 }
489 #[doc = "Bit 9 - Enable Transmit Trigger After RX End of Frame Plus TCMP2VAL"]
490 #[inline(always)]
491 pub fn txarx2en(&mut self) -> TXARX2EN_W {
492 TXARX2EN_W::new(self)
493 }
494 #[doc = "Bit 10 - Enable Receive Trigger After TX End of Frame Plus TCMPVAL0 Baud-times"]
495 #[inline(always)]
496 pub fn rxatx0en(&mut self) -> RXATX0EN_W {
497 RXATX0EN_W::new(self)
498 }
499 #[doc = "Bit 11 - Enable Receive Trigger After TX End of Frame Plus TCMPVAL1 Baud-times"]
500 #[inline(always)]
501 pub fn rxatx1en(&mut self) -> RXATX1EN_W {
502 RXATX1EN_W::new(self)
503 }
504 #[doc = "Bit 12 - Enable Receive Trigger After TX End of Frame Plus TCMPVAL2 Baud-times"]
505 #[inline(always)]
506 pub fn rxatx2en(&mut self) -> RXATX2EN_W {
507 RXATX2EN_W::new(self)
508 }
509 #[doc = "Bits 16:20 - Trigger PRS Channel Select"]
510 #[inline(always)]
511 pub fn tsel(&mut self) -> TSEL_W {
512 TSEL_W::new(self)
513 }
514 #[doc = "Writes raw bits to the register."]
515 #[inline(always)]
516 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
517 self.0.bits(bits);
518 self
519 }
520}
521#[doc = "USART Trigger Control 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 [trigctrl](index.html) module"]
522pub struct TRIGCTRL_SPEC;
523impl crate::RegisterSpec for TRIGCTRL_SPEC {
524 type Ux = u32;
525}
526#[doc = "`read()` method returns [trigctrl::R](R) reader structure"]
527impl crate::Readable for TRIGCTRL_SPEC {
528 type Reader = R;
529}
530#[doc = "`write(|w| ..)` method takes [trigctrl::W](W) writer structure"]
531impl crate::Writable for TRIGCTRL_SPEC {
532 type Writer = W;
533}
534#[doc = "`reset()` method sets TRIGCTRL to value 0"]
535impl crate::Resettable for TRIGCTRL_SPEC {
536 #[inline(always)]
537 fn reset_value() -> Self::Ux {
538 0
539 }
540}