1#[doc = "Register `CHSR` reader"]
2pub type R = crate::R<ChsrSpec>;
3#[doc = "Field `ENA0` reader - Enable \\[5:0\\]"]
4pub type Ena0R = crate::BitReader;
5#[doc = "Field `ENA1` reader - Enable \\[5:0\\]"]
6pub type Ena1R = crate::BitReader;
7#[doc = "Field `ENA2` reader - Enable \\[5:0\\]"]
8pub type Ena2R = crate::BitReader;
9#[doc = "Field `ENA3` reader - Enable \\[5:0\\]"]
10pub type Ena3R = crate::BitReader;
11#[doc = "Field `ENA4` reader - Enable \\[5:0\\]"]
12pub type Ena4R = crate::BitReader;
13#[doc = "Field `ENA5` reader - Enable \\[5:0\\]"]
14pub type Ena5R = crate::BitReader;
15#[doc = "Field `SUSP0` reader - Suspend \\[5:0\\]"]
16pub type Susp0R = crate::BitReader;
17#[doc = "Field `SUSP1` reader - Suspend \\[5:0\\]"]
18pub type Susp1R = crate::BitReader;
19#[doc = "Field `SUSP2` reader - Suspend \\[5:0\\]"]
20pub type Susp2R = crate::BitReader;
21#[doc = "Field `SUSP3` reader - Suspend \\[5:0\\]"]
22pub type Susp3R = crate::BitReader;
23#[doc = "Field `SUSP4` reader - Suspend \\[5:0\\]"]
24pub type Susp4R = crate::BitReader;
25#[doc = "Field `SUSP5` reader - Suspend \\[5:0\\]"]
26pub type Susp5R = crate::BitReader;
27#[doc = "Field `EMPT0` reader - Empty \\[5:0\\]"]
28pub type Empt0R = crate::BitReader;
29#[doc = "Field `EMPT1` reader - Empty \\[5:0\\]"]
30pub type Empt1R = crate::BitReader;
31#[doc = "Field `EMPT2` reader - Empty \\[5:0\\]"]
32pub type Empt2R = crate::BitReader;
33#[doc = "Field `EMPT3` reader - Empty \\[5:0\\]"]
34pub type Empt3R = crate::BitReader;
35#[doc = "Field `EMPT4` reader - Empty \\[5:0\\]"]
36pub type Empt4R = crate::BitReader;
37#[doc = "Field `EMPT5` reader - Empty \\[5:0\\]"]
38pub type Empt5R = crate::BitReader;
39#[doc = "Field `STAL0` reader - Stalled \\[5:0\\]"]
40pub type Stal0R = crate::BitReader;
41#[doc = "Field `STAL1` reader - Stalled \\[5:0\\]"]
42pub type Stal1R = crate::BitReader;
43#[doc = "Field `STAL2` reader - Stalled \\[5:0\\]"]
44pub type Stal2R = crate::BitReader;
45#[doc = "Field `STAL3` reader - Stalled \\[5:0\\]"]
46pub type Stal3R = crate::BitReader;
47#[doc = "Field `STAL4` reader - Stalled \\[5:0\\]"]
48pub type Stal4R = crate::BitReader;
49#[doc = "Field `STAL5` reader - Stalled \\[5:0\\]"]
50pub type Stal5R = crate::BitReader;
51impl R {
52 #[doc = "Bit 0 - Enable \\[5:0\\]"]
53 #[inline(always)]
54 pub fn ena0(&self) -> Ena0R {
55 Ena0R::new((self.bits & 1) != 0)
56 }
57 #[doc = "Bit 1 - Enable \\[5:0\\]"]
58 #[inline(always)]
59 pub fn ena1(&self) -> Ena1R {
60 Ena1R::new(((self.bits >> 1) & 1) != 0)
61 }
62 #[doc = "Bit 2 - Enable \\[5:0\\]"]
63 #[inline(always)]
64 pub fn ena2(&self) -> Ena2R {
65 Ena2R::new(((self.bits >> 2) & 1) != 0)
66 }
67 #[doc = "Bit 3 - Enable \\[5:0\\]"]
68 #[inline(always)]
69 pub fn ena3(&self) -> Ena3R {
70 Ena3R::new(((self.bits >> 3) & 1) != 0)
71 }
72 #[doc = "Bit 4 - Enable \\[5:0\\]"]
73 #[inline(always)]
74 pub fn ena4(&self) -> Ena4R {
75 Ena4R::new(((self.bits >> 4) & 1) != 0)
76 }
77 #[doc = "Bit 5 - Enable \\[5:0\\]"]
78 #[inline(always)]
79 pub fn ena5(&self) -> Ena5R {
80 Ena5R::new(((self.bits >> 5) & 1) != 0)
81 }
82 #[doc = "Bit 8 - Suspend \\[5:0\\]"]
83 #[inline(always)]
84 pub fn susp0(&self) -> Susp0R {
85 Susp0R::new(((self.bits >> 8) & 1) != 0)
86 }
87 #[doc = "Bit 9 - Suspend \\[5:0\\]"]
88 #[inline(always)]
89 pub fn susp1(&self) -> Susp1R {
90 Susp1R::new(((self.bits >> 9) & 1) != 0)
91 }
92 #[doc = "Bit 10 - Suspend \\[5:0\\]"]
93 #[inline(always)]
94 pub fn susp2(&self) -> Susp2R {
95 Susp2R::new(((self.bits >> 10) & 1) != 0)
96 }
97 #[doc = "Bit 11 - Suspend \\[5:0\\]"]
98 #[inline(always)]
99 pub fn susp3(&self) -> Susp3R {
100 Susp3R::new(((self.bits >> 11) & 1) != 0)
101 }
102 #[doc = "Bit 12 - Suspend \\[5:0\\]"]
103 #[inline(always)]
104 pub fn susp4(&self) -> Susp4R {
105 Susp4R::new(((self.bits >> 12) & 1) != 0)
106 }
107 #[doc = "Bit 13 - Suspend \\[5:0\\]"]
108 #[inline(always)]
109 pub fn susp5(&self) -> Susp5R {
110 Susp5R::new(((self.bits >> 13) & 1) != 0)
111 }
112 #[doc = "Bit 16 - Empty \\[5:0\\]"]
113 #[inline(always)]
114 pub fn empt0(&self) -> Empt0R {
115 Empt0R::new(((self.bits >> 16) & 1) != 0)
116 }
117 #[doc = "Bit 17 - Empty \\[5:0\\]"]
118 #[inline(always)]
119 pub fn empt1(&self) -> Empt1R {
120 Empt1R::new(((self.bits >> 17) & 1) != 0)
121 }
122 #[doc = "Bit 18 - Empty \\[5:0\\]"]
123 #[inline(always)]
124 pub fn empt2(&self) -> Empt2R {
125 Empt2R::new(((self.bits >> 18) & 1) != 0)
126 }
127 #[doc = "Bit 19 - Empty \\[5:0\\]"]
128 #[inline(always)]
129 pub fn empt3(&self) -> Empt3R {
130 Empt3R::new(((self.bits >> 19) & 1) != 0)
131 }
132 #[doc = "Bit 20 - Empty \\[5:0\\]"]
133 #[inline(always)]
134 pub fn empt4(&self) -> Empt4R {
135 Empt4R::new(((self.bits >> 20) & 1) != 0)
136 }
137 #[doc = "Bit 21 - Empty \\[5:0\\]"]
138 #[inline(always)]
139 pub fn empt5(&self) -> Empt5R {
140 Empt5R::new(((self.bits >> 21) & 1) != 0)
141 }
142 #[doc = "Bit 24 - Stalled \\[5:0\\]"]
143 #[inline(always)]
144 pub fn stal0(&self) -> Stal0R {
145 Stal0R::new(((self.bits >> 24) & 1) != 0)
146 }
147 #[doc = "Bit 25 - Stalled \\[5:0\\]"]
148 #[inline(always)]
149 pub fn stal1(&self) -> Stal1R {
150 Stal1R::new(((self.bits >> 25) & 1) != 0)
151 }
152 #[doc = "Bit 26 - Stalled \\[5:0\\]"]
153 #[inline(always)]
154 pub fn stal2(&self) -> Stal2R {
155 Stal2R::new(((self.bits >> 26) & 1) != 0)
156 }
157 #[doc = "Bit 27 - Stalled \\[5:0\\]"]
158 #[inline(always)]
159 pub fn stal3(&self) -> Stal3R {
160 Stal3R::new(((self.bits >> 27) & 1) != 0)
161 }
162 #[doc = "Bit 28 - Stalled \\[5:0\\]"]
163 #[inline(always)]
164 pub fn stal4(&self) -> Stal4R {
165 Stal4R::new(((self.bits >> 28) & 1) != 0)
166 }
167 #[doc = "Bit 29 - Stalled \\[5:0\\]"]
168 #[inline(always)]
169 pub fn stal5(&self) -> Stal5R {
170 Stal5R::new(((self.bits >> 29) & 1) != 0)
171 }
172}
173#[doc = "DMAC Channel Handler Status Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`chsr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
174pub struct ChsrSpec;
175impl crate::RegisterSpec for ChsrSpec {
176 type Ux = u32;
177}
178#[doc = "`read()` method returns [`chsr::R`](R) reader structure"]
179impl crate::Readable for ChsrSpec {}
180#[doc = "`reset()` method sets CHSR to value 0x00ff_0000"]
181impl crate::Resettable for ChsrSpec {
182 const RESET_VALUE: u32 = 0x00ff_0000;
183}