atsamd51n/mclk/
apbdmask.rs1#[doc = "Register `APBDMASK` reader"]
2pub type R = crate::R<ApbdmaskSpec>;
3#[doc = "Register `APBDMASK` writer"]
4pub type W = crate::W<ApbdmaskSpec>;
5#[doc = "Field `SERCOM4_` reader - SERCOM4 APB Clock Enable"]
6pub type Sercom4_R = crate::BitReader;
7#[doc = "Field `SERCOM4_` writer - SERCOM4 APB Clock Enable"]
8pub type Sercom4_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `SERCOM5_` reader - SERCOM5 APB Clock Enable"]
10pub type Sercom5_R = crate::BitReader;
11#[doc = "Field `SERCOM5_` writer - SERCOM5 APB Clock Enable"]
12pub type Sercom5_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `SERCOM6_` reader - SERCOM6 APB Clock Enable"]
14pub type Sercom6_R = crate::BitReader;
15#[doc = "Field `SERCOM6_` writer - SERCOM6 APB Clock Enable"]
16pub type Sercom6_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `SERCOM7_` reader - SERCOM7 APB Clock Enable"]
18pub type Sercom7_R = crate::BitReader;
19#[doc = "Field `SERCOM7_` writer - SERCOM7 APB Clock Enable"]
20pub type Sercom7_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `TCC4_` reader - TCC4 APB Clock Enable"]
22pub type Tcc4_R = crate::BitReader;
23#[doc = "Field `TCC4_` writer - TCC4 APB Clock Enable"]
24pub type Tcc4_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `TC6_` reader - TC6 APB Clock Enable"]
26pub type Tc6_R = crate::BitReader;
27#[doc = "Field `TC6_` writer - TC6 APB Clock Enable"]
28pub type Tc6_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `TC7_` reader - TC7 APB Clock Enable"]
30pub type Tc7_R = crate::BitReader;
31#[doc = "Field `TC7_` writer - TC7 APB Clock Enable"]
32pub type Tc7_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `ADC0_` reader - ADC0 APB Clock Enable"]
34pub type Adc0_R = crate::BitReader;
35#[doc = "Field `ADC0_` writer - ADC0 APB Clock Enable"]
36pub type Adc0_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `ADC1_` reader - ADC1 APB Clock Enable"]
38pub type Adc1_R = crate::BitReader;
39#[doc = "Field `ADC1_` writer - ADC1 APB Clock Enable"]
40pub type Adc1_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `DAC_` reader - DAC APB Clock Enable"]
42pub type Dac_R = crate::BitReader;
43#[doc = "Field `DAC_` writer - DAC APB Clock Enable"]
44pub type Dac_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `I2S_` reader - I2S APB Clock Enable"]
46pub type I2s_R = crate::BitReader;
47#[doc = "Field `I2S_` writer - I2S APB Clock Enable"]
48pub type I2s_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `PCC_` reader - PCC APB Clock Enable"]
50pub type Pcc_R = crate::BitReader;
51#[doc = "Field `PCC_` writer - PCC APB Clock Enable"]
52pub type Pcc_W<'a, REG> = crate::BitWriter<'a, REG>;
53impl R {
54 #[doc = "Bit 0 - SERCOM4 APB Clock Enable"]
55 #[inline(always)]
56 pub fn sercom4_(&self) -> Sercom4_R {
57 Sercom4_R::new((self.bits & 1) != 0)
58 }
59 #[doc = "Bit 1 - SERCOM5 APB Clock Enable"]
60 #[inline(always)]
61 pub fn sercom5_(&self) -> Sercom5_R {
62 Sercom5_R::new(((self.bits >> 1) & 1) != 0)
63 }
64 #[doc = "Bit 2 - SERCOM6 APB Clock Enable"]
65 #[inline(always)]
66 pub fn sercom6_(&self) -> Sercom6_R {
67 Sercom6_R::new(((self.bits >> 2) & 1) != 0)
68 }
69 #[doc = "Bit 3 - SERCOM7 APB Clock Enable"]
70 #[inline(always)]
71 pub fn sercom7_(&self) -> Sercom7_R {
72 Sercom7_R::new(((self.bits >> 3) & 1) != 0)
73 }
74 #[doc = "Bit 4 - TCC4 APB Clock Enable"]
75 #[inline(always)]
76 pub fn tcc4_(&self) -> Tcc4_R {
77 Tcc4_R::new(((self.bits >> 4) & 1) != 0)
78 }
79 #[doc = "Bit 5 - TC6 APB Clock Enable"]
80 #[inline(always)]
81 pub fn tc6_(&self) -> Tc6_R {
82 Tc6_R::new(((self.bits >> 5) & 1) != 0)
83 }
84 #[doc = "Bit 6 - TC7 APB Clock Enable"]
85 #[inline(always)]
86 pub fn tc7_(&self) -> Tc7_R {
87 Tc7_R::new(((self.bits >> 6) & 1) != 0)
88 }
89 #[doc = "Bit 7 - ADC0 APB Clock Enable"]
90 #[inline(always)]
91 pub fn adc0_(&self) -> Adc0_R {
92 Adc0_R::new(((self.bits >> 7) & 1) != 0)
93 }
94 #[doc = "Bit 8 - ADC1 APB Clock Enable"]
95 #[inline(always)]
96 pub fn adc1_(&self) -> Adc1_R {
97 Adc1_R::new(((self.bits >> 8) & 1) != 0)
98 }
99 #[doc = "Bit 9 - DAC APB Clock Enable"]
100 #[inline(always)]
101 pub fn dac_(&self) -> Dac_R {
102 Dac_R::new(((self.bits >> 9) & 1) != 0)
103 }
104 #[doc = "Bit 10 - I2S APB Clock Enable"]
105 #[inline(always)]
106 pub fn i2s_(&self) -> I2s_R {
107 I2s_R::new(((self.bits >> 10) & 1) != 0)
108 }
109 #[doc = "Bit 11 - PCC APB Clock Enable"]
110 #[inline(always)]
111 pub fn pcc_(&self) -> Pcc_R {
112 Pcc_R::new(((self.bits >> 11) & 1) != 0)
113 }
114}
115impl W {
116 #[doc = "Bit 0 - SERCOM4 APB Clock Enable"]
117 #[inline(always)]
118 #[must_use]
119 pub fn sercom4_(&mut self) -> Sercom4_W<ApbdmaskSpec> {
120 Sercom4_W::new(self, 0)
121 }
122 #[doc = "Bit 1 - SERCOM5 APB Clock Enable"]
123 #[inline(always)]
124 #[must_use]
125 pub fn sercom5_(&mut self) -> Sercom5_W<ApbdmaskSpec> {
126 Sercom5_W::new(self, 1)
127 }
128 #[doc = "Bit 2 - SERCOM6 APB Clock Enable"]
129 #[inline(always)]
130 #[must_use]
131 pub fn sercom6_(&mut self) -> Sercom6_W<ApbdmaskSpec> {
132 Sercom6_W::new(self, 2)
133 }
134 #[doc = "Bit 3 - SERCOM7 APB Clock Enable"]
135 #[inline(always)]
136 #[must_use]
137 pub fn sercom7_(&mut self) -> Sercom7_W<ApbdmaskSpec> {
138 Sercom7_W::new(self, 3)
139 }
140 #[doc = "Bit 4 - TCC4 APB Clock Enable"]
141 #[inline(always)]
142 #[must_use]
143 pub fn tcc4_(&mut self) -> Tcc4_W<ApbdmaskSpec> {
144 Tcc4_W::new(self, 4)
145 }
146 #[doc = "Bit 5 - TC6 APB Clock Enable"]
147 #[inline(always)]
148 #[must_use]
149 pub fn tc6_(&mut self) -> Tc6_W<ApbdmaskSpec> {
150 Tc6_W::new(self, 5)
151 }
152 #[doc = "Bit 6 - TC7 APB Clock Enable"]
153 #[inline(always)]
154 #[must_use]
155 pub fn tc7_(&mut self) -> Tc7_W<ApbdmaskSpec> {
156 Tc7_W::new(self, 6)
157 }
158 #[doc = "Bit 7 - ADC0 APB Clock Enable"]
159 #[inline(always)]
160 #[must_use]
161 pub fn adc0_(&mut self) -> Adc0_W<ApbdmaskSpec> {
162 Adc0_W::new(self, 7)
163 }
164 #[doc = "Bit 8 - ADC1 APB Clock Enable"]
165 #[inline(always)]
166 #[must_use]
167 pub fn adc1_(&mut self) -> Adc1_W<ApbdmaskSpec> {
168 Adc1_W::new(self, 8)
169 }
170 #[doc = "Bit 9 - DAC APB Clock Enable"]
171 #[inline(always)]
172 #[must_use]
173 pub fn dac_(&mut self) -> Dac_W<ApbdmaskSpec> {
174 Dac_W::new(self, 9)
175 }
176 #[doc = "Bit 10 - I2S APB Clock Enable"]
177 #[inline(always)]
178 #[must_use]
179 pub fn i2s_(&mut self) -> I2s_W<ApbdmaskSpec> {
180 I2s_W::new(self, 10)
181 }
182 #[doc = "Bit 11 - PCC APB Clock Enable"]
183 #[inline(always)]
184 #[must_use]
185 pub fn pcc_(&mut self) -> Pcc_W<ApbdmaskSpec> {
186 Pcc_W::new(self, 11)
187 }
188}
189#[doc = "APBD Mask\n\nYou can [`read`](crate::Reg::read) this register and get [`apbdmask::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`apbdmask::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
190pub struct ApbdmaskSpec;
191impl crate::RegisterSpec for ApbdmaskSpec {
192 type Ux = u32;
193}
194#[doc = "`read()` method returns [`apbdmask::R`](R) reader structure"]
195impl crate::Readable for ApbdmaskSpec {}
196#[doc = "`write(|w| ..)` method takes [`apbdmask::W`](W) writer structure"]
197impl crate::Writable for ApbdmaskSpec {
198 type Safety = crate::Unsafe;
199 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
200 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
201}
202#[doc = "`reset()` method sets APBDMASK to value 0"]
203impl crate::Resettable for ApbdmaskSpec {
204 const RESET_VALUE: u32 = 0;
205}