atsam3u4e/pmc/
pmc_fspr.rs

1#[doc = "Register `PMC_FSPR` reader"]
2pub type R = crate::R<PmcFsprSpec>;
3#[doc = "Register `PMC_FSPR` writer"]
4pub type W = crate::W<PmcFsprSpec>;
5#[doc = "Field `FSTP0` reader - Fast Start-up Input Polarityx"]
6pub type Fstp0R = crate::BitReader;
7#[doc = "Field `FSTP0` writer - Fast Start-up Input Polarityx"]
8pub type Fstp0W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `FSTP1` reader - Fast Start-up Input Polarityx"]
10pub type Fstp1R = crate::BitReader;
11#[doc = "Field `FSTP1` writer - Fast Start-up Input Polarityx"]
12pub type Fstp1W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `FSTP2` reader - Fast Start-up Input Polarityx"]
14pub type Fstp2R = crate::BitReader;
15#[doc = "Field `FSTP2` writer - Fast Start-up Input Polarityx"]
16pub type Fstp2W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `FSTP3` reader - Fast Start-up Input Polarityx"]
18pub type Fstp3R = crate::BitReader;
19#[doc = "Field `FSTP3` writer - Fast Start-up Input Polarityx"]
20pub type Fstp3W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `FSTP4` reader - Fast Start-up Input Polarityx"]
22pub type Fstp4R = crate::BitReader;
23#[doc = "Field `FSTP4` writer - Fast Start-up Input Polarityx"]
24pub type Fstp4W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `FSTP5` reader - Fast Start-up Input Polarityx"]
26pub type Fstp5R = crate::BitReader;
27#[doc = "Field `FSTP5` writer - Fast Start-up Input Polarityx"]
28pub type Fstp5W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `FSTP6` reader - Fast Start-up Input Polarityx"]
30pub type Fstp6R = crate::BitReader;
31#[doc = "Field `FSTP6` writer - Fast Start-up Input Polarityx"]
32pub type Fstp6W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `FSTP7` reader - Fast Start-up Input Polarityx"]
34pub type Fstp7R = crate::BitReader;
35#[doc = "Field `FSTP7` writer - Fast Start-up Input Polarityx"]
36pub type Fstp7W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `FSTP8` reader - Fast Start-up Input Polarityx"]
38pub type Fstp8R = crate::BitReader;
39#[doc = "Field `FSTP8` writer - Fast Start-up Input Polarityx"]
40pub type Fstp8W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `FSTP9` reader - Fast Start-up Input Polarityx"]
42pub type Fstp9R = crate::BitReader;
43#[doc = "Field `FSTP9` writer - Fast Start-up Input Polarityx"]
44pub type Fstp9W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `FSTP10` reader - Fast Start-up Input Polarityx"]
46pub type Fstp10R = crate::BitReader;
47#[doc = "Field `FSTP10` writer - Fast Start-up Input Polarityx"]
48pub type Fstp10W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `FSTP11` reader - Fast Start-up Input Polarityx"]
50pub type Fstp11R = crate::BitReader;
51#[doc = "Field `FSTP11` writer - Fast Start-up Input Polarityx"]
52pub type Fstp11W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `FSTP12` reader - Fast Start-up Input Polarityx"]
54pub type Fstp12R = crate::BitReader;
55#[doc = "Field `FSTP12` writer - Fast Start-up Input Polarityx"]
56pub type Fstp12W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `FSTP13` reader - Fast Start-up Input Polarityx"]
58pub type Fstp13R = crate::BitReader;
59#[doc = "Field `FSTP13` writer - Fast Start-up Input Polarityx"]
60pub type Fstp13W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `FSTP14` reader - Fast Start-up Input Polarityx"]
62pub type Fstp14R = crate::BitReader;
63#[doc = "Field `FSTP14` writer - Fast Start-up Input Polarityx"]
64pub type Fstp14W<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `FSTP15` reader - Fast Start-up Input Polarityx"]
66pub type Fstp15R = crate::BitReader;
67#[doc = "Field `FSTP15` writer - Fast Start-up Input Polarityx"]
68pub type Fstp15W<'a, REG> = crate::BitWriter<'a, REG>;
69impl R {
70    #[doc = "Bit 0 - Fast Start-up Input Polarityx"]
71    #[inline(always)]
72    pub fn fstp0(&self) -> Fstp0R {
73        Fstp0R::new((self.bits & 1) != 0)
74    }
75    #[doc = "Bit 1 - Fast Start-up Input Polarityx"]
76    #[inline(always)]
77    pub fn fstp1(&self) -> Fstp1R {
78        Fstp1R::new(((self.bits >> 1) & 1) != 0)
79    }
80    #[doc = "Bit 2 - Fast Start-up Input Polarityx"]
81    #[inline(always)]
82    pub fn fstp2(&self) -> Fstp2R {
83        Fstp2R::new(((self.bits >> 2) & 1) != 0)
84    }
85    #[doc = "Bit 3 - Fast Start-up Input Polarityx"]
86    #[inline(always)]
87    pub fn fstp3(&self) -> Fstp3R {
88        Fstp3R::new(((self.bits >> 3) & 1) != 0)
89    }
90    #[doc = "Bit 4 - Fast Start-up Input Polarityx"]
91    #[inline(always)]
92    pub fn fstp4(&self) -> Fstp4R {
93        Fstp4R::new(((self.bits >> 4) & 1) != 0)
94    }
95    #[doc = "Bit 5 - Fast Start-up Input Polarityx"]
96    #[inline(always)]
97    pub fn fstp5(&self) -> Fstp5R {
98        Fstp5R::new(((self.bits >> 5) & 1) != 0)
99    }
100    #[doc = "Bit 6 - Fast Start-up Input Polarityx"]
101    #[inline(always)]
102    pub fn fstp6(&self) -> Fstp6R {
103        Fstp6R::new(((self.bits >> 6) & 1) != 0)
104    }
105    #[doc = "Bit 7 - Fast Start-up Input Polarityx"]
106    #[inline(always)]
107    pub fn fstp7(&self) -> Fstp7R {
108        Fstp7R::new(((self.bits >> 7) & 1) != 0)
109    }
110    #[doc = "Bit 8 - Fast Start-up Input Polarityx"]
111    #[inline(always)]
112    pub fn fstp8(&self) -> Fstp8R {
113        Fstp8R::new(((self.bits >> 8) & 1) != 0)
114    }
115    #[doc = "Bit 9 - Fast Start-up Input Polarityx"]
116    #[inline(always)]
117    pub fn fstp9(&self) -> Fstp9R {
118        Fstp9R::new(((self.bits >> 9) & 1) != 0)
119    }
120    #[doc = "Bit 10 - Fast Start-up Input Polarityx"]
121    #[inline(always)]
122    pub fn fstp10(&self) -> Fstp10R {
123        Fstp10R::new(((self.bits >> 10) & 1) != 0)
124    }
125    #[doc = "Bit 11 - Fast Start-up Input Polarityx"]
126    #[inline(always)]
127    pub fn fstp11(&self) -> Fstp11R {
128        Fstp11R::new(((self.bits >> 11) & 1) != 0)
129    }
130    #[doc = "Bit 12 - Fast Start-up Input Polarityx"]
131    #[inline(always)]
132    pub fn fstp12(&self) -> Fstp12R {
133        Fstp12R::new(((self.bits >> 12) & 1) != 0)
134    }
135    #[doc = "Bit 13 - Fast Start-up Input Polarityx"]
136    #[inline(always)]
137    pub fn fstp13(&self) -> Fstp13R {
138        Fstp13R::new(((self.bits >> 13) & 1) != 0)
139    }
140    #[doc = "Bit 14 - Fast Start-up Input Polarityx"]
141    #[inline(always)]
142    pub fn fstp14(&self) -> Fstp14R {
143        Fstp14R::new(((self.bits >> 14) & 1) != 0)
144    }
145    #[doc = "Bit 15 - Fast Start-up Input Polarityx"]
146    #[inline(always)]
147    pub fn fstp15(&self) -> Fstp15R {
148        Fstp15R::new(((self.bits >> 15) & 1) != 0)
149    }
150}
151impl W {
152    #[doc = "Bit 0 - Fast Start-up Input Polarityx"]
153    #[inline(always)]
154    #[must_use]
155    pub fn fstp0(&mut self) -> Fstp0W<PmcFsprSpec> {
156        Fstp0W::new(self, 0)
157    }
158    #[doc = "Bit 1 - Fast Start-up Input Polarityx"]
159    #[inline(always)]
160    #[must_use]
161    pub fn fstp1(&mut self) -> Fstp1W<PmcFsprSpec> {
162        Fstp1W::new(self, 1)
163    }
164    #[doc = "Bit 2 - Fast Start-up Input Polarityx"]
165    #[inline(always)]
166    #[must_use]
167    pub fn fstp2(&mut self) -> Fstp2W<PmcFsprSpec> {
168        Fstp2W::new(self, 2)
169    }
170    #[doc = "Bit 3 - Fast Start-up Input Polarityx"]
171    #[inline(always)]
172    #[must_use]
173    pub fn fstp3(&mut self) -> Fstp3W<PmcFsprSpec> {
174        Fstp3W::new(self, 3)
175    }
176    #[doc = "Bit 4 - Fast Start-up Input Polarityx"]
177    #[inline(always)]
178    #[must_use]
179    pub fn fstp4(&mut self) -> Fstp4W<PmcFsprSpec> {
180        Fstp4W::new(self, 4)
181    }
182    #[doc = "Bit 5 - Fast Start-up Input Polarityx"]
183    #[inline(always)]
184    #[must_use]
185    pub fn fstp5(&mut self) -> Fstp5W<PmcFsprSpec> {
186        Fstp5W::new(self, 5)
187    }
188    #[doc = "Bit 6 - Fast Start-up Input Polarityx"]
189    #[inline(always)]
190    #[must_use]
191    pub fn fstp6(&mut self) -> Fstp6W<PmcFsprSpec> {
192        Fstp6W::new(self, 6)
193    }
194    #[doc = "Bit 7 - Fast Start-up Input Polarityx"]
195    #[inline(always)]
196    #[must_use]
197    pub fn fstp7(&mut self) -> Fstp7W<PmcFsprSpec> {
198        Fstp7W::new(self, 7)
199    }
200    #[doc = "Bit 8 - Fast Start-up Input Polarityx"]
201    #[inline(always)]
202    #[must_use]
203    pub fn fstp8(&mut self) -> Fstp8W<PmcFsprSpec> {
204        Fstp8W::new(self, 8)
205    }
206    #[doc = "Bit 9 - Fast Start-up Input Polarityx"]
207    #[inline(always)]
208    #[must_use]
209    pub fn fstp9(&mut self) -> Fstp9W<PmcFsprSpec> {
210        Fstp9W::new(self, 9)
211    }
212    #[doc = "Bit 10 - Fast Start-up Input Polarityx"]
213    #[inline(always)]
214    #[must_use]
215    pub fn fstp10(&mut self) -> Fstp10W<PmcFsprSpec> {
216        Fstp10W::new(self, 10)
217    }
218    #[doc = "Bit 11 - Fast Start-up Input Polarityx"]
219    #[inline(always)]
220    #[must_use]
221    pub fn fstp11(&mut self) -> Fstp11W<PmcFsprSpec> {
222        Fstp11W::new(self, 11)
223    }
224    #[doc = "Bit 12 - Fast Start-up Input Polarityx"]
225    #[inline(always)]
226    #[must_use]
227    pub fn fstp12(&mut self) -> Fstp12W<PmcFsprSpec> {
228        Fstp12W::new(self, 12)
229    }
230    #[doc = "Bit 13 - Fast Start-up Input Polarityx"]
231    #[inline(always)]
232    #[must_use]
233    pub fn fstp13(&mut self) -> Fstp13W<PmcFsprSpec> {
234        Fstp13W::new(self, 13)
235    }
236    #[doc = "Bit 14 - Fast Start-up Input Polarityx"]
237    #[inline(always)]
238    #[must_use]
239    pub fn fstp14(&mut self) -> Fstp14W<PmcFsprSpec> {
240        Fstp14W::new(self, 14)
241    }
242    #[doc = "Bit 15 - Fast Start-up Input Polarityx"]
243    #[inline(always)]
244    #[must_use]
245    pub fn fstp15(&mut self) -> Fstp15W<PmcFsprSpec> {
246        Fstp15W::new(self, 15)
247    }
248}
249#[doc = "Fast Start-up Polarity Register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`pmc_fspr::R`](R).  You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pmc_fspr::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
250pub struct PmcFsprSpec;
251impl crate::RegisterSpec for PmcFsprSpec {
252    type Ux = u32;
253}
254#[doc = "`read()` method returns [`pmc_fspr::R`](R) reader structure"]
255impl crate::Readable for PmcFsprSpec {}
256#[doc = "`write(|w| ..)` method takes [`pmc_fspr::W`](W) writer structure"]
257impl crate::Writable for PmcFsprSpec {
258    type Safety = crate::Unsafe;
259    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
260    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
261}
262#[doc = "`reset()` method sets PMC_FSPR to value 0"]
263impl crate::Resettable for PmcFsprSpec {
264    const RESET_VALUE: u32 = 0;
265}