#[doc = "Register `CREP` reader"]
pub type R = crate::R<CrepSpec>;
#[doc = "Register `CREP` writer"]
pub type W = crate::W<CrepSpec>;
#[doc = "Field `CREP` reader - Counter repetition value"]
pub type CrepR = crate::FieldReader;
#[doc = "Field `CREP` writer - Counter repetition value"]
pub type CrepW<'a, REG> = crate::FieldWriterSafe<'a, REG, 8>;
impl R {
#[doc = "Bits 0:7 - Counter repetition value"]
#[inline(always)]
pub fn crep(&self) -> CrepR {
CrepR::new((self.bits & 0xff) as u8)
}
}
impl W {
#[doc = "Bits 0:7 - Counter repetition value"]
#[inline(always)]
#[must_use]
pub fn crep(&mut self) -> CrepW<CrepSpec> {
CrepW::new(self, 0)
}
}
#[doc = "Counter repetition register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`crep::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 [`crep::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CrepSpec;
impl crate::RegisterSpec for CrepSpec {
type Ux = u16;
}
#[doc = "`read()` method returns [`crep::R`](R) reader structure"]
impl crate::Readable for CrepSpec {}
#[doc = "`write(|w| ..)` method takes [`crep::W`](W) writer structure"]
impl crate::Writable for CrepSpec {
type Safety = crate::Unsafe;
const ZERO_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: u16 = 0;
}
#[doc = "`reset()` method sets CREP to value 0"]
impl crate::Resettable for CrepSpec {
const RESET_VALUE: u16 = 0;
}