pub type R = crate::R<SMCRrs>;
pub type W = crate::W<SMCRrs>;
pub type BKPRWDPROT_R = crate::FieldReader;
pub type BKPRWDPROT_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type BKPWDPROT_R = crate::FieldReader;
pub type BKPWDPROT_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
pub type TAMPDPROT_R = crate::BitReader;
pub type TAMPDPROT_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
        #[inline(always)]
    pub fn bkprwdprot(&self) -> BKPRWDPROT_R {
        BKPRWDPROT_R::new((self.bits & 0xff) as u8)
    }
        #[inline(always)]
    pub fn bkpwdprot(&self) -> BKPWDPROT_R {
        BKPWDPROT_R::new(((self.bits >> 16) & 0xff) as u8)
    }
        #[inline(always)]
    pub fn tampdprot(&self) -> TAMPDPROT_R {
        TAMPDPROT_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("SMCR")
            .field("bkprwdprot", &self.bkprwdprot())
            .field("bkpwdprot", &self.bkpwdprot())
            .field("tampdprot", &self.tampdprot())
            .finish()
    }
}
impl W {
        #[inline(always)]
    pub fn bkprwdprot(&mut self) -> BKPRWDPROT_W<SMCRrs> {
        BKPRWDPROT_W::new(self, 0)
    }
        #[inline(always)]
    pub fn bkpwdprot(&mut self) -> BKPWDPROT_W<SMCRrs> {
        BKPWDPROT_W::new(self, 16)
    }
        #[inline(always)]
    pub fn tampdprot(&mut self) -> TAMPDPROT_W<SMCRrs> {
        TAMPDPROT_W::new(self, 31)
    }
}
pub struct SMCRrs;
impl crate::RegisterSpec for SMCRrs {
    type Ux = u32;
}
impl crate::Readable for SMCRrs {}
impl crate::Writable for SMCRrs {
    type Safety = crate::Unsafe;
}
impl crate::Resettable for SMCRrs {}