#[doc = "Register `CNR` reader"]
pub type R = crate::R<CnrSpec>;
#[doc = "Register `CNR` writer"]
pub type W = crate::W<CnrSpec>;
#[doc = "Field `COUNTER` reader - Counter Value"]
pub type CounterR = crate::FieldReader<u32>;
#[doc = "Field `COUNTER` writer - Counter Value"]
pub type CounterW<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl R {
    #[doc = "Bits 0:31 - Counter Value"]
    #[inline(always)]
    pub fn counter(&self) -> CounterR {
        CounterR::new(self.bits)
    }
}
#[cfg(feature = "debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("CNR").field("counter", &self.counter()).finish()
    }
}
impl W {
    #[doc = "Bits 0:31 - Counter Value"]
    #[inline(always)]
    pub fn counter(&mut self) -> CounterW<'_, CnrSpec> {
        CounterW::new(self, 0)
    }
}
#[doc = "Counter\n\nYou can [`read`](crate::Reg::read) this register and get [`cnr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cnr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CnrSpec;
impl crate::RegisterSpec for CnrSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`cnr::R`](R) reader structure"]
impl crate::Readable for CnrSpec {}
#[doc = "`write(|w| ..)` method takes [`cnr::W`](W) writer structure"]
impl crate::Writable for CnrSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets CNR to value 0"]
impl crate::Resettable for CnrSpec {}
