atsam4e16e_pac/pmc/
pmc_pcdr1.rs1#[doc = "Register `PMC_PCDR1` writer"]
2pub struct W(crate::W<PMC_PCDR1_SPEC>);
3impl core::ops::Deref for W {
4 type Target = crate::W<PMC_PCDR1_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl core::ops::DerefMut for W {
11 #[inline(always)]
12 fn deref_mut(&mut self) -> &mut Self::Target {
13 &mut self.0
14 }
15}
16impl From<crate::W<PMC_PCDR1_SPEC>> for W {
17 #[inline(always)]
18 fn from(writer: crate::W<PMC_PCDR1_SPEC>) -> Self {
19 W(writer)
20 }
21}
22#[doc = "Field `PID32` writer - Peripheral Clock 32 Disable"]
23pub type PID32_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCDR1_SPEC, bool, O>;
24#[doc = "Field `PID33` writer - Peripheral Clock 33 Disable"]
25pub type PID33_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCDR1_SPEC, bool, O>;
26#[doc = "Field `PID34` writer - Peripheral Clock 34 Disable"]
27pub type PID34_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCDR1_SPEC, bool, O>;
28#[doc = "Field `PID35` writer - Peripheral Clock 35 Disable"]
29pub type PID35_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCDR1_SPEC, bool, O>;
30#[doc = "Field `PID36` writer - Peripheral Clock 36 Disable"]
31pub type PID36_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCDR1_SPEC, bool, O>;
32#[doc = "Field `PID37` writer - Peripheral Clock 37 Disable"]
33pub type PID37_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCDR1_SPEC, bool, O>;
34#[doc = "Field `PID38` writer - Peripheral Clock 38 Disable"]
35pub type PID38_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCDR1_SPEC, bool, O>;
36#[doc = "Field `PID39` writer - Peripheral Clock 39 Disable"]
37pub type PID39_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCDR1_SPEC, bool, O>;
38#[doc = "Field `PID40` writer - Peripheral Clock 40 Disable"]
39pub type PID40_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCDR1_SPEC, bool, O>;
40#[doc = "Field `PID41` writer - Peripheral Clock 41 Disable"]
41pub type PID41_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCDR1_SPEC, bool, O>;
42#[doc = "Field `PID42` writer - Peripheral Clock 42 Disable"]
43pub type PID42_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCDR1_SPEC, bool, O>;
44#[doc = "Field `PID43` writer - Peripheral Clock 43 Disable"]
45pub type PID43_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCDR1_SPEC, bool, O>;
46#[doc = "Field `PID44` writer - Peripheral Clock 44 Disable"]
47pub type PID44_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCDR1_SPEC, bool, O>;
48#[doc = "Field `PID45` writer - Peripheral Clock 45 Disable"]
49pub type PID45_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCDR1_SPEC, bool, O>;
50#[doc = "Field `PID46` writer - Peripheral Clock 46 Disable"]
51pub type PID46_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCDR1_SPEC, bool, O>;
52#[doc = "Field `PID47` writer - Peripheral Clock 47 Disable"]
53pub type PID47_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCDR1_SPEC, bool, O>;
54impl W {
55 #[doc = "Bit 0 - Peripheral Clock 32 Disable"]
56 #[inline(always)]
57 #[must_use]
58 pub fn pid32(&mut self) -> PID32_W<0> {
59 PID32_W::new(self)
60 }
61 #[doc = "Bit 1 - Peripheral Clock 33 Disable"]
62 #[inline(always)]
63 #[must_use]
64 pub fn pid33(&mut self) -> PID33_W<1> {
65 PID33_W::new(self)
66 }
67 #[doc = "Bit 2 - Peripheral Clock 34 Disable"]
68 #[inline(always)]
69 #[must_use]
70 pub fn pid34(&mut self) -> PID34_W<2> {
71 PID34_W::new(self)
72 }
73 #[doc = "Bit 3 - Peripheral Clock 35 Disable"]
74 #[inline(always)]
75 #[must_use]
76 pub fn pid35(&mut self) -> PID35_W<3> {
77 PID35_W::new(self)
78 }
79 #[doc = "Bit 4 - Peripheral Clock 36 Disable"]
80 #[inline(always)]
81 #[must_use]
82 pub fn pid36(&mut self) -> PID36_W<4> {
83 PID36_W::new(self)
84 }
85 #[doc = "Bit 5 - Peripheral Clock 37 Disable"]
86 #[inline(always)]
87 #[must_use]
88 pub fn pid37(&mut self) -> PID37_W<5> {
89 PID37_W::new(self)
90 }
91 #[doc = "Bit 6 - Peripheral Clock 38 Disable"]
92 #[inline(always)]
93 #[must_use]
94 pub fn pid38(&mut self) -> PID38_W<6> {
95 PID38_W::new(self)
96 }
97 #[doc = "Bit 7 - Peripheral Clock 39 Disable"]
98 #[inline(always)]
99 #[must_use]
100 pub fn pid39(&mut self) -> PID39_W<7> {
101 PID39_W::new(self)
102 }
103 #[doc = "Bit 8 - Peripheral Clock 40 Disable"]
104 #[inline(always)]
105 #[must_use]
106 pub fn pid40(&mut self) -> PID40_W<8> {
107 PID40_W::new(self)
108 }
109 #[doc = "Bit 9 - Peripheral Clock 41 Disable"]
110 #[inline(always)]
111 #[must_use]
112 pub fn pid41(&mut self) -> PID41_W<9> {
113 PID41_W::new(self)
114 }
115 #[doc = "Bit 10 - Peripheral Clock 42 Disable"]
116 #[inline(always)]
117 #[must_use]
118 pub fn pid42(&mut self) -> PID42_W<10> {
119 PID42_W::new(self)
120 }
121 #[doc = "Bit 11 - Peripheral Clock 43 Disable"]
122 #[inline(always)]
123 #[must_use]
124 pub fn pid43(&mut self) -> PID43_W<11> {
125 PID43_W::new(self)
126 }
127 #[doc = "Bit 12 - Peripheral Clock 44 Disable"]
128 #[inline(always)]
129 #[must_use]
130 pub fn pid44(&mut self) -> PID44_W<12> {
131 PID44_W::new(self)
132 }
133 #[doc = "Bit 13 - Peripheral Clock 45 Disable"]
134 #[inline(always)]
135 #[must_use]
136 pub fn pid45(&mut self) -> PID45_W<13> {
137 PID45_W::new(self)
138 }
139 #[doc = "Bit 14 - Peripheral Clock 46 Disable"]
140 #[inline(always)]
141 #[must_use]
142 pub fn pid46(&mut self) -> PID46_W<14> {
143 PID46_W::new(self)
144 }
145 #[doc = "Bit 15 - Peripheral Clock 47 Disable"]
146 #[inline(always)]
147 #[must_use]
148 pub fn pid47(&mut self) -> PID47_W<15> {
149 PID47_W::new(self)
150 }
151 #[doc = "Writes raw bits to the register."]
152 #[inline(always)]
153 pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
154 self.0.bits(bits);
155 self
156 }
157}
158#[doc = "Peripheral Clock Disable Register 1\n\nThis register you can [`write_with_zero`](crate::generic::Reg::write_with_zero). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [pmc_pcdr1](index.html) module"]
159pub struct PMC_PCDR1_SPEC;
160impl crate::RegisterSpec for PMC_PCDR1_SPEC {
161 type Ux = u32;
162}
163#[doc = "`write(|w| ..)` method takes [pmc_pcdr1::W](W) writer structure"]
164impl crate::Writable for PMC_PCDR1_SPEC {
165 type Writer = W;
166 const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
167 const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
168}