#[doc = "Register `pmuwakepm[%s]` reader"]
pub type R = crate::R<PmuwakepmSpec>;
#[doc = "Register `pmuwakepm[%s]` writer"]
pub type W = crate::W<PmuwakepmSpec>;
#[doc = "Field `delay` reader - "]
pub type DelayR = crate::FieldReader;
#[doc = "Field `delay` writer - "]
pub type DelayW<'a, REG> = crate::FieldWriter<'a, REG, 4>;
#[doc = "Field `pmu_out_0_en` reader - "]
pub type PmuOut0EnR = crate::BitReader;
#[doc = "Field `pmu_out_0_en` writer - "]
pub type PmuOut0EnW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `pmu_out_1_en` reader - "]
pub type PmuOut1EnR = crate::BitReader;
#[doc = "Field `pmu_out_1_en` writer - "]
pub type PmuOut1EnW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `corerst` reader - "]
pub type CorerstR = crate::BitReader;
#[doc = "Field `corerst` writer - "]
pub type CorerstW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `hfclkrst` reader - "]
pub type HfclkrstR = crate::BitReader;
#[doc = "Field `hfclkrst` writer - "]
pub type HfclkrstW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `isolate` reader - "]
pub type IsolateR = crate::BitReader;
#[doc = "Field `isolate` writer - "]
pub type IsolateW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
#[doc = "Bits 0:3"]
#[inline(always)]
pub fn delay(&self) -> DelayR {
DelayR::new((self.bits & 0x0f) as u8)
}
#[doc = "Bit 4"]
#[inline(always)]
pub fn pmu_out_0_en(&self) -> PmuOut0EnR {
PmuOut0EnR::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5"]
#[inline(always)]
pub fn pmu_out_1_en(&self) -> PmuOut1EnR {
PmuOut1EnR::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 7"]
#[inline(always)]
pub fn corerst(&self) -> CorerstR {
CorerstR::new(((self.bits >> 7) & 1) != 0)
}
#[doc = "Bit 8"]
#[inline(always)]
pub fn hfclkrst(&self) -> HfclkrstR {
HfclkrstR::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9"]
#[inline(always)]
pub fn isolate(&self) -> IsolateR {
IsolateR::new(((self.bits >> 9) & 1) != 0)
}
}
impl W {
#[doc = "Bits 0:3"]
#[inline(always)]
pub fn delay(&mut self) -> DelayW<PmuwakepmSpec> {
DelayW::new(self, 0)
}
#[doc = "Bit 4"]
#[inline(always)]
pub fn pmu_out_0_en(&mut self) -> PmuOut0EnW<PmuwakepmSpec> {
PmuOut0EnW::new(self, 4)
}
#[doc = "Bit 5"]
#[inline(always)]
pub fn pmu_out_1_en(&mut self) -> PmuOut1EnW<PmuwakepmSpec> {
PmuOut1EnW::new(self, 5)
}
#[doc = "Bit 7"]
#[inline(always)]
pub fn corerst(&mut self) -> CorerstW<PmuwakepmSpec> {
CorerstW::new(self, 7)
}
#[doc = "Bit 8"]
#[inline(always)]
pub fn hfclkrst(&mut self) -> HfclkrstW<PmuwakepmSpec> {
HfclkrstW::new(self, 8)
}
#[doc = "Bit 9"]
#[inline(always)]
pub fn isolate(&mut self) -> IsolateW<PmuwakepmSpec> {
IsolateW::new(self, 9)
}
}
#[doc = "PMU Wake Program Memory\n\nYou can [`read`](crate::Reg::read) this register and get [`pmuwakepm::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pmuwakepm::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct PmuwakepmSpec;
impl crate::RegisterSpec for PmuwakepmSpec {
type Ux = u32;
}
#[doc = "`read()` method returns [`pmuwakepm::R`](R) reader structure"]
impl crate::Readable for PmuwakepmSpec {}
#[doc = "`write(|w| ..)` method takes [`pmuwakepm::W`](W) writer structure"]
impl crate::Writable for PmuwakepmSpec {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
#[doc = "`reset()` method sets pmuwakepm[%s]
to value 0"]
impl crate::Resettable for PmuwakepmSpec {
const RESET_VALUE: u32 = 0;
}