#[doc = "Register `PMC_PCER1` writer"]
pub struct W(crate::W<PMC_PCER1_SPEC>);
impl core::ops::Deref for W {
type Target = crate::W<PMC_PCER1_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl core::ops::DerefMut for W {
#[inline(always)]
fn deref_mut(&mut self) -> &mut Self::Target {
&mut self.0
}
}
impl From<crate::W<PMC_PCER1_SPEC>> for W {
#[inline(always)]
fn from(writer: crate::W<PMC_PCER1_SPEC>) -> Self {
W(writer)
}
}
#[doc = "Field `PID32` writer - Peripheral Clock 32 Enable"]
pub type PID32_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCER1_SPEC, bool, O>;
#[doc = "Field `PID33` writer - Peripheral Clock 33 Enable"]
pub type PID33_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCER1_SPEC, bool, O>;
#[doc = "Field `PID34` writer - Peripheral Clock 34 Enable"]
pub type PID34_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCER1_SPEC, bool, O>;
#[doc = "Field `PID35` writer - Peripheral Clock 35 Enable"]
pub type PID35_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCER1_SPEC, bool, O>;
#[doc = "Field `PID36` writer - Peripheral Clock 36 Enable"]
pub type PID36_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCER1_SPEC, bool, O>;
#[doc = "Field `PID37` writer - Peripheral Clock 37 Enable"]
pub type PID37_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCER1_SPEC, bool, O>;
#[doc = "Field `PID38` writer - Peripheral Clock 38 Enable"]
pub type PID38_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCER1_SPEC, bool, O>;
#[doc = "Field `PID39` writer - Peripheral Clock 39 Enable"]
pub type PID39_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCER1_SPEC, bool, O>;
#[doc = "Field `PID40` writer - Peripheral Clock 40 Enable"]
pub type PID40_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCER1_SPEC, bool, O>;
#[doc = "Field `PID41` writer - Peripheral Clock 41 Enable"]
pub type PID41_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCER1_SPEC, bool, O>;
#[doc = "Field `PID42` writer - Peripheral Clock 42 Enable"]
pub type PID42_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCER1_SPEC, bool, O>;
#[doc = "Field `PID43` writer - Peripheral Clock 43 Enable"]
pub type PID43_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCER1_SPEC, bool, O>;
#[doc = "Field `PID44` writer - Peripheral Clock 44 Enable"]
pub type PID44_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCER1_SPEC, bool, O>;
#[doc = "Field `PID45` writer - Peripheral Clock 45 Enable"]
pub type PID45_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCER1_SPEC, bool, O>;
#[doc = "Field `PID46` writer - Peripheral Clock 46 Enable"]
pub type PID46_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCER1_SPEC, bool, O>;
#[doc = "Field `PID47` writer - Peripheral Clock 47 Enable"]
pub type PID47_W<'a, const O: u8> = crate::BitWriter<'a, u32, PMC_PCER1_SPEC, bool, O>;
impl W {
#[doc = "Bit 0 - Peripheral Clock 32 Enable"]
#[inline(always)]
#[must_use]
pub fn pid32(&mut self) -> PID32_W<0> {
PID32_W::new(self)
}
#[doc = "Bit 1 - Peripheral Clock 33 Enable"]
#[inline(always)]
#[must_use]
pub fn pid33(&mut self) -> PID33_W<1> {
PID33_W::new(self)
}
#[doc = "Bit 2 - Peripheral Clock 34 Enable"]
#[inline(always)]
#[must_use]
pub fn pid34(&mut self) -> PID34_W<2> {
PID34_W::new(self)
}
#[doc = "Bit 3 - Peripheral Clock 35 Enable"]
#[inline(always)]
#[must_use]
pub fn pid35(&mut self) -> PID35_W<3> {
PID35_W::new(self)
}
#[doc = "Bit 4 - Peripheral Clock 36 Enable"]
#[inline(always)]
#[must_use]
pub fn pid36(&mut self) -> PID36_W<4> {
PID36_W::new(self)
}
#[doc = "Bit 5 - Peripheral Clock 37 Enable"]
#[inline(always)]
#[must_use]
pub fn pid37(&mut self) -> PID37_W<5> {
PID37_W::new(self)
}
#[doc = "Bit 6 - Peripheral Clock 38 Enable"]
#[inline(always)]
#[must_use]
pub fn pid38(&mut self) -> PID38_W<6> {
PID38_W::new(self)
}
#[doc = "Bit 7 - Peripheral Clock 39 Enable"]
#[inline(always)]
#[must_use]
pub fn pid39(&mut self) -> PID39_W<7> {
PID39_W::new(self)
}
#[doc = "Bit 8 - Peripheral Clock 40 Enable"]
#[inline(always)]
#[must_use]
pub fn pid40(&mut self) -> PID40_W<8> {
PID40_W::new(self)
}
#[doc = "Bit 9 - Peripheral Clock 41 Enable"]
#[inline(always)]
#[must_use]
pub fn pid41(&mut self) -> PID41_W<9> {
PID41_W::new(self)
}
#[doc = "Bit 10 - Peripheral Clock 42 Enable"]
#[inline(always)]
#[must_use]
pub fn pid42(&mut self) -> PID42_W<10> {
PID42_W::new(self)
}
#[doc = "Bit 11 - Peripheral Clock 43 Enable"]
#[inline(always)]
#[must_use]
pub fn pid43(&mut self) -> PID43_W<11> {
PID43_W::new(self)
}
#[doc = "Bit 12 - Peripheral Clock 44 Enable"]
#[inline(always)]
#[must_use]
pub fn pid44(&mut self) -> PID44_W<12> {
PID44_W::new(self)
}
#[doc = "Bit 13 - Peripheral Clock 45 Enable"]
#[inline(always)]
#[must_use]
pub fn pid45(&mut self) -> PID45_W<13> {
PID45_W::new(self)
}
#[doc = "Bit 14 - Peripheral Clock 46 Enable"]
#[inline(always)]
#[must_use]
pub fn pid46(&mut self) -> PID46_W<14> {
PID46_W::new(self)
}
#[doc = "Bit 15 - Peripheral Clock 47 Enable"]
#[inline(always)]
#[must_use]
pub fn pid47(&mut self) -> PID47_W<15> {
PID47_W::new(self)
}
#[doc = "Writes raw bits to the register."]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.0.bits(bits);
self
}
}
#[doc = "Peripheral Clock Enable 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_pcer1](index.html) module"]
pub struct PMC_PCER1_SPEC;
impl crate::RegisterSpec for PMC_PCER1_SPEC {
type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [pmc_pcer1::W](W) writer structure"]
impl crate::Writable for PMC_PCER1_SPEC {
type Writer = W;
const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}