atsaml21e16b/dmac/
busych.rs1#[doc = "Register `BUSYCH` reader"]
2pub struct R(crate::R<BUSYCH_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<BUSYCH_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<BUSYCH_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<BUSYCH_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `BUSYCH0` reader - Busy Channel 0"]
17pub type BUSYCH0_R = crate::BitReader<bool>;
18#[doc = "Field `BUSYCH1` reader - Busy Channel 1"]
19pub type BUSYCH1_R = crate::BitReader<bool>;
20#[doc = "Field `BUSYCH2` reader - Busy Channel 2"]
21pub type BUSYCH2_R = crate::BitReader<bool>;
22#[doc = "Field `BUSYCH3` reader - Busy Channel 3"]
23pub type BUSYCH3_R = crate::BitReader<bool>;
24#[doc = "Field `BUSYCH4` reader - Busy Channel 4"]
25pub type BUSYCH4_R = crate::BitReader<bool>;
26#[doc = "Field `BUSYCH5` reader - Busy Channel 5"]
27pub type BUSYCH5_R = crate::BitReader<bool>;
28#[doc = "Field `BUSYCH6` reader - Busy Channel 6"]
29pub type BUSYCH6_R = crate::BitReader<bool>;
30#[doc = "Field `BUSYCH7` reader - Busy Channel 7"]
31pub type BUSYCH7_R = crate::BitReader<bool>;
32#[doc = "Field `BUSYCH8` reader - Busy Channel 8"]
33pub type BUSYCH8_R = crate::BitReader<bool>;
34#[doc = "Field `BUSYCH9` reader - Busy Channel 9"]
35pub type BUSYCH9_R = crate::BitReader<bool>;
36#[doc = "Field `BUSYCH10` reader - Busy Channel 10"]
37pub type BUSYCH10_R = crate::BitReader<bool>;
38#[doc = "Field `BUSYCH11` reader - Busy Channel 11"]
39pub type BUSYCH11_R = crate::BitReader<bool>;
40#[doc = "Field `BUSYCH12` reader - Busy Channel 12"]
41pub type BUSYCH12_R = crate::BitReader<bool>;
42#[doc = "Field `BUSYCH13` reader - Busy Channel 13"]
43pub type BUSYCH13_R = crate::BitReader<bool>;
44#[doc = "Field `BUSYCH14` reader - Busy Channel 14"]
45pub type BUSYCH14_R = crate::BitReader<bool>;
46#[doc = "Field `BUSYCH15` reader - Busy Channel 15"]
47pub type BUSYCH15_R = crate::BitReader<bool>;
48impl R {
49 #[doc = "Bit 0 - Busy Channel 0"]
50 #[inline(always)]
51 pub fn busych0(&self) -> BUSYCH0_R {
52 BUSYCH0_R::new((self.bits & 1) != 0)
53 }
54 #[doc = "Bit 1 - Busy Channel 1"]
55 #[inline(always)]
56 pub fn busych1(&self) -> BUSYCH1_R {
57 BUSYCH1_R::new(((self.bits >> 1) & 1) != 0)
58 }
59 #[doc = "Bit 2 - Busy Channel 2"]
60 #[inline(always)]
61 pub fn busych2(&self) -> BUSYCH2_R {
62 BUSYCH2_R::new(((self.bits >> 2) & 1) != 0)
63 }
64 #[doc = "Bit 3 - Busy Channel 3"]
65 #[inline(always)]
66 pub fn busych3(&self) -> BUSYCH3_R {
67 BUSYCH3_R::new(((self.bits >> 3) & 1) != 0)
68 }
69 #[doc = "Bit 4 - Busy Channel 4"]
70 #[inline(always)]
71 pub fn busych4(&self) -> BUSYCH4_R {
72 BUSYCH4_R::new(((self.bits >> 4) & 1) != 0)
73 }
74 #[doc = "Bit 5 - Busy Channel 5"]
75 #[inline(always)]
76 pub fn busych5(&self) -> BUSYCH5_R {
77 BUSYCH5_R::new(((self.bits >> 5) & 1) != 0)
78 }
79 #[doc = "Bit 6 - Busy Channel 6"]
80 #[inline(always)]
81 pub fn busych6(&self) -> BUSYCH6_R {
82 BUSYCH6_R::new(((self.bits >> 6) & 1) != 0)
83 }
84 #[doc = "Bit 7 - Busy Channel 7"]
85 #[inline(always)]
86 pub fn busych7(&self) -> BUSYCH7_R {
87 BUSYCH7_R::new(((self.bits >> 7) & 1) != 0)
88 }
89 #[doc = "Bit 8 - Busy Channel 8"]
90 #[inline(always)]
91 pub fn busych8(&self) -> BUSYCH8_R {
92 BUSYCH8_R::new(((self.bits >> 8) & 1) != 0)
93 }
94 #[doc = "Bit 9 - Busy Channel 9"]
95 #[inline(always)]
96 pub fn busych9(&self) -> BUSYCH9_R {
97 BUSYCH9_R::new(((self.bits >> 9) & 1) != 0)
98 }
99 #[doc = "Bit 10 - Busy Channel 10"]
100 #[inline(always)]
101 pub fn busych10(&self) -> BUSYCH10_R {
102 BUSYCH10_R::new(((self.bits >> 10) & 1) != 0)
103 }
104 #[doc = "Bit 11 - Busy Channel 11"]
105 #[inline(always)]
106 pub fn busych11(&self) -> BUSYCH11_R {
107 BUSYCH11_R::new(((self.bits >> 11) & 1) != 0)
108 }
109 #[doc = "Bit 12 - Busy Channel 12"]
110 #[inline(always)]
111 pub fn busych12(&self) -> BUSYCH12_R {
112 BUSYCH12_R::new(((self.bits >> 12) & 1) != 0)
113 }
114 #[doc = "Bit 13 - Busy Channel 13"]
115 #[inline(always)]
116 pub fn busych13(&self) -> BUSYCH13_R {
117 BUSYCH13_R::new(((self.bits >> 13) & 1) != 0)
118 }
119 #[doc = "Bit 14 - Busy Channel 14"]
120 #[inline(always)]
121 pub fn busych14(&self) -> BUSYCH14_R {
122 BUSYCH14_R::new(((self.bits >> 14) & 1) != 0)
123 }
124 #[doc = "Bit 15 - Busy Channel 15"]
125 #[inline(always)]
126 pub fn busych15(&self) -> BUSYCH15_R {
127 BUSYCH15_R::new(((self.bits >> 15) & 1) != 0)
128 }
129}
130#[doc = "Busy Channels\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [busych](index.html) module"]
131pub struct BUSYCH_SPEC;
132impl crate::RegisterSpec for BUSYCH_SPEC {
133 type Ux = u32;
134}
135#[doc = "`read()` method returns [busych::R](R) reader structure"]
136impl crate::Readable for BUSYCH_SPEC {
137 type Reader = R;
138}
139#[doc = "`reset()` method sets BUSYCH to value 0"]
140impl crate::Resettable for BUSYCH_SPEC {
141 const RESET_VALUE: Self::Ux = 0;
142}