atsam3u2e/pmc/
pmc_scer.rs1#[doc = "Register `PMC_SCER` writer"]
2pub type W = crate::W<PmcScerSpec>;
3#[doc = "Field `PCK0` writer - Programmable Clock 0 Output Enable"]
4pub type Pck0W<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `PCK1` writer - Programmable Clock 1 Output Enable"]
6pub type Pck1W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `PCK2` writer - Programmable Clock 2 Output Enable"]
8pub type Pck2W<'a, REG> = crate::BitWriter<'a, REG>;
9impl W {
10 #[doc = "Bit 8 - Programmable Clock 0 Output Enable"]
11 #[inline(always)]
12 #[must_use]
13 pub fn pck0(&mut self) -> Pck0W<PmcScerSpec> {
14 Pck0W::new(self, 8)
15 }
16 #[doc = "Bit 9 - Programmable Clock 1 Output Enable"]
17 #[inline(always)]
18 #[must_use]
19 pub fn pck1(&mut self) -> Pck1W<PmcScerSpec> {
20 Pck1W::new(self, 9)
21 }
22 #[doc = "Bit 10 - Programmable Clock 2 Output Enable"]
23 #[inline(always)]
24 #[must_use]
25 pub fn pck2(&mut self) -> Pck2W<PmcScerSpec> {
26 Pck2W::new(self, 10)
27 }
28}
29#[doc = "System Clock Enable Register\n\nYou can [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`pmc_scer::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
30pub struct PmcScerSpec;
31impl crate::RegisterSpec for PmcScerSpec {
32 type Ux = u32;
33}
34#[doc = "`write(|w| ..)` method takes [`pmc_scer::W`](W) writer structure"]
35impl crate::Writable for PmcScerSpec {
36 type Safety = crate::Unsafe;
37 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
38 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
39}