///Register `SECCFGR1` reader
pub type R = crate::R<SECCFGR1rs>;
///Register `SECCFGR1` writer
pub type W = crate::W<SECCFGR1rs>;
///Field `SEC0` reader - Security enable on event input x
pub type SEC0_R = crate::BitReader;
///Field `SEC0` writer - Security enable on event input x
pub type SEC0_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC1` reader - Security enable on event input x
pub type SEC1_R = crate::BitReader;
///Field `SEC1` writer - Security enable on event input x
pub type SEC1_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC2` reader - Security enable on event input x
pub type SEC2_R = crate::BitReader;
///Field `SEC2` writer - Security enable on event input x
pub type SEC2_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC3` reader - Security enable on event input x
pub type SEC3_R = crate::BitReader;
///Field `SEC3` writer - Security enable on event input x
pub type SEC3_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC4` reader - Security enable on event input x
pub type SEC4_R = crate::BitReader;
///Field `SEC4` writer - Security enable on event input x
pub type SEC4_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC5` reader - Security enable on event input x
pub type SEC5_R = crate::BitReader;
///Field `SEC5` writer - Security enable on event input x
pub type SEC5_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC6` reader - Security enable on event input x
pub type SEC6_R = crate::BitReader;
///Field `SEC6` writer - Security enable on event input x
pub type SEC6_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC7` reader - Security enable on event input x
pub type SEC7_R = crate::BitReader;
///Field `SEC7` writer - Security enable on event input x
pub type SEC7_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC8` reader - Security enable on event input x
pub type SEC8_R = crate::BitReader;
///Field `SEC8` writer - Security enable on event input x
pub type SEC8_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC9` reader - Security enable on event input x
pub type SEC9_R = crate::BitReader;
///Field `SEC9` writer - Security enable on event input x
pub type SEC9_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC10` reader - Security enable on event input x
pub type SEC10_R = crate::BitReader;
///Field `SEC10` writer - Security enable on event input x
pub type SEC10_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC11` reader - Security enable on event input x
pub type SEC11_R = crate::BitReader;
///Field `SEC11` writer - Security enable on event input x
pub type SEC11_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC12` reader - Security enable on event input x
pub type SEC12_R = crate::BitReader;
///Field `SEC12` writer - Security enable on event input x
pub type SEC12_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC13` reader - Security enable on event input x
pub type SEC13_R = crate::BitReader;
///Field `SEC13` writer - Security enable on event input x
pub type SEC13_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC14` reader - Security enable on event input x
pub type SEC14_R = crate::BitReader;
///Field `SEC14` writer - Security enable on event input x
pub type SEC14_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC15` reader - Security enable on event input x
pub type SEC15_R = crate::BitReader;
///Field `SEC15` writer - Security enable on event input x
pub type SEC15_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC16` reader - Security enable on event input x
pub type SEC16_R = crate::BitReader;
///Field `SEC16` writer - Security enable on event input x
pub type SEC16_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC17` reader - Security enable on event input x
pub type SEC17_R = crate::BitReader;
///Field `SEC17` writer - Security enable on event input x
pub type SEC17_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC18` reader - Security enable on event input x
pub type SEC18_R = crate::BitReader;
///Field `SEC18` writer - Security enable on event input x
pub type SEC18_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC19` reader - Security enable on event input x
pub type SEC19_R = crate::BitReader;
///Field `SEC19` writer - Security enable on event input x
pub type SEC19_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC20` reader - Security enable on event input x
pub type SEC20_R = crate::BitReader;
///Field `SEC20` writer - Security enable on event input x
pub type SEC20_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC21` reader - Security enable on event input x
pub type SEC21_R = crate::BitReader;
///Field `SEC21` writer - Security enable on event input x
pub type SEC21_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC22` reader - Security enable on event input x
pub type SEC22_R = crate::BitReader;
///Field `SEC22` writer - Security enable on event input x
pub type SEC22_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC23` reader - Security enable on event input x
pub type SEC23_R = crate::BitReader;
///Field `SEC23` writer - Security enable on event input x
pub type SEC23_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC24` reader - Security enable on event input x
pub type SEC24_R = crate::BitReader;
///Field `SEC24` writer - Security enable on event input x
pub type SEC24_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC25` reader - Security enable on event input x
pub type SEC25_R = crate::BitReader;
///Field `SEC25` writer - Security enable on event input x
pub type SEC25_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC26` reader - Security enable on event input x
pub type SEC26_R = crate::BitReader;
///Field `SEC26` writer - Security enable on event input x
pub type SEC26_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC27` reader - Security enable on event input x
pub type SEC27_R = crate::BitReader;
///Field `SEC27` writer - Security enable on event input x
pub type SEC27_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC28` reader - Security enable on event input x
pub type SEC28_R = crate::BitReader;
///Field `SEC28` writer - Security enable on event input x
pub type SEC28_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC29` reader - Security enable on event input x
pub type SEC29_R = crate::BitReader;
///Field `SEC29` writer - Security enable on event input x
pub type SEC29_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC30` reader - Security enable on event input x
pub type SEC30_R = crate::BitReader;
///Field `SEC30` writer - Security enable on event input x
pub type SEC30_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `SEC31` reader - Security enable on event input x
pub type SEC31_R = crate::BitReader;
///Field `SEC31` writer - Security enable on event input x
pub type SEC31_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    ///Bit 0 - Security enable on event input x
    #[inline(always)]
    pub fn sec0(&self) -> SEC0_R {
        SEC0_R::new((self.bits & 1) != 0)
    }
    ///Bit 1 - Security enable on event input x
    #[inline(always)]
    pub fn sec1(&self) -> SEC1_R {
        SEC1_R::new(((self.bits >> 1) & 1) != 0)
    }
    ///Bit 2 - Security enable on event input x
    #[inline(always)]
    pub fn sec2(&self) -> SEC2_R {
        SEC2_R::new(((self.bits >> 2) & 1) != 0)
    }
    ///Bit 3 - Security enable on event input x
    #[inline(always)]
    pub fn sec3(&self) -> SEC3_R {
        SEC3_R::new(((self.bits >> 3) & 1) != 0)
    }
    ///Bit 4 - Security enable on event input x
    #[inline(always)]
    pub fn sec4(&self) -> SEC4_R {
        SEC4_R::new(((self.bits >> 4) & 1) != 0)
    }
    ///Bit 5 - Security enable on event input x
    #[inline(always)]
    pub fn sec5(&self) -> SEC5_R {
        SEC5_R::new(((self.bits >> 5) & 1) != 0)
    }
    ///Bit 6 - Security enable on event input x
    #[inline(always)]
    pub fn sec6(&self) -> SEC6_R {
        SEC6_R::new(((self.bits >> 6) & 1) != 0)
    }
    ///Bit 7 - Security enable on event input x
    #[inline(always)]
    pub fn sec7(&self) -> SEC7_R {
        SEC7_R::new(((self.bits >> 7) & 1) != 0)
    }
    ///Bit 8 - Security enable on event input x
    #[inline(always)]
    pub fn sec8(&self) -> SEC8_R {
        SEC8_R::new(((self.bits >> 8) & 1) != 0)
    }
    ///Bit 9 - Security enable on event input x
    #[inline(always)]
    pub fn sec9(&self) -> SEC9_R {
        SEC9_R::new(((self.bits >> 9) & 1) != 0)
    }
    ///Bit 10 - Security enable on event input x
    #[inline(always)]
    pub fn sec10(&self) -> SEC10_R {
        SEC10_R::new(((self.bits >> 10) & 1) != 0)
    }
    ///Bit 11 - Security enable on event input x
    #[inline(always)]
    pub fn sec11(&self) -> SEC11_R {
        SEC11_R::new(((self.bits >> 11) & 1) != 0)
    }
    ///Bit 12 - Security enable on event input x
    #[inline(always)]
    pub fn sec12(&self) -> SEC12_R {
        SEC12_R::new(((self.bits >> 12) & 1) != 0)
    }
    ///Bit 13 - Security enable on event input x
    #[inline(always)]
    pub fn sec13(&self) -> SEC13_R {
        SEC13_R::new(((self.bits >> 13) & 1) != 0)
    }
    ///Bit 14 - Security enable on event input x
    #[inline(always)]
    pub fn sec14(&self) -> SEC14_R {
        SEC14_R::new(((self.bits >> 14) & 1) != 0)
    }
    ///Bit 15 - Security enable on event input x
    #[inline(always)]
    pub fn sec15(&self) -> SEC15_R {
        SEC15_R::new(((self.bits >> 15) & 1) != 0)
    }
    ///Bit 16 - Security enable on event input x
    #[inline(always)]
    pub fn sec16(&self) -> SEC16_R {
        SEC16_R::new(((self.bits >> 16) & 1) != 0)
    }
    ///Bit 17 - Security enable on event input x
    #[inline(always)]
    pub fn sec17(&self) -> SEC17_R {
        SEC17_R::new(((self.bits >> 17) & 1) != 0)
    }
    ///Bit 18 - Security enable on event input x
    #[inline(always)]
    pub fn sec18(&self) -> SEC18_R {
        SEC18_R::new(((self.bits >> 18) & 1) != 0)
    }
    ///Bit 19 - Security enable on event input x
    #[inline(always)]
    pub fn sec19(&self) -> SEC19_R {
        SEC19_R::new(((self.bits >> 19) & 1) != 0)
    }
    ///Bit 20 - Security enable on event input x
    #[inline(always)]
    pub fn sec20(&self) -> SEC20_R {
        SEC20_R::new(((self.bits >> 20) & 1) != 0)
    }
    ///Bit 21 - Security enable on event input x
    #[inline(always)]
    pub fn sec21(&self) -> SEC21_R {
        SEC21_R::new(((self.bits >> 21) & 1) != 0)
    }
    ///Bit 22 - Security enable on event input x
    #[inline(always)]
    pub fn sec22(&self) -> SEC22_R {
        SEC22_R::new(((self.bits >> 22) & 1) != 0)
    }
    ///Bit 23 - Security enable on event input x
    #[inline(always)]
    pub fn sec23(&self) -> SEC23_R {
        SEC23_R::new(((self.bits >> 23) & 1) != 0)
    }
    ///Bit 24 - Security enable on event input x
    #[inline(always)]
    pub fn sec24(&self) -> SEC24_R {
        SEC24_R::new(((self.bits >> 24) & 1) != 0)
    }
    ///Bit 25 - Security enable on event input x
    #[inline(always)]
    pub fn sec25(&self) -> SEC25_R {
        SEC25_R::new(((self.bits >> 25) & 1) != 0)
    }
    ///Bit 26 - Security enable on event input x
    #[inline(always)]
    pub fn sec26(&self) -> SEC26_R {
        SEC26_R::new(((self.bits >> 26) & 1) != 0)
    }
    ///Bit 27 - Security enable on event input x
    #[inline(always)]
    pub fn sec27(&self) -> SEC27_R {
        SEC27_R::new(((self.bits >> 27) & 1) != 0)
    }
    ///Bit 28 - Security enable on event input x
    #[inline(always)]
    pub fn sec28(&self) -> SEC28_R {
        SEC28_R::new(((self.bits >> 28) & 1) != 0)
    }
    ///Bit 29 - Security enable on event input x
    #[inline(always)]
    pub fn sec29(&self) -> SEC29_R {
        SEC29_R::new(((self.bits >> 29) & 1) != 0)
    }
    ///Bit 30 - Security enable on event input x
    #[inline(always)]
    pub fn sec30(&self) -> SEC30_R {
        SEC30_R::new(((self.bits >> 30) & 1) != 0)
    }
    ///Bit 31 - Security enable on event input x
    #[inline(always)]
    pub fn sec31(&self) -> SEC31_R {
        SEC31_R::new(((self.bits >> 31) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("SECCFGR1")
            .field("sec0", &self.sec0())
            .field("sec1", &self.sec1())
            .field("sec2", &self.sec2())
            .field("sec3", &self.sec3())
            .field("sec4", &self.sec4())
            .field("sec5", &self.sec5())
            .field("sec6", &self.sec6())
            .field("sec7", &self.sec7())
            .field("sec8", &self.sec8())
            .field("sec9", &self.sec9())
            .field("sec10", &self.sec10())
            .field("sec11", &self.sec11())
            .field("sec12", &self.sec12())
            .field("sec13", &self.sec13())
            .field("sec14", &self.sec14())
            .field("sec15", &self.sec15())
            .field("sec16", &self.sec16())
            .field("sec17", &self.sec17())
            .field("sec18", &self.sec18())
            .field("sec19", &self.sec19())
            .field("sec20", &self.sec20())
            .field("sec21", &self.sec21())
            .field("sec22", &self.sec22())
            .field("sec23", &self.sec23())
            .field("sec24", &self.sec24())
            .field("sec25", &self.sec25())
            .field("sec26", &self.sec26())
            .field("sec27", &self.sec27())
            .field("sec28", &self.sec28())
            .field("sec29", &self.sec29())
            .field("sec30", &self.sec30())
            .field("sec31", &self.sec31())
            .finish()
    }
}
impl W {
    ///Bit 0 - Security enable on event input x
    #[inline(always)]
    pub fn sec0(&mut self) -> SEC0_W<SECCFGR1rs> {
        SEC0_W::new(self, 0)
    }
    ///Bit 1 - Security enable on event input x
    #[inline(always)]
    pub fn sec1(&mut self) -> SEC1_W<SECCFGR1rs> {
        SEC1_W::new(self, 1)
    }
    ///Bit 2 - Security enable on event input x
    #[inline(always)]
    pub fn sec2(&mut self) -> SEC2_W<SECCFGR1rs> {
        SEC2_W::new(self, 2)
    }
    ///Bit 3 - Security enable on event input x
    #[inline(always)]
    pub fn sec3(&mut self) -> SEC3_W<SECCFGR1rs> {
        SEC3_W::new(self, 3)
    }
    ///Bit 4 - Security enable on event input x
    #[inline(always)]
    pub fn sec4(&mut self) -> SEC4_W<SECCFGR1rs> {
        SEC4_W::new(self, 4)
    }
    ///Bit 5 - Security enable on event input x
    #[inline(always)]
    pub fn sec5(&mut self) -> SEC5_W<SECCFGR1rs> {
        SEC5_W::new(self, 5)
    }
    ///Bit 6 - Security enable on event input x
    #[inline(always)]
    pub fn sec6(&mut self) -> SEC6_W<SECCFGR1rs> {
        SEC6_W::new(self, 6)
    }
    ///Bit 7 - Security enable on event input x
    #[inline(always)]
    pub fn sec7(&mut self) -> SEC7_W<SECCFGR1rs> {
        SEC7_W::new(self, 7)
    }
    ///Bit 8 - Security enable on event input x
    #[inline(always)]
    pub fn sec8(&mut self) -> SEC8_W<SECCFGR1rs> {
        SEC8_W::new(self, 8)
    }
    ///Bit 9 - Security enable on event input x
    #[inline(always)]
    pub fn sec9(&mut self) -> SEC9_W<SECCFGR1rs> {
        SEC9_W::new(self, 9)
    }
    ///Bit 10 - Security enable on event input x
    #[inline(always)]
    pub fn sec10(&mut self) -> SEC10_W<SECCFGR1rs> {
        SEC10_W::new(self, 10)
    }
    ///Bit 11 - Security enable on event input x
    #[inline(always)]
    pub fn sec11(&mut self) -> SEC11_W<SECCFGR1rs> {
        SEC11_W::new(self, 11)
    }
    ///Bit 12 - Security enable on event input x
    #[inline(always)]
    pub fn sec12(&mut self) -> SEC12_W<SECCFGR1rs> {
        SEC12_W::new(self, 12)
    }
    ///Bit 13 - Security enable on event input x
    #[inline(always)]
    pub fn sec13(&mut self) -> SEC13_W<SECCFGR1rs> {
        SEC13_W::new(self, 13)
    }
    ///Bit 14 - Security enable on event input x
    #[inline(always)]
    pub fn sec14(&mut self) -> SEC14_W<SECCFGR1rs> {
        SEC14_W::new(self, 14)
    }
    ///Bit 15 - Security enable on event input x
    #[inline(always)]
    pub fn sec15(&mut self) -> SEC15_W<SECCFGR1rs> {
        SEC15_W::new(self, 15)
    }
    ///Bit 16 - Security enable on event input x
    #[inline(always)]
    pub fn sec16(&mut self) -> SEC16_W<SECCFGR1rs> {
        SEC16_W::new(self, 16)
    }
    ///Bit 17 - Security enable on event input x
    #[inline(always)]
    pub fn sec17(&mut self) -> SEC17_W<SECCFGR1rs> {
        SEC17_W::new(self, 17)
    }
    ///Bit 18 - Security enable on event input x
    #[inline(always)]
    pub fn sec18(&mut self) -> SEC18_W<SECCFGR1rs> {
        SEC18_W::new(self, 18)
    }
    ///Bit 19 - Security enable on event input x
    #[inline(always)]
    pub fn sec19(&mut self) -> SEC19_W<SECCFGR1rs> {
        SEC19_W::new(self, 19)
    }
    ///Bit 20 - Security enable on event input x
    #[inline(always)]
    pub fn sec20(&mut self) -> SEC20_W<SECCFGR1rs> {
        SEC20_W::new(self, 20)
    }
    ///Bit 21 - Security enable on event input x
    #[inline(always)]
    pub fn sec21(&mut self) -> SEC21_W<SECCFGR1rs> {
        SEC21_W::new(self, 21)
    }
    ///Bit 22 - Security enable on event input x
    #[inline(always)]
    pub fn sec22(&mut self) -> SEC22_W<SECCFGR1rs> {
        SEC22_W::new(self, 22)
    }
    ///Bit 23 - Security enable on event input x
    #[inline(always)]
    pub fn sec23(&mut self) -> SEC23_W<SECCFGR1rs> {
        SEC23_W::new(self, 23)
    }
    ///Bit 24 - Security enable on event input x
    #[inline(always)]
    pub fn sec24(&mut self) -> SEC24_W<SECCFGR1rs> {
        SEC24_W::new(self, 24)
    }
    ///Bit 25 - Security enable on event input x
    #[inline(always)]
    pub fn sec25(&mut self) -> SEC25_W<SECCFGR1rs> {
        SEC25_W::new(self, 25)
    }
    ///Bit 26 - Security enable on event input x
    #[inline(always)]
    pub fn sec26(&mut self) -> SEC26_W<SECCFGR1rs> {
        SEC26_W::new(self, 26)
    }
    ///Bit 27 - Security enable on event input x
    #[inline(always)]
    pub fn sec27(&mut self) -> SEC27_W<SECCFGR1rs> {
        SEC27_W::new(self, 27)
    }
    ///Bit 28 - Security enable on event input x
    #[inline(always)]
    pub fn sec28(&mut self) -> SEC28_W<SECCFGR1rs> {
        SEC28_W::new(self, 28)
    }
    ///Bit 29 - Security enable on event input x
    #[inline(always)]
    pub fn sec29(&mut self) -> SEC29_W<SECCFGR1rs> {
        SEC29_W::new(self, 29)
    }
    ///Bit 30 - Security enable on event input x
    #[inline(always)]
    pub fn sec30(&mut self) -> SEC30_W<SECCFGR1rs> {
        SEC30_W::new(self, 30)
    }
    ///Bit 31 - Security enable on event input x
    #[inline(always)]
    pub fn sec31(&mut self) -> SEC31_W<SECCFGR1rs> {
        SEC31_W::new(self, 31)
    }
}
/**EXTI security configuration register

You can [`read`](crate::Reg::read) this register and get [`seccfgr1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`seccfgr1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct SECCFGR1rs;
impl crate::RegisterSpec for SECCFGR1rs {
    type Ux = u32;
}
///`read()` method returns [`seccfgr1::R`](R) reader structure
impl crate::Readable for SECCFGR1rs {}
///`write(|w| ..)` method takes [`seccfgr1::W`](W) writer structure
impl crate::Writable for SECCFGR1rs {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
///`reset()` method sets SECCFGR1 to value 0
impl crate::Resettable for SECCFGR1rs {
    const RESET_VALUE: u32 = 0;
}
