nrf52820_pac/radio/
cteinlineconf.rs

1#[doc = "Register `CTEINLINECONF` reader"]
2pub struct R(crate::R<CTEINLINECONF_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<CTEINLINECONF_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<CTEINLINECONF_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<CTEINLINECONF_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `CTEINLINECONF` writer"]
17pub struct W(crate::W<CTEINLINECONF_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<CTEINLINECONF_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<CTEINLINECONF_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<CTEINLINECONF_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `CTEINLINECTRLEN` reader - Enable parsing of CTEInfo from received packet in BLE modes"]
38pub type CTEINLINECTRLEN_R = crate::BitReader<CTEINLINECTRLEN_A>;
39#[doc = "Enable parsing of CTEInfo from received packet in BLE modes\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub enum CTEINLINECTRLEN_A {
42    #[doc = "1: Parsing of CTEInfo is enabled"]
43    ENABLED = 1,
44    #[doc = "0: Parsing of CTEInfo is disabled"]
45    DISABLED = 0,
46}
47impl From<CTEINLINECTRLEN_A> for bool {
48    #[inline(always)]
49    fn from(variant: CTEINLINECTRLEN_A) -> Self {
50        variant as u8 != 0
51    }
52}
53impl CTEINLINECTRLEN_R {
54    #[doc = "Get enumerated values variant"]
55    #[inline(always)]
56    pub fn variant(&self) -> CTEINLINECTRLEN_A {
57        match self.bits {
58            true => CTEINLINECTRLEN_A::ENABLED,
59            false => CTEINLINECTRLEN_A::DISABLED,
60        }
61    }
62    #[doc = "Checks if the value of the field is `ENABLED`"]
63    #[inline(always)]
64    pub fn is_enabled(&self) -> bool {
65        *self == CTEINLINECTRLEN_A::ENABLED
66    }
67    #[doc = "Checks if the value of the field is `DISABLED`"]
68    #[inline(always)]
69    pub fn is_disabled(&self) -> bool {
70        *self == CTEINLINECTRLEN_A::DISABLED
71    }
72}
73#[doc = "Field `CTEINLINECTRLEN` writer - Enable parsing of CTEInfo from received packet in BLE modes"]
74pub type CTEINLINECTRLEN_W<'a, const O: u8> =
75    crate::BitWriter<'a, u32, CTEINLINECONF_SPEC, CTEINLINECTRLEN_A, O>;
76impl<'a, const O: u8> CTEINLINECTRLEN_W<'a, O> {
77    #[doc = "Parsing of CTEInfo is enabled"]
78    #[inline(always)]
79    pub fn enabled(self) -> &'a mut W {
80        self.variant(CTEINLINECTRLEN_A::ENABLED)
81    }
82    #[doc = "Parsing of CTEInfo is disabled"]
83    #[inline(always)]
84    pub fn disabled(self) -> &'a mut W {
85        self.variant(CTEINLINECTRLEN_A::DISABLED)
86    }
87}
88#[doc = "Field `CTEINFOINS1` reader - CTEInfo is S1 byte or not"]
89pub type CTEINFOINS1_R = crate::BitReader<CTEINFOINS1_A>;
90#[doc = "CTEInfo is S1 byte or not\n\nValue on reset: 0"]
91#[derive(Clone, Copy, Debug, PartialEq)]
92pub enum CTEINFOINS1_A {
93    #[doc = "1: CTEInfo is in S1 byte (data PDU)"]
94    IN_S1 = 1,
95    #[doc = "0: CTEInfo is NOT in S1 byte (advertising PDU)"]
96    NOT_IN_S1 = 0,
97}
98impl From<CTEINFOINS1_A> for bool {
99    #[inline(always)]
100    fn from(variant: CTEINFOINS1_A) -> Self {
101        variant as u8 != 0
102    }
103}
104impl CTEINFOINS1_R {
105    #[doc = "Get enumerated values variant"]
106    #[inline(always)]
107    pub fn variant(&self) -> CTEINFOINS1_A {
108        match self.bits {
109            true => CTEINFOINS1_A::IN_S1,
110            false => CTEINFOINS1_A::NOT_IN_S1,
111        }
112    }
113    #[doc = "Checks if the value of the field is `IN_S1`"]
114    #[inline(always)]
115    pub fn is_in_s1(&self) -> bool {
116        *self == CTEINFOINS1_A::IN_S1
117    }
118    #[doc = "Checks if the value of the field is `NOT_IN_S1`"]
119    #[inline(always)]
120    pub fn is_not_in_s1(&self) -> bool {
121        *self == CTEINFOINS1_A::NOT_IN_S1
122    }
123}
124#[doc = "Field `CTEINFOINS1` writer - CTEInfo is S1 byte or not"]
125pub type CTEINFOINS1_W<'a, const O: u8> =
126    crate::BitWriter<'a, u32, CTEINLINECONF_SPEC, CTEINFOINS1_A, O>;
127impl<'a, const O: u8> CTEINFOINS1_W<'a, O> {
128    #[doc = "CTEInfo is in S1 byte (data PDU)"]
129    #[inline(always)]
130    pub fn in_s1(self) -> &'a mut W {
131        self.variant(CTEINFOINS1_A::IN_S1)
132    }
133    #[doc = "CTEInfo is NOT in S1 byte (advertising PDU)"]
134    #[inline(always)]
135    pub fn not_in_s1(self) -> &'a mut W {
136        self.variant(CTEINFOINS1_A::NOT_IN_S1)
137    }
138}
139#[doc = "Field `CTEERRORHANDLING` reader - Sampling/switching if CRC is not OK"]
140pub type CTEERRORHANDLING_R = crate::BitReader<CTEERRORHANDLING_A>;
141#[doc = "Sampling/switching if CRC is not OK\n\nValue on reset: 0"]
142#[derive(Clone, Copy, Debug, PartialEq)]
143pub enum CTEERRORHANDLING_A {
144    #[doc = "1: Sampling and antenna switching also when CRC is not OK"]
145    YES = 1,
146    #[doc = "0: No sampling and antenna switching when CRC is not OK"]
147    NO = 0,
148}
149impl From<CTEERRORHANDLING_A> for bool {
150    #[inline(always)]
151    fn from(variant: CTEERRORHANDLING_A) -> Self {
152        variant as u8 != 0
153    }
154}
155impl CTEERRORHANDLING_R {
156    #[doc = "Get enumerated values variant"]
157    #[inline(always)]
158    pub fn variant(&self) -> CTEERRORHANDLING_A {
159        match self.bits {
160            true => CTEERRORHANDLING_A::YES,
161            false => CTEERRORHANDLING_A::NO,
162        }
163    }
164    #[doc = "Checks if the value of the field is `YES`"]
165    #[inline(always)]
166    pub fn is_yes(&self) -> bool {
167        *self == CTEERRORHANDLING_A::YES
168    }
169    #[doc = "Checks if the value of the field is `NO`"]
170    #[inline(always)]
171    pub fn is_no(&self) -> bool {
172        *self == CTEERRORHANDLING_A::NO
173    }
174}
175#[doc = "Field `CTEERRORHANDLING` writer - Sampling/switching if CRC is not OK"]
176pub type CTEERRORHANDLING_W<'a, const O: u8> =
177    crate::BitWriter<'a, u32, CTEINLINECONF_SPEC, CTEERRORHANDLING_A, O>;
178impl<'a, const O: u8> CTEERRORHANDLING_W<'a, O> {
179    #[doc = "Sampling and antenna switching also when CRC is not OK"]
180    #[inline(always)]
181    pub fn yes(self) -> &'a mut W {
182        self.variant(CTEERRORHANDLING_A::YES)
183    }
184    #[doc = "No sampling and antenna switching when CRC is not OK"]
185    #[inline(always)]
186    pub fn no(self) -> &'a mut W {
187        self.variant(CTEERRORHANDLING_A::NO)
188    }
189}
190#[doc = "Field `CTETIMEVALIDRANGE` reader - Max range of CTETime"]
191pub type CTETIMEVALIDRANGE_R = crate::FieldReader<u8, CTETIMEVALIDRANGE_A>;
192#[doc = "Max range of CTETime\n\nValue on reset: 0"]
193#[derive(Clone, Copy, Debug, PartialEq)]
194#[repr(u8)]
195pub enum CTETIMEVALIDRANGE_A {
196    #[doc = "0: 20 in 8 us unit (default) Set to 20 if parsed CTETime is larger than 20"]
197    _20 = 0,
198    #[doc = "1: 31 in 8 us unit"]
199    _31 = 1,
200    #[doc = "2: 63 in 8 us unit"]
201    _63 = 2,
202}
203impl From<CTETIMEVALIDRANGE_A> for u8 {
204    #[inline(always)]
205    fn from(variant: CTETIMEVALIDRANGE_A) -> Self {
206        variant as _
207    }
208}
209impl CTETIMEVALIDRANGE_R {
210    #[doc = "Get enumerated values variant"]
211    #[inline(always)]
212    pub fn variant(&self) -> Option<CTETIMEVALIDRANGE_A> {
213        match self.bits {
214            0 => Some(CTETIMEVALIDRANGE_A::_20),
215            1 => Some(CTETIMEVALIDRANGE_A::_31),
216            2 => Some(CTETIMEVALIDRANGE_A::_63),
217            _ => None,
218        }
219    }
220    #[doc = "Checks if the value of the field is `_20`"]
221    #[inline(always)]
222    pub fn is_20(&self) -> bool {
223        *self == CTETIMEVALIDRANGE_A::_20
224    }
225    #[doc = "Checks if the value of the field is `_31`"]
226    #[inline(always)]
227    pub fn is_31(&self) -> bool {
228        *self == CTETIMEVALIDRANGE_A::_31
229    }
230    #[doc = "Checks if the value of the field is `_63`"]
231    #[inline(always)]
232    pub fn is_63(&self) -> bool {
233        *self == CTETIMEVALIDRANGE_A::_63
234    }
235}
236#[doc = "Field `CTETIMEVALIDRANGE` writer - Max range of CTETime"]
237pub type CTETIMEVALIDRANGE_W<'a, const O: u8> =
238    crate::FieldWriter<'a, u32, CTEINLINECONF_SPEC, u8, CTETIMEVALIDRANGE_A, 2, O>;
239impl<'a, const O: u8> CTETIMEVALIDRANGE_W<'a, O> {
240    #[doc = "20 in 8 us unit (default) Set to 20 if parsed CTETime is larger than 20"]
241    #[inline(always)]
242    pub fn _20(self) -> &'a mut W {
243        self.variant(CTETIMEVALIDRANGE_A::_20)
244    }
245    #[doc = "31 in 8 us unit"]
246    #[inline(always)]
247    pub fn _31(self) -> &'a mut W {
248        self.variant(CTETIMEVALIDRANGE_A::_31)
249    }
250    #[doc = "63 in 8 us unit"]
251    #[inline(always)]
252    pub fn _63(self) -> &'a mut W {
253        self.variant(CTETIMEVALIDRANGE_A::_63)
254    }
255}
256#[doc = "Field `CTEINLINERXMODE1US` reader - Spacing between samples for the samples in the SWITCHING period when CTEINLINEMODE is set."]
257pub type CTEINLINERXMODE1US_R = crate::FieldReader<u8, CTEINLINERXMODE1US_A>;
258#[doc = "Spacing between samples for the samples in the SWITCHING period when CTEINLINEMODE is set.\n\nValue on reset: 2"]
259#[derive(Clone, Copy, Debug, PartialEq)]
260#[repr(u8)]
261pub enum CTEINLINERXMODE1US_A {
262    #[doc = "1: 4 us"]
263    _4US = 1,
264    #[doc = "2: 2 us"]
265    _2US = 2,
266    #[doc = "3: 1 us"]
267    _1US = 3,
268    #[doc = "4: 0.5 us"]
269    _500NS = 4,
270    #[doc = "5: 0.25 us"]
271    _250NS = 5,
272    #[doc = "6: 0.125 us"]
273    _125NS = 6,
274}
275impl From<CTEINLINERXMODE1US_A> for u8 {
276    #[inline(always)]
277    fn from(variant: CTEINLINERXMODE1US_A) -> Self {
278        variant as _
279    }
280}
281impl CTEINLINERXMODE1US_R {
282    #[doc = "Get enumerated values variant"]
283    #[inline(always)]
284    pub fn variant(&self) -> Option<CTEINLINERXMODE1US_A> {
285        match self.bits {
286            1 => Some(CTEINLINERXMODE1US_A::_4US),
287            2 => Some(CTEINLINERXMODE1US_A::_2US),
288            3 => Some(CTEINLINERXMODE1US_A::_1US),
289            4 => Some(CTEINLINERXMODE1US_A::_500NS),
290            5 => Some(CTEINLINERXMODE1US_A::_250NS),
291            6 => Some(CTEINLINERXMODE1US_A::_125NS),
292            _ => None,
293        }
294    }
295    #[doc = "Checks if the value of the field is `_4US`"]
296    #[inline(always)]
297    pub fn is_4us(&self) -> bool {
298        *self == CTEINLINERXMODE1US_A::_4US
299    }
300    #[doc = "Checks if the value of the field is `_2US`"]
301    #[inline(always)]
302    pub fn is_2us(&self) -> bool {
303        *self == CTEINLINERXMODE1US_A::_2US
304    }
305    #[doc = "Checks if the value of the field is `_1US`"]
306    #[inline(always)]
307    pub fn is_1us(&self) -> bool {
308        *self == CTEINLINERXMODE1US_A::_1US
309    }
310    #[doc = "Checks if the value of the field is `_500NS`"]
311    #[inline(always)]
312    pub fn is_500ns(&self) -> bool {
313        *self == CTEINLINERXMODE1US_A::_500NS
314    }
315    #[doc = "Checks if the value of the field is `_250NS`"]
316    #[inline(always)]
317    pub fn is_250ns(&self) -> bool {
318        *self == CTEINLINERXMODE1US_A::_250NS
319    }
320    #[doc = "Checks if the value of the field is `_125NS`"]
321    #[inline(always)]
322    pub fn is_125ns(&self) -> bool {
323        *self == CTEINLINERXMODE1US_A::_125NS
324    }
325}
326#[doc = "Field `CTEINLINERXMODE1US` writer - Spacing between samples for the samples in the SWITCHING period when CTEINLINEMODE is set."]
327pub type CTEINLINERXMODE1US_W<'a, const O: u8> =
328    crate::FieldWriter<'a, u32, CTEINLINECONF_SPEC, u8, CTEINLINERXMODE1US_A, 3, O>;
329impl<'a, const O: u8> CTEINLINERXMODE1US_W<'a, O> {
330    #[doc = "4 us"]
331    #[inline(always)]
332    pub fn _4us(self) -> &'a mut W {
333        self.variant(CTEINLINERXMODE1US_A::_4US)
334    }
335    #[doc = "2 us"]
336    #[inline(always)]
337    pub fn _2us(self) -> &'a mut W {
338        self.variant(CTEINLINERXMODE1US_A::_2US)
339    }
340    #[doc = "1 us"]
341    #[inline(always)]
342    pub fn _1us(self) -> &'a mut W {
343        self.variant(CTEINLINERXMODE1US_A::_1US)
344    }
345    #[doc = "0.5 us"]
346    #[inline(always)]
347    pub fn _500ns(self) -> &'a mut W {
348        self.variant(CTEINLINERXMODE1US_A::_500NS)
349    }
350    #[doc = "0.25 us"]
351    #[inline(always)]
352    pub fn _250ns(self) -> &'a mut W {
353        self.variant(CTEINLINERXMODE1US_A::_250NS)
354    }
355    #[doc = "0.125 us"]
356    #[inline(always)]
357    pub fn _125ns(self) -> &'a mut W {
358        self.variant(CTEINLINERXMODE1US_A::_125NS)
359    }
360}
361#[doc = "Field `CTEINLINERXMODE2US` reader - Spacing between samples for the samples in the SWITCHING period when CTEINLINEMODE is set."]
362pub type CTEINLINERXMODE2US_R = crate::FieldReader<u8, CTEINLINERXMODE2US_A>;
363#[doc = "Spacing between samples for the samples in the SWITCHING period when CTEINLINEMODE is set.\n\nValue on reset: 1"]
364#[derive(Clone, Copy, Debug, PartialEq)]
365#[repr(u8)]
366pub enum CTEINLINERXMODE2US_A {
367    #[doc = "1: 4 us"]
368    _4US = 1,
369    #[doc = "2: 2 us"]
370    _2US = 2,
371    #[doc = "3: 1 us"]
372    _1US = 3,
373    #[doc = "4: 0.5 us"]
374    _500NS = 4,
375    #[doc = "5: 0.25 us"]
376    _250NS = 5,
377    #[doc = "6: 0.125 us"]
378    _125NS = 6,
379}
380impl From<CTEINLINERXMODE2US_A> for u8 {
381    #[inline(always)]
382    fn from(variant: CTEINLINERXMODE2US_A) -> Self {
383        variant as _
384    }
385}
386impl CTEINLINERXMODE2US_R {
387    #[doc = "Get enumerated values variant"]
388    #[inline(always)]
389    pub fn variant(&self) -> Option<CTEINLINERXMODE2US_A> {
390        match self.bits {
391            1 => Some(CTEINLINERXMODE2US_A::_4US),
392            2 => Some(CTEINLINERXMODE2US_A::_2US),
393            3 => Some(CTEINLINERXMODE2US_A::_1US),
394            4 => Some(CTEINLINERXMODE2US_A::_500NS),
395            5 => Some(CTEINLINERXMODE2US_A::_250NS),
396            6 => Some(CTEINLINERXMODE2US_A::_125NS),
397            _ => None,
398        }
399    }
400    #[doc = "Checks if the value of the field is `_4US`"]
401    #[inline(always)]
402    pub fn is_4us(&self) -> bool {
403        *self == CTEINLINERXMODE2US_A::_4US
404    }
405    #[doc = "Checks if the value of the field is `_2US`"]
406    #[inline(always)]
407    pub fn is_2us(&self) -> bool {
408        *self == CTEINLINERXMODE2US_A::_2US
409    }
410    #[doc = "Checks if the value of the field is `_1US`"]
411    #[inline(always)]
412    pub fn is_1us(&self) -> bool {
413        *self == CTEINLINERXMODE2US_A::_1US
414    }
415    #[doc = "Checks if the value of the field is `_500NS`"]
416    #[inline(always)]
417    pub fn is_500ns(&self) -> bool {
418        *self == CTEINLINERXMODE2US_A::_500NS
419    }
420    #[doc = "Checks if the value of the field is `_250NS`"]
421    #[inline(always)]
422    pub fn is_250ns(&self) -> bool {
423        *self == CTEINLINERXMODE2US_A::_250NS
424    }
425    #[doc = "Checks if the value of the field is `_125NS`"]
426    #[inline(always)]
427    pub fn is_125ns(&self) -> bool {
428        *self == CTEINLINERXMODE2US_A::_125NS
429    }
430}
431#[doc = "Field `CTEINLINERXMODE2US` writer - Spacing between samples for the samples in the SWITCHING period when CTEINLINEMODE is set."]
432pub type CTEINLINERXMODE2US_W<'a, const O: u8> =
433    crate::FieldWriter<'a, u32, CTEINLINECONF_SPEC, u8, CTEINLINERXMODE2US_A, 3, O>;
434impl<'a, const O: u8> CTEINLINERXMODE2US_W<'a, O> {
435    #[doc = "4 us"]
436    #[inline(always)]
437    pub fn _4us(self) -> &'a mut W {
438        self.variant(CTEINLINERXMODE2US_A::_4US)
439    }
440    #[doc = "2 us"]
441    #[inline(always)]
442    pub fn _2us(self) -> &'a mut W {
443        self.variant(CTEINLINERXMODE2US_A::_2US)
444    }
445    #[doc = "1 us"]
446    #[inline(always)]
447    pub fn _1us(self) -> &'a mut W {
448        self.variant(CTEINLINERXMODE2US_A::_1US)
449    }
450    #[doc = "0.5 us"]
451    #[inline(always)]
452    pub fn _500ns(self) -> &'a mut W {
453        self.variant(CTEINLINERXMODE2US_A::_500NS)
454    }
455    #[doc = "0.25 us"]
456    #[inline(always)]
457    pub fn _250ns(self) -> &'a mut W {
458        self.variant(CTEINLINERXMODE2US_A::_250NS)
459    }
460    #[doc = "0.125 us"]
461    #[inline(always)]
462    pub fn _125ns(self) -> &'a mut W {
463        self.variant(CTEINLINERXMODE2US_A::_125NS)
464    }
465}
466#[doc = "Field `S0CONF` reader - S0 bit pattern to match"]
467pub type S0CONF_R = crate::FieldReader<u8, u8>;
468#[doc = "Field `S0CONF` writer - S0 bit pattern to match"]
469pub type S0CONF_W<'a, const O: u8> = crate::FieldWriter<'a, u32, CTEINLINECONF_SPEC, u8, u8, 8, O>;
470#[doc = "Field `S0MASK` reader - S0 bit mask to set which bit to match"]
471pub type S0MASK_R = crate::FieldReader<u8, u8>;
472#[doc = "Field `S0MASK` writer - S0 bit mask to set which bit to match"]
473pub type S0MASK_W<'a, const O: u8> = crate::FieldWriter<'a, u32, CTEINLINECONF_SPEC, u8, u8, 8, O>;
474impl R {
475    #[doc = "Bit 0 - Enable parsing of CTEInfo from received packet in BLE modes"]
476    #[inline(always)]
477    pub fn cteinlinectrlen(&self) -> CTEINLINECTRLEN_R {
478        CTEINLINECTRLEN_R::new((self.bits & 1) != 0)
479    }
480    #[doc = "Bit 3 - CTEInfo is S1 byte or not"]
481    #[inline(always)]
482    pub fn cteinfoins1(&self) -> CTEINFOINS1_R {
483        CTEINFOINS1_R::new(((self.bits >> 3) & 1) != 0)
484    }
485    #[doc = "Bit 4 - Sampling/switching if CRC is not OK"]
486    #[inline(always)]
487    pub fn cteerrorhandling(&self) -> CTEERRORHANDLING_R {
488        CTEERRORHANDLING_R::new(((self.bits >> 4) & 1) != 0)
489    }
490    #[doc = "Bits 6:7 - Max range of CTETime"]
491    #[inline(always)]
492    pub fn ctetimevalidrange(&self) -> CTETIMEVALIDRANGE_R {
493        CTETIMEVALIDRANGE_R::new(((self.bits >> 6) & 3) as u8)
494    }
495    #[doc = "Bits 10:12 - Spacing between samples for the samples in the SWITCHING period when CTEINLINEMODE is set."]
496    #[inline(always)]
497    pub fn cteinlinerxmode1us(&self) -> CTEINLINERXMODE1US_R {
498        CTEINLINERXMODE1US_R::new(((self.bits >> 10) & 7) as u8)
499    }
500    #[doc = "Bits 13:15 - Spacing between samples for the samples in the SWITCHING period when CTEINLINEMODE is set."]
501    #[inline(always)]
502    pub fn cteinlinerxmode2us(&self) -> CTEINLINERXMODE2US_R {
503        CTEINLINERXMODE2US_R::new(((self.bits >> 13) & 7) as u8)
504    }
505    #[doc = "Bits 16:23 - S0 bit pattern to match"]
506    #[inline(always)]
507    pub fn s0conf(&self) -> S0CONF_R {
508        S0CONF_R::new(((self.bits >> 16) & 0xff) as u8)
509    }
510    #[doc = "Bits 24:31 - S0 bit mask to set which bit to match"]
511    #[inline(always)]
512    pub fn s0mask(&self) -> S0MASK_R {
513        S0MASK_R::new(((self.bits >> 24) & 0xff) as u8)
514    }
515}
516impl W {
517    #[doc = "Bit 0 - Enable parsing of CTEInfo from received packet in BLE modes"]
518    #[inline(always)]
519    pub fn cteinlinectrlen(&mut self) -> CTEINLINECTRLEN_W<0> {
520        CTEINLINECTRLEN_W::new(self)
521    }
522    #[doc = "Bit 3 - CTEInfo is S1 byte or not"]
523    #[inline(always)]
524    pub fn cteinfoins1(&mut self) -> CTEINFOINS1_W<3> {
525        CTEINFOINS1_W::new(self)
526    }
527    #[doc = "Bit 4 - Sampling/switching if CRC is not OK"]
528    #[inline(always)]
529    pub fn cteerrorhandling(&mut self) -> CTEERRORHANDLING_W<4> {
530        CTEERRORHANDLING_W::new(self)
531    }
532    #[doc = "Bits 6:7 - Max range of CTETime"]
533    #[inline(always)]
534    pub fn ctetimevalidrange(&mut self) -> CTETIMEVALIDRANGE_W<6> {
535        CTETIMEVALIDRANGE_W::new(self)
536    }
537    #[doc = "Bits 10:12 - Spacing between samples for the samples in the SWITCHING period when CTEINLINEMODE is set."]
538    #[inline(always)]
539    pub fn cteinlinerxmode1us(&mut self) -> CTEINLINERXMODE1US_W<10> {
540        CTEINLINERXMODE1US_W::new(self)
541    }
542    #[doc = "Bits 13:15 - Spacing between samples for the samples in the SWITCHING period when CTEINLINEMODE is set."]
543    #[inline(always)]
544    pub fn cteinlinerxmode2us(&mut self) -> CTEINLINERXMODE2US_W<13> {
545        CTEINLINERXMODE2US_W::new(self)
546    }
547    #[doc = "Bits 16:23 - S0 bit pattern to match"]
548    #[inline(always)]
549    pub fn s0conf(&mut self) -> S0CONF_W<16> {
550        S0CONF_W::new(self)
551    }
552    #[doc = "Bits 24:31 - S0 bit mask to set which bit to match"]
553    #[inline(always)]
554    pub fn s0mask(&mut self) -> S0MASK_W<24> {
555        S0MASK_W::new(self)
556    }
557    #[doc = "Writes raw bits to the register."]
558    #[inline(always)]
559    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
560        self.0.bits(bits);
561        self
562    }
563}
564#[doc = "Configuration for CTE inline mode\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 [cteinlineconf](index.html) module"]
565pub struct CTEINLINECONF_SPEC;
566impl crate::RegisterSpec for CTEINLINECONF_SPEC {
567    type Ux = u32;
568}
569#[doc = "`read()` method returns [cteinlineconf::R](R) reader structure"]
570impl crate::Readable for CTEINLINECONF_SPEC {
571    type Reader = R;
572}
573#[doc = "`write(|w| ..)` method takes [cteinlineconf::W](W) writer structure"]
574impl crate::Writable for CTEINLINECONF_SPEC {
575    type Writer = W;
576}
577#[doc = "`reset()` method sets CTEINLINECONF to value 0x2800"]
578impl crate::Resettable for CTEINLINECONF_SPEC {
579    #[inline(always)]
580    fn reset_value() -> Self::Ux {
581        0x2800
582    }
583}