pub type R = crate::R<CR2rs>;
pub type W = crate::W<CR2rs>;
pub type TAMP1NOER_R = crate::BitReader;
pub type TAMP1NOER_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP2NOER_R = crate::BitReader;
pub type TAMP2NOER_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP1MSK_R = crate::BitReader;
pub type TAMP1MSK_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP2MSK_R = crate::BitReader;
pub type TAMP2MSK_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BKBLOCK_R = crate::BitReader;
pub type BKBLOCK_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type BKERASE_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP1TRG_R = crate::BitReader;
pub type TAMP1TRG_W<'a, REG> = crate::BitWriter<'a, REG>;
pub type TAMP2TRG_R = crate::BitReader;
pub type TAMP2TRG_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
        #[inline(always)]
    pub fn tamp1noer(&self) -> TAMP1NOER_R {
        TAMP1NOER_R::new((self.bits & 1) != 0)
    }
        #[inline(always)]
    pub fn tamp2noer(&self) -> TAMP2NOER_R {
        TAMP2NOER_R::new(((self.bits >> 1) & 1) != 0)
    }
        #[inline(always)]
    pub fn tamp1msk(&self) -> TAMP1MSK_R {
        TAMP1MSK_R::new(((self.bits >> 16) & 1) != 0)
    }
        #[inline(always)]
    pub fn tamp2msk(&self) -> TAMP2MSK_R {
        TAMP2MSK_R::new(((self.bits >> 17) & 1) != 0)
    }
        #[inline(always)]
    pub fn bkblock(&self) -> BKBLOCK_R {
        BKBLOCK_R::new(((self.bits >> 22) & 1) != 0)
    }
        #[inline(always)]
    pub fn tamp1trg(&self) -> TAMP1TRG_R {
        TAMP1TRG_R::new(((self.bits >> 24) & 1) != 0)
    }
        #[inline(always)]
    pub fn tamp2trg(&self) -> TAMP2TRG_R {
        TAMP2TRG_R::new(((self.bits >> 25) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("CR2")
            .field("tamp1noer", &self.tamp1noer())
            .field("tamp2noer", &self.tamp2noer())
            .field("tamp1msk", &self.tamp1msk())
            .field("tamp2msk", &self.tamp2msk())
            .field("bkblock", &self.bkblock())
            .field("tamp1trg", &self.tamp1trg())
            .field("tamp2trg", &self.tamp2trg())
            .finish()
    }
}
impl W {
        #[inline(always)]
    pub fn tamp1noer(&mut self) -> TAMP1NOER_W<CR2rs> {
        TAMP1NOER_W::new(self, 0)
    }
        #[inline(always)]
    pub fn tamp2noer(&mut self) -> TAMP2NOER_W<CR2rs> {
        TAMP2NOER_W::new(self, 1)
    }
        #[inline(always)]
    pub fn tamp1msk(&mut self) -> TAMP1MSK_W<CR2rs> {
        TAMP1MSK_W::new(self, 16)
    }
        #[inline(always)]
    pub fn tamp2msk(&mut self) -> TAMP2MSK_W<CR2rs> {
        TAMP2MSK_W::new(self, 17)
    }
        #[inline(always)]
    pub fn bkblock(&mut self) -> BKBLOCK_W<CR2rs> {
        BKBLOCK_W::new(self, 22)
    }
        #[inline(always)]
    pub fn bkerase(&mut self) -> BKERASE_W<CR2rs> {
        BKERASE_W::new(self, 23)
    }
        #[inline(always)]
    pub fn tamp1trg(&mut self) -> TAMP1TRG_W<CR2rs> {
        TAMP1TRG_W::new(self, 24)
    }
        #[inline(always)]
    pub fn tamp2trg(&mut self) -> TAMP2TRG_W<CR2rs> {
        TAMP2TRG_W::new(self, 25)
    }
}
pub struct CR2rs;
impl crate::RegisterSpec for CR2rs {
    type Ux = u32;
}
impl crate::Readable for CR2rs {}
impl crate::Writable for CR2rs {
    type Safety = crate::Unsafe;
}
impl crate::Resettable for CR2rs {}