#[doc = "Register `EVCTRL` reader"]
pub type R = crate::R<EvctrlSpec>;
#[doc = "Register `EVCTRL` writer"]
pub type W = crate::W<EvctrlSpec>;
#[doc = "Field `FC0OEO` reader - Frame Counter 0 Overflow Event Output Enable"]
pub type Fc0oeoR = crate::BitReader;
#[doc = "Field `FC0OEO` writer - Frame Counter 0 Overflow Event Output Enable"]
pub type Fc0oeoW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FC1OEO` reader - Frame Counter 1 Overflow Event Output Enable"]
pub type Fc1oeoR = crate::BitReader;
#[doc = "Field `FC1OEO` writer - Frame Counter 1 Overflow Event Output Enable"]
pub type Fc1oeoW<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `FC2OEO` reader - Frame Counter 2 Overflow Event Output Enable"]
pub type Fc2oeoR = crate::BitReader;
#[doc = "Field `FC2OEO` writer - Frame Counter 2 Overflow Event Output Enable"]
pub type Fc2oeoW<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 0 - Frame Counter 0 Overflow Event Output Enable"]
    #[inline(always)]
    pub fn fc0oeo(&self) -> Fc0oeoR {
        Fc0oeoR::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Frame Counter 1 Overflow Event Output Enable"]
    #[inline(always)]
    pub fn fc1oeo(&self) -> Fc1oeoR {
        Fc1oeoR::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Frame Counter 2 Overflow Event Output Enable"]
    #[inline(always)]
    pub fn fc2oeo(&self) -> Fc2oeoR {
        Fc2oeoR::new(((self.bits >> 2) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Frame Counter 0 Overflow Event Output Enable"]
    #[inline(always)]
    pub fn fc0oeo(&mut self) -> Fc0oeoW<EvctrlSpec> {
        Fc0oeoW::new(self, 0)
    }
    #[doc = "Bit 1 - Frame Counter 1 Overflow Event Output Enable"]
    #[inline(always)]
    pub fn fc1oeo(&mut self) -> Fc1oeoW<EvctrlSpec> {
        Fc1oeoW::new(self, 1)
    }
    #[doc = "Bit 2 - Frame Counter 2 Overflow Event Output Enable"]
    #[inline(always)]
    pub fn fc2oeo(&mut self) -> Fc2oeoW<EvctrlSpec> {
        Fc2oeoW::new(self, 2)
    }
}
#[doc = "Event Control\n\nYou can [`read`](crate::Reg::read) this register and get [`evctrl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`evctrl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct EvctrlSpec;
impl crate::RegisterSpec for EvctrlSpec {
    type Ux = u8;
}
#[doc = "`read()` method returns [`evctrl::R`](R) reader structure"]
impl crate::Readable for EvctrlSpec {}
#[doc = "`write(|w| ..)` method takes [`evctrl::W`](W) writer structure"]
impl crate::Writable for EvctrlSpec {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u8 = 0;
}
#[doc = "`reset()` method sets EVCTRL to value 0"]
impl crate::Resettable for EvctrlSpec {
    const RESET_VALUE: u8 = 0;
}
