#[doc = "Register `FC2` reader"]
pub type R = crate::R<Fc2Spec>;
#[doc = "Register `FC2` writer"]
pub type W = crate::W<Fc2Spec>;
#[doc = "Field `OVF` reader - Frame Counter Overflow Value"]
pub type OvfR = crate::FieldReader;
#[doc = "Field `OVF` writer - Frame Counter Overflow Value"]
pub type OvfW<'a, REG> = crate::FieldWriter<'a, REG, 5>;
#[doc = "Field `PB` reader - Prescaler Bypass"]
pub type PbR = crate::BitReader;
#[doc = "Field `PB` writer - Prescaler Bypass"]
pub type PbW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bits 0:4 - Frame Counter Overflow Value"]
    #[inline(always)]
    pub fn ovf(&self) -> OvfR {
        OvfR::new(self.bits & 0x1f)
    }
    #[doc = "Bit 7 - Prescaler Bypass"]
    #[inline(always)]
    pub fn pb(&self) -> PbR {
        PbR::new(((self.bits >> 7) & 1) != 0)
    }
}
impl W {
    #[doc = "Bits 0:4 - Frame Counter Overflow Value"]
    #[inline(always)]
    pub fn ovf(&mut self) -> OvfW<Fc2Spec> {
        OvfW::new(self, 0)
    }
    #[doc = "Bit 7 - Prescaler Bypass"]
    #[inline(always)]
    pub fn pb(&mut self) -> PbW<Fc2Spec> {
        PbW::new(self, 7)
    }
}
#[doc = "Frame Counter 2 Configuration\n\nYou can [`read`](crate::Reg::read) this register and get [`fc2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fc2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct Fc2Spec;
impl crate::RegisterSpec for Fc2Spec {
    type Ux = u8;
}
#[doc = "`read()` method returns [`fc2::R`](R) reader structure"]
impl crate::Readable for Fc2Spec {}
#[doc = "`write(|w| ..)` method takes [`fc2::W`](W) writer structure"]
impl crate::Writable for Fc2Spec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
}
#[doc = "`reset()` method sets FC2 to value 0"]
impl crate::Resettable for Fc2Spec {
    const RESET_VALUE: u8 = 0;
}
