#[doc = "Register `CFDPRESC` reader"]
pub type R = crate::R<CfdprescSpec>;
#[doc = "Register `CFDPRESC` writer"]
pub type W = crate::W<CfdprescSpec>;
#[doc = "Field `CFDPRESC` reader - Clock Failure Detector Prescaler"]
pub type CfdprescR = crate::FieldReader;
#[doc = "Field `CFDPRESC` writer - Clock Failure Detector Prescaler"]
pub type CfdprescW<'a, REG> = crate::FieldWriter<'a, REG, 3>;
impl R {
    #[doc = "Bits 0:2 - Clock Failure Detector Prescaler"]
    #[inline(always)]
    pub fn cfdpresc(&self) -> CfdprescR {
        CfdprescR::new(self.bits & 7)
    }
}
impl W {
    #[doc = "Bits 0:2 - Clock Failure Detector Prescaler"]
    #[inline(always)]
    pub fn cfdpresc(&mut self) -> CfdprescW<CfdprescSpec> {
        CfdprescW::new(self, 0)
    }
}
#[doc = "Cloc Failure Detector Prescaler\n\nYou can [`read`](crate::Reg::read) this register and get [`cfdpresc::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cfdpresc::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CfdprescSpec;
impl crate::RegisterSpec for CfdprescSpec {
    type Ux = u8;
}
#[doc = "`read()` method returns [`cfdpresc::R`](R) reader structure"]
impl crate::Readable for CfdprescSpec {}
#[doc = "`write(|w| ..)` method takes [`cfdpresc::W`](W) writer structure"]
impl crate::Writable for CfdprescSpec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
}
#[doc = "`reset()` method sets CFDPRESC to value 0"]
impl crate::Resettable for CfdprescSpec {
    const RESET_VALUE: u8 = 0;
}
