nrf52840_pac/radio/
dacnf.rs

1#[doc = "Register `DACNF` reader"]
2pub struct R(crate::R<DACNF_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<DACNF_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<DACNF_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<DACNF_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `DACNF` writer"]
17pub struct W(crate::W<DACNF_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<DACNF_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<DACNF_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<DACNF_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `ENA0` reader - Enable or disable device address matching using device address 0"]
38pub type ENA0_R = crate::BitReader<ENA0_A>;
39#[doc = "Enable or disable device address matching using device address 0\n\nValue on reset: 0"]
40#[derive(Clone, Copy, Debug, PartialEq)]
41pub enum ENA0_A {
42    #[doc = "0: Disabled"]
43    DISABLED = 0,
44    #[doc = "1: Enabled"]
45    ENABLED = 1,
46}
47impl From<ENA0_A> for bool {
48    #[inline(always)]
49    fn from(variant: ENA0_A) -> Self {
50        variant as u8 != 0
51    }
52}
53impl ENA0_R {
54    #[doc = "Get enumerated values variant"]
55    #[inline(always)]
56    pub fn variant(&self) -> ENA0_A {
57        match self.bits {
58            false => ENA0_A::DISABLED,
59            true => ENA0_A::ENABLED,
60        }
61    }
62    #[doc = "Checks if the value of the field is `DISABLED`"]
63    #[inline(always)]
64    pub fn is_disabled(&self) -> bool {
65        *self == ENA0_A::DISABLED
66    }
67    #[doc = "Checks if the value of the field is `ENABLED`"]
68    #[inline(always)]
69    pub fn is_enabled(&self) -> bool {
70        *self == ENA0_A::ENABLED
71    }
72}
73#[doc = "Field `ENA0` writer - Enable or disable device address matching using device address 0"]
74pub type ENA0_W<'a, const O: u8> = crate::BitWriter<'a, u32, DACNF_SPEC, ENA0_A, O>;
75impl<'a, const O: u8> ENA0_W<'a, O> {
76    #[doc = "Disabled"]
77    #[inline(always)]
78    pub fn disabled(self) -> &'a mut W {
79        self.variant(ENA0_A::DISABLED)
80    }
81    #[doc = "Enabled"]
82    #[inline(always)]
83    pub fn enabled(self) -> &'a mut W {
84        self.variant(ENA0_A::ENABLED)
85    }
86}
87#[doc = "Field `ENA1` reader - Enable or disable device address matching using device address 1"]
88pub type ENA1_R = crate::BitReader<ENA1_A>;
89#[doc = "Enable or disable device address matching using device address 1\n\nValue on reset: 0"]
90#[derive(Clone, Copy, Debug, PartialEq)]
91pub enum ENA1_A {
92    #[doc = "0: Disabled"]
93    DISABLED = 0,
94    #[doc = "1: Enabled"]
95    ENABLED = 1,
96}
97impl From<ENA1_A> for bool {
98    #[inline(always)]
99    fn from(variant: ENA1_A) -> Self {
100        variant as u8 != 0
101    }
102}
103impl ENA1_R {
104    #[doc = "Get enumerated values variant"]
105    #[inline(always)]
106    pub fn variant(&self) -> ENA1_A {
107        match self.bits {
108            false => ENA1_A::DISABLED,
109            true => ENA1_A::ENABLED,
110        }
111    }
112    #[doc = "Checks if the value of the field is `DISABLED`"]
113    #[inline(always)]
114    pub fn is_disabled(&self) -> bool {
115        *self == ENA1_A::DISABLED
116    }
117    #[doc = "Checks if the value of the field is `ENABLED`"]
118    #[inline(always)]
119    pub fn is_enabled(&self) -> bool {
120        *self == ENA1_A::ENABLED
121    }
122}
123#[doc = "Field `ENA1` writer - Enable or disable device address matching using device address 1"]
124pub type ENA1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DACNF_SPEC, ENA1_A, O>;
125impl<'a, const O: u8> ENA1_W<'a, O> {
126    #[doc = "Disabled"]
127    #[inline(always)]
128    pub fn disabled(self) -> &'a mut W {
129        self.variant(ENA1_A::DISABLED)
130    }
131    #[doc = "Enabled"]
132    #[inline(always)]
133    pub fn enabled(self) -> &'a mut W {
134        self.variant(ENA1_A::ENABLED)
135    }
136}
137#[doc = "Field `ENA2` reader - Enable or disable device address matching using device address 2"]
138pub type ENA2_R = crate::BitReader<ENA2_A>;
139#[doc = "Enable or disable device address matching using device address 2\n\nValue on reset: 0"]
140#[derive(Clone, Copy, Debug, PartialEq)]
141pub enum ENA2_A {
142    #[doc = "0: Disabled"]
143    DISABLED = 0,
144    #[doc = "1: Enabled"]
145    ENABLED = 1,
146}
147impl From<ENA2_A> for bool {
148    #[inline(always)]
149    fn from(variant: ENA2_A) -> Self {
150        variant as u8 != 0
151    }
152}
153impl ENA2_R {
154    #[doc = "Get enumerated values variant"]
155    #[inline(always)]
156    pub fn variant(&self) -> ENA2_A {
157        match self.bits {
158            false => ENA2_A::DISABLED,
159            true => ENA2_A::ENABLED,
160        }
161    }
162    #[doc = "Checks if the value of the field is `DISABLED`"]
163    #[inline(always)]
164    pub fn is_disabled(&self) -> bool {
165        *self == ENA2_A::DISABLED
166    }
167    #[doc = "Checks if the value of the field is `ENABLED`"]
168    #[inline(always)]
169    pub fn is_enabled(&self) -> bool {
170        *self == ENA2_A::ENABLED
171    }
172}
173#[doc = "Field `ENA2` writer - Enable or disable device address matching using device address 2"]
174pub type ENA2_W<'a, const O: u8> = crate::BitWriter<'a, u32, DACNF_SPEC, ENA2_A, O>;
175impl<'a, const O: u8> ENA2_W<'a, O> {
176    #[doc = "Disabled"]
177    #[inline(always)]
178    pub fn disabled(self) -> &'a mut W {
179        self.variant(ENA2_A::DISABLED)
180    }
181    #[doc = "Enabled"]
182    #[inline(always)]
183    pub fn enabled(self) -> &'a mut W {
184        self.variant(ENA2_A::ENABLED)
185    }
186}
187#[doc = "Field `ENA3` reader - Enable or disable device address matching using device address 3"]
188pub type ENA3_R = crate::BitReader<ENA3_A>;
189#[doc = "Enable or disable device address matching using device address 3\n\nValue on reset: 0"]
190#[derive(Clone, Copy, Debug, PartialEq)]
191pub enum ENA3_A {
192    #[doc = "0: Disabled"]
193    DISABLED = 0,
194    #[doc = "1: Enabled"]
195    ENABLED = 1,
196}
197impl From<ENA3_A> for bool {
198    #[inline(always)]
199    fn from(variant: ENA3_A) -> Self {
200        variant as u8 != 0
201    }
202}
203impl ENA3_R {
204    #[doc = "Get enumerated values variant"]
205    #[inline(always)]
206    pub fn variant(&self) -> ENA3_A {
207        match self.bits {
208            false => ENA3_A::DISABLED,
209            true => ENA3_A::ENABLED,
210        }
211    }
212    #[doc = "Checks if the value of the field is `DISABLED`"]
213    #[inline(always)]
214    pub fn is_disabled(&self) -> bool {
215        *self == ENA3_A::DISABLED
216    }
217    #[doc = "Checks if the value of the field is `ENABLED`"]
218    #[inline(always)]
219    pub fn is_enabled(&self) -> bool {
220        *self == ENA3_A::ENABLED
221    }
222}
223#[doc = "Field `ENA3` writer - Enable or disable device address matching using device address 3"]
224pub type ENA3_W<'a, const O: u8> = crate::BitWriter<'a, u32, DACNF_SPEC, ENA3_A, O>;
225impl<'a, const O: u8> ENA3_W<'a, O> {
226    #[doc = "Disabled"]
227    #[inline(always)]
228    pub fn disabled(self) -> &'a mut W {
229        self.variant(ENA3_A::DISABLED)
230    }
231    #[doc = "Enabled"]
232    #[inline(always)]
233    pub fn enabled(self) -> &'a mut W {
234        self.variant(ENA3_A::ENABLED)
235    }
236}
237#[doc = "Field `ENA4` reader - Enable or disable device address matching using device address 4"]
238pub type ENA4_R = crate::BitReader<ENA4_A>;
239#[doc = "Enable or disable device address matching using device address 4\n\nValue on reset: 0"]
240#[derive(Clone, Copy, Debug, PartialEq)]
241pub enum ENA4_A {
242    #[doc = "0: Disabled"]
243    DISABLED = 0,
244    #[doc = "1: Enabled"]
245    ENABLED = 1,
246}
247impl From<ENA4_A> for bool {
248    #[inline(always)]
249    fn from(variant: ENA4_A) -> Self {
250        variant as u8 != 0
251    }
252}
253impl ENA4_R {
254    #[doc = "Get enumerated values variant"]
255    #[inline(always)]
256    pub fn variant(&self) -> ENA4_A {
257        match self.bits {
258            false => ENA4_A::DISABLED,
259            true => ENA4_A::ENABLED,
260        }
261    }
262    #[doc = "Checks if the value of the field is `DISABLED`"]
263    #[inline(always)]
264    pub fn is_disabled(&self) -> bool {
265        *self == ENA4_A::DISABLED
266    }
267    #[doc = "Checks if the value of the field is `ENABLED`"]
268    #[inline(always)]
269    pub fn is_enabled(&self) -> bool {
270        *self == ENA4_A::ENABLED
271    }
272}
273#[doc = "Field `ENA4` writer - Enable or disable device address matching using device address 4"]
274pub type ENA4_W<'a, const O: u8> = crate::BitWriter<'a, u32, DACNF_SPEC, ENA4_A, O>;
275impl<'a, const O: u8> ENA4_W<'a, O> {
276    #[doc = "Disabled"]
277    #[inline(always)]
278    pub fn disabled(self) -> &'a mut W {
279        self.variant(ENA4_A::DISABLED)
280    }
281    #[doc = "Enabled"]
282    #[inline(always)]
283    pub fn enabled(self) -> &'a mut W {
284        self.variant(ENA4_A::ENABLED)
285    }
286}
287#[doc = "Field `ENA5` reader - Enable or disable device address matching using device address 5"]
288pub type ENA5_R = crate::BitReader<ENA5_A>;
289#[doc = "Enable or disable device address matching using device address 5\n\nValue on reset: 0"]
290#[derive(Clone, Copy, Debug, PartialEq)]
291pub enum ENA5_A {
292    #[doc = "0: Disabled"]
293    DISABLED = 0,
294    #[doc = "1: Enabled"]
295    ENABLED = 1,
296}
297impl From<ENA5_A> for bool {
298    #[inline(always)]
299    fn from(variant: ENA5_A) -> Self {
300        variant as u8 != 0
301    }
302}
303impl ENA5_R {
304    #[doc = "Get enumerated values variant"]
305    #[inline(always)]
306    pub fn variant(&self) -> ENA5_A {
307        match self.bits {
308            false => ENA5_A::DISABLED,
309            true => ENA5_A::ENABLED,
310        }
311    }
312    #[doc = "Checks if the value of the field is `DISABLED`"]
313    #[inline(always)]
314    pub fn is_disabled(&self) -> bool {
315        *self == ENA5_A::DISABLED
316    }
317    #[doc = "Checks if the value of the field is `ENABLED`"]
318    #[inline(always)]
319    pub fn is_enabled(&self) -> bool {
320        *self == ENA5_A::ENABLED
321    }
322}
323#[doc = "Field `ENA5` writer - Enable or disable device address matching using device address 5"]
324pub type ENA5_W<'a, const O: u8> = crate::BitWriter<'a, u32, DACNF_SPEC, ENA5_A, O>;
325impl<'a, const O: u8> ENA5_W<'a, O> {
326    #[doc = "Disabled"]
327    #[inline(always)]
328    pub fn disabled(self) -> &'a mut W {
329        self.variant(ENA5_A::DISABLED)
330    }
331    #[doc = "Enabled"]
332    #[inline(always)]
333    pub fn enabled(self) -> &'a mut W {
334        self.variant(ENA5_A::ENABLED)
335    }
336}
337#[doc = "Field `ENA6` reader - Enable or disable device address matching using device address 6"]
338pub type ENA6_R = crate::BitReader<ENA6_A>;
339#[doc = "Enable or disable device address matching using device address 6\n\nValue on reset: 0"]
340#[derive(Clone, Copy, Debug, PartialEq)]
341pub enum ENA6_A {
342    #[doc = "0: Disabled"]
343    DISABLED = 0,
344    #[doc = "1: Enabled"]
345    ENABLED = 1,
346}
347impl From<ENA6_A> for bool {
348    #[inline(always)]
349    fn from(variant: ENA6_A) -> Self {
350        variant as u8 != 0
351    }
352}
353impl ENA6_R {
354    #[doc = "Get enumerated values variant"]
355    #[inline(always)]
356    pub fn variant(&self) -> ENA6_A {
357        match self.bits {
358            false => ENA6_A::DISABLED,
359            true => ENA6_A::ENABLED,
360        }
361    }
362    #[doc = "Checks if the value of the field is `DISABLED`"]
363    #[inline(always)]
364    pub fn is_disabled(&self) -> bool {
365        *self == ENA6_A::DISABLED
366    }
367    #[doc = "Checks if the value of the field is `ENABLED`"]
368    #[inline(always)]
369    pub fn is_enabled(&self) -> bool {
370        *self == ENA6_A::ENABLED
371    }
372}
373#[doc = "Field `ENA6` writer - Enable or disable device address matching using device address 6"]
374pub type ENA6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DACNF_SPEC, ENA6_A, O>;
375impl<'a, const O: u8> ENA6_W<'a, O> {
376    #[doc = "Disabled"]
377    #[inline(always)]
378    pub fn disabled(self) -> &'a mut W {
379        self.variant(ENA6_A::DISABLED)
380    }
381    #[doc = "Enabled"]
382    #[inline(always)]
383    pub fn enabled(self) -> &'a mut W {
384        self.variant(ENA6_A::ENABLED)
385    }
386}
387#[doc = "Field `ENA7` reader - Enable or disable device address matching using device address 7"]
388pub type ENA7_R = crate::BitReader<ENA7_A>;
389#[doc = "Enable or disable device address matching using device address 7\n\nValue on reset: 0"]
390#[derive(Clone, Copy, Debug, PartialEq)]
391pub enum ENA7_A {
392    #[doc = "0: Disabled"]
393    DISABLED = 0,
394    #[doc = "1: Enabled"]
395    ENABLED = 1,
396}
397impl From<ENA7_A> for bool {
398    #[inline(always)]
399    fn from(variant: ENA7_A) -> Self {
400        variant as u8 != 0
401    }
402}
403impl ENA7_R {
404    #[doc = "Get enumerated values variant"]
405    #[inline(always)]
406    pub fn variant(&self) -> ENA7_A {
407        match self.bits {
408            false => ENA7_A::DISABLED,
409            true => ENA7_A::ENABLED,
410        }
411    }
412    #[doc = "Checks if the value of the field is `DISABLED`"]
413    #[inline(always)]
414    pub fn is_disabled(&self) -> bool {
415        *self == ENA7_A::DISABLED
416    }
417    #[doc = "Checks if the value of the field is `ENABLED`"]
418    #[inline(always)]
419    pub fn is_enabled(&self) -> bool {
420        *self == ENA7_A::ENABLED
421    }
422}
423#[doc = "Field `ENA7` writer - Enable or disable device address matching using device address 7"]
424pub type ENA7_W<'a, const O: u8> = crate::BitWriter<'a, u32, DACNF_SPEC, ENA7_A, O>;
425impl<'a, const O: u8> ENA7_W<'a, O> {
426    #[doc = "Disabled"]
427    #[inline(always)]
428    pub fn disabled(self) -> &'a mut W {
429        self.variant(ENA7_A::DISABLED)
430    }
431    #[doc = "Enabled"]
432    #[inline(always)]
433    pub fn enabled(self) -> &'a mut W {
434        self.variant(ENA7_A::ENABLED)
435    }
436}
437#[doc = "Field `TXADD0` reader - TxAdd for device address 0"]
438pub type TXADD0_R = crate::BitReader<bool>;
439#[doc = "Field `TXADD0` writer - TxAdd for device address 0"]
440pub type TXADD0_W<'a, const O: u8> = crate::BitWriter<'a, u32, DACNF_SPEC, bool, O>;
441#[doc = "Field `TXADD1` reader - TxAdd for device address 1"]
442pub type TXADD1_R = crate::BitReader<bool>;
443#[doc = "Field `TXADD1` writer - TxAdd for device address 1"]
444pub type TXADD1_W<'a, const O: u8> = crate::BitWriter<'a, u32, DACNF_SPEC, bool, O>;
445#[doc = "Field `TXADD2` reader - TxAdd for device address 2"]
446pub type TXADD2_R = crate::BitReader<bool>;
447#[doc = "Field `TXADD2` writer - TxAdd for device address 2"]
448pub type TXADD2_W<'a, const O: u8> = crate::BitWriter<'a, u32, DACNF_SPEC, bool, O>;
449#[doc = "Field `TXADD3` reader - TxAdd for device address 3"]
450pub type TXADD3_R = crate::BitReader<bool>;
451#[doc = "Field `TXADD3` writer - TxAdd for device address 3"]
452pub type TXADD3_W<'a, const O: u8> = crate::BitWriter<'a, u32, DACNF_SPEC, bool, O>;
453#[doc = "Field `TXADD4` reader - TxAdd for device address 4"]
454pub type TXADD4_R = crate::BitReader<bool>;
455#[doc = "Field `TXADD4` writer - TxAdd for device address 4"]
456pub type TXADD4_W<'a, const O: u8> = crate::BitWriter<'a, u32, DACNF_SPEC, bool, O>;
457#[doc = "Field `TXADD5` reader - TxAdd for device address 5"]
458pub type TXADD5_R = crate::BitReader<bool>;
459#[doc = "Field `TXADD5` writer - TxAdd for device address 5"]
460pub type TXADD5_W<'a, const O: u8> = crate::BitWriter<'a, u32, DACNF_SPEC, bool, O>;
461#[doc = "Field `TXADD6` reader - TxAdd for device address 6"]
462pub type TXADD6_R = crate::BitReader<bool>;
463#[doc = "Field `TXADD6` writer - TxAdd for device address 6"]
464pub type TXADD6_W<'a, const O: u8> = crate::BitWriter<'a, u32, DACNF_SPEC, bool, O>;
465#[doc = "Field `TXADD7` reader - TxAdd for device address 7"]
466pub type TXADD7_R = crate::BitReader<bool>;
467#[doc = "Field `TXADD7` writer - TxAdd for device address 7"]
468pub type TXADD7_W<'a, const O: u8> = crate::BitWriter<'a, u32, DACNF_SPEC, bool, O>;
469impl R {
470    #[doc = "Bit 0 - Enable or disable device address matching using device address 0"]
471    #[inline(always)]
472    pub fn ena0(&self) -> ENA0_R {
473        ENA0_R::new((self.bits & 1) != 0)
474    }
475    #[doc = "Bit 1 - Enable or disable device address matching using device address 1"]
476    #[inline(always)]
477    pub fn ena1(&self) -> ENA1_R {
478        ENA1_R::new(((self.bits >> 1) & 1) != 0)
479    }
480    #[doc = "Bit 2 - Enable or disable device address matching using device address 2"]
481    #[inline(always)]
482    pub fn ena2(&self) -> ENA2_R {
483        ENA2_R::new(((self.bits >> 2) & 1) != 0)
484    }
485    #[doc = "Bit 3 - Enable or disable device address matching using device address 3"]
486    #[inline(always)]
487    pub fn ena3(&self) -> ENA3_R {
488        ENA3_R::new(((self.bits >> 3) & 1) != 0)
489    }
490    #[doc = "Bit 4 - Enable or disable device address matching using device address 4"]
491    #[inline(always)]
492    pub fn ena4(&self) -> ENA4_R {
493        ENA4_R::new(((self.bits >> 4) & 1) != 0)
494    }
495    #[doc = "Bit 5 - Enable or disable device address matching using device address 5"]
496    #[inline(always)]
497    pub fn ena5(&self) -> ENA5_R {
498        ENA5_R::new(((self.bits >> 5) & 1) != 0)
499    }
500    #[doc = "Bit 6 - Enable or disable device address matching using device address 6"]
501    #[inline(always)]
502    pub fn ena6(&self) -> ENA6_R {
503        ENA6_R::new(((self.bits >> 6) & 1) != 0)
504    }
505    #[doc = "Bit 7 - Enable or disable device address matching using device address 7"]
506    #[inline(always)]
507    pub fn ena7(&self) -> ENA7_R {
508        ENA7_R::new(((self.bits >> 7) & 1) != 0)
509    }
510    #[doc = "Bit 8 - TxAdd for device address 0"]
511    #[inline(always)]
512    pub fn txadd0(&self) -> TXADD0_R {
513        TXADD0_R::new(((self.bits >> 8) & 1) != 0)
514    }
515    #[doc = "Bit 9 - TxAdd for device address 1"]
516    #[inline(always)]
517    pub fn txadd1(&self) -> TXADD1_R {
518        TXADD1_R::new(((self.bits >> 9) & 1) != 0)
519    }
520    #[doc = "Bit 10 - TxAdd for device address 2"]
521    #[inline(always)]
522    pub fn txadd2(&self) -> TXADD2_R {
523        TXADD2_R::new(((self.bits >> 10) & 1) != 0)
524    }
525    #[doc = "Bit 11 - TxAdd for device address 3"]
526    #[inline(always)]
527    pub fn txadd3(&self) -> TXADD3_R {
528        TXADD3_R::new(((self.bits >> 11) & 1) != 0)
529    }
530    #[doc = "Bit 12 - TxAdd for device address 4"]
531    #[inline(always)]
532    pub fn txadd4(&self) -> TXADD4_R {
533        TXADD4_R::new(((self.bits >> 12) & 1) != 0)
534    }
535    #[doc = "Bit 13 - TxAdd for device address 5"]
536    #[inline(always)]
537    pub fn txadd5(&self) -> TXADD5_R {
538        TXADD5_R::new(((self.bits >> 13) & 1) != 0)
539    }
540    #[doc = "Bit 14 - TxAdd for device address 6"]
541    #[inline(always)]
542    pub fn txadd6(&self) -> TXADD6_R {
543        TXADD6_R::new(((self.bits >> 14) & 1) != 0)
544    }
545    #[doc = "Bit 15 - TxAdd for device address 7"]
546    #[inline(always)]
547    pub fn txadd7(&self) -> TXADD7_R {
548        TXADD7_R::new(((self.bits >> 15) & 1) != 0)
549    }
550}
551impl W {
552    #[doc = "Bit 0 - Enable or disable device address matching using device address 0"]
553    #[inline(always)]
554    pub fn ena0(&mut self) -> ENA0_W<0> {
555        ENA0_W::new(self)
556    }
557    #[doc = "Bit 1 - Enable or disable device address matching using device address 1"]
558    #[inline(always)]
559    pub fn ena1(&mut self) -> ENA1_W<1> {
560        ENA1_W::new(self)
561    }
562    #[doc = "Bit 2 - Enable or disable device address matching using device address 2"]
563    #[inline(always)]
564    pub fn ena2(&mut self) -> ENA2_W<2> {
565        ENA2_W::new(self)
566    }
567    #[doc = "Bit 3 - Enable or disable device address matching using device address 3"]
568    #[inline(always)]
569    pub fn ena3(&mut self) -> ENA3_W<3> {
570        ENA3_W::new(self)
571    }
572    #[doc = "Bit 4 - Enable or disable device address matching using device address 4"]
573    #[inline(always)]
574    pub fn ena4(&mut self) -> ENA4_W<4> {
575        ENA4_W::new(self)
576    }
577    #[doc = "Bit 5 - Enable or disable device address matching using device address 5"]
578    #[inline(always)]
579    pub fn ena5(&mut self) -> ENA5_W<5> {
580        ENA5_W::new(self)
581    }
582    #[doc = "Bit 6 - Enable or disable device address matching using device address 6"]
583    #[inline(always)]
584    pub fn ena6(&mut self) -> ENA6_W<6> {
585        ENA6_W::new(self)
586    }
587    #[doc = "Bit 7 - Enable or disable device address matching using device address 7"]
588    #[inline(always)]
589    pub fn ena7(&mut self) -> ENA7_W<7> {
590        ENA7_W::new(self)
591    }
592    #[doc = "Bit 8 - TxAdd for device address 0"]
593    #[inline(always)]
594    pub fn txadd0(&mut self) -> TXADD0_W<8> {
595        TXADD0_W::new(self)
596    }
597    #[doc = "Bit 9 - TxAdd for device address 1"]
598    #[inline(always)]
599    pub fn txadd1(&mut self) -> TXADD1_W<9> {
600        TXADD1_W::new(self)
601    }
602    #[doc = "Bit 10 - TxAdd for device address 2"]
603    #[inline(always)]
604    pub fn txadd2(&mut self) -> TXADD2_W<10> {
605        TXADD2_W::new(self)
606    }
607    #[doc = "Bit 11 - TxAdd for device address 3"]
608    #[inline(always)]
609    pub fn txadd3(&mut self) -> TXADD3_W<11> {
610        TXADD3_W::new(self)
611    }
612    #[doc = "Bit 12 - TxAdd for device address 4"]
613    #[inline(always)]
614    pub fn txadd4(&mut self) -> TXADD4_W<12> {
615        TXADD4_W::new(self)
616    }
617    #[doc = "Bit 13 - TxAdd for device address 5"]
618    #[inline(always)]
619    pub fn txadd5(&mut self) -> TXADD5_W<13> {
620        TXADD5_W::new(self)
621    }
622    #[doc = "Bit 14 - TxAdd for device address 6"]
623    #[inline(always)]
624    pub fn txadd6(&mut self) -> TXADD6_W<14> {
625        TXADD6_W::new(self)
626    }
627    #[doc = "Bit 15 - TxAdd for device address 7"]
628    #[inline(always)]
629    pub fn txadd7(&mut self) -> TXADD7_W<15> {
630        TXADD7_W::new(self)
631    }
632    #[doc = "Writes raw bits to the register."]
633    #[inline(always)]
634    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
635        self.0.bits(bits);
636        self
637    }
638}
639#[doc = "Device address match configuration\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 [dacnf](index.html) module"]
640pub struct DACNF_SPEC;
641impl crate::RegisterSpec for DACNF_SPEC {
642    type Ux = u32;
643}
644#[doc = "`read()` method returns [dacnf::R](R) reader structure"]
645impl crate::Readable for DACNF_SPEC {
646    type Reader = R;
647}
648#[doc = "`write(|w| ..)` method takes [dacnf::W](W) writer structure"]
649impl crate::Writable for DACNF_SPEC {
650    type Writer = W;
651}
652#[doc = "`reset()` method sets DACNF to value 0"]
653impl crate::Resettable for DACNF_SPEC {
654    #[inline(always)]
655    fn reset_value() -> Self::Ux {
656        0
657    }
658}