stm32l5 0.16.0

Device support crates for STM32L5 devices
Documentation
///Register `SMCR` reader
pub type R = crate::R<SMCRrs>;
///Register `SMCR` writer
pub type W = crate::W<SMCRrs>;
///Field `BKPRWDPROT` reader - Backup registers read/write protection offset
pub type BKPRWDPROT_R = crate::FieldReader;
///Field `BKPRWDPROT` writer - Backup registers read/write protection offset
pub type BKPRWDPROT_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
///Field `BKPWDPROT` reader - Backup registers write protection offset
pub type BKPWDPROT_R = crate::FieldReader;
///Field `BKPWDPROT` writer - Backup registers write protection offset
pub type BKPWDPROT_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
///Field `TAMPDPROT` reader - Tamper protection
pub type TAMPDPROT_R = crate::BitReader;
///Field `TAMPDPROT` writer - Tamper protection
pub type TAMPDPROT_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    ///Bits 0:7 - Backup registers read/write protection offset
    #[inline(always)]
    pub fn bkprwdprot(&self) -> BKPRWDPROT_R {
        BKPRWDPROT_R::new((self.bits & 0xff) as u8)
    }
    ///Bits 16:23 - Backup registers write protection offset
    #[inline(always)]
    pub fn bkpwdprot(&self) -> BKPWDPROT_R {
        BKPWDPROT_R::new(((self.bits >> 16) & 0xff) as u8)
    }
    ///Bit 31 - Tamper protection
    #[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 {
    ///Bits 0:7 - Backup registers read/write protection offset
    #[inline(always)]
    pub fn bkprwdprot(&mut self) -> BKPRWDPROT_W<SMCRrs> {
        BKPRWDPROT_W::new(self, 0)
    }
    ///Bits 16:23 - Backup registers write protection offset
    #[inline(always)]
    pub fn bkpwdprot(&mut self) -> BKPWDPROT_W<SMCRrs> {
        BKPWDPROT_W::new(self, 16)
    }
    ///Bit 31 - Tamper protection
    #[inline(always)]
    pub fn tampdprot(&mut self) -> TAMPDPROT_W<SMCRrs> {
        TAMPDPROT_W::new(self, 31)
    }
}
/**TAMP secure mode register

You can [`read`](crate::Reg::read) this register and get [`smcr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`smcr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L552.html#TAMP:SMCR)*/
pub struct SMCRrs;
impl crate::RegisterSpec for SMCRrs {
    type Ux = u32;
}
///`read()` method returns [`smcr::R`](R) reader structure
impl crate::Readable for SMCRrs {}
///`write(|w| ..)` method takes [`smcr::W`](W) writer structure
impl crate::Writable for SMCRrs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets SMCR to value 0
impl crate::Resettable for SMCRrs {}