stm32l5 0.16.0

Device support crates for STM32L5 devices
Documentation
///Register `CR2` reader
pub type R = crate::R<CR2rs>;
///Register `CR2` writer
pub type W = crate::W<CR2rs>;
///Field `TAMP1NOER` reader - TAMP1NOER
pub type TAMP1NOER_R = crate::BitReader;
///Field `TAMP1NOER` writer - TAMP1NOER
pub type TAMP1NOER_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP2NOER` reader - TAMP2NOER
pub type TAMP2NOER_R = crate::BitReader;
///Field `TAMP2NOER` writer - TAMP2NOER
pub type TAMP2NOER_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP3NOER` reader - TAMP3NOER
pub type TAMP3NOER_R = crate::BitReader;
///Field `TAMP3NOER` writer - TAMP3NOER
pub type TAMP3NOER_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP4NOER` reader - TAMP4NOER
pub type TAMP4NOER_R = crate::BitReader;
///Field `TAMP4NOER` writer - TAMP4NOER
pub type TAMP4NOER_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP5NOER` reader - TAMP5NOER
pub type TAMP5NOER_R = crate::BitReader;
///Field `TAMP5NOER` writer - TAMP5NOER
pub type TAMP5NOER_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP6NOER` reader - TAMP6NOER
pub type TAMP6NOER_R = crate::BitReader;
///Field `TAMP6NOER` writer - TAMP6NOER
pub type TAMP6NOER_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP7NOER` reader - TAMP7NOER
pub type TAMP7NOER_R = crate::BitReader;
///Field `TAMP7NOER` writer - TAMP7NOER
pub type TAMP7NOER_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP8NOER` reader - TAMP8NOER
pub type TAMP8NOER_R = crate::BitReader;
///Field `TAMP8NOER` writer - TAMP8NOER
pub type TAMP8NOER_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP1MSK` reader - TAMP1MSK
pub type TAMP1MSK_R = crate::BitReader;
///Field `TAMP1MSK` writer - TAMP1MSK
pub type TAMP1MSK_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP2MSK` reader - TAMP2MSK
pub type TAMP2MSK_R = crate::BitReader;
///Field `TAMP2MSK` writer - TAMP2MSK
pub type TAMP2MSK_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP3MSK` reader - TAMP3MSK
pub type TAMP3MSK_R = crate::BitReader;
///Field `TAMP3MSK` writer - TAMP3MSK
pub type TAMP3MSK_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `BKERASE` reader - BKERASE
pub type BKERASE_R = crate::BitReader;
///Field `BKERASE` writer - BKERASE
pub type BKERASE_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP1TRG` reader - TAMP1TRG
pub type TAMP1TRG_R = crate::BitReader;
///Field `TAMP1TRG` writer - TAMP1TRG
pub type TAMP1TRG_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP2TRG` reader - TAMP2TRG
pub type TAMP2TRG_R = crate::BitReader;
///Field `TAMP2TRG` writer - TAMP2TRG
pub type TAMP2TRG_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP3TRG` reader - TAMP3TRG
pub type TAMP3TRG_R = crate::BitReader;
///Field `TAMP3TRG` writer - TAMP3TRG
pub type TAMP3TRG_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP4TRG` reader - TAMP4TRG
pub type TAMP4TRG_R = crate::BitReader;
///Field `TAMP4TRG` writer - TAMP4TRG
pub type TAMP4TRG_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP5TRG` reader - TAMP5TRG
pub type TAMP5TRG_R = crate::BitReader;
///Field `TAMP5TRG` writer - TAMP5TRG
pub type TAMP5TRG_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP6TRG` reader - TAMP6TRG
pub type TAMP6TRG_R = crate::BitReader;
///Field `TAMP6TRG` writer - TAMP6TRG
pub type TAMP6TRG_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP7TRG` reader - TAMP7TRG
pub type TAMP7TRG_R = crate::BitReader;
///Field `TAMP7TRG` writer - TAMP7TRG
pub type TAMP7TRG_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP8TRG` reader - TAMP8TRG
pub type TAMP8TRG_R = crate::BitReader;
///Field `TAMP8TRG` writer - TAMP8TRG
pub type TAMP8TRG_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    ///Bit 0 - TAMP1NOER
    #[inline(always)]
    pub fn tamp1noer(&self) -> TAMP1NOER_R {
        TAMP1NOER_R::new((self.bits & 1) != 0)
    }
    ///Bit 1 - TAMP2NOER
    #[inline(always)]
    pub fn tamp2noer(&self) -> TAMP2NOER_R {
        TAMP2NOER_R::new(((self.bits >> 1) & 1) != 0)
    }
    ///Bit 2 - TAMP3NOER
    #[inline(always)]
    pub fn tamp3noer(&self) -> TAMP3NOER_R {
        TAMP3NOER_R::new(((self.bits >> 2) & 1) != 0)
    }
    ///Bit 3 - TAMP4NOER
    #[inline(always)]
    pub fn tamp4noer(&self) -> TAMP4NOER_R {
        TAMP4NOER_R::new(((self.bits >> 3) & 1) != 0)
    }
    ///Bit 4 - TAMP5NOER
    #[inline(always)]
    pub fn tamp5noer(&self) -> TAMP5NOER_R {
        TAMP5NOER_R::new(((self.bits >> 4) & 1) != 0)
    }
    ///Bit 5 - TAMP6NOER
    #[inline(always)]
    pub fn tamp6noer(&self) -> TAMP6NOER_R {
        TAMP6NOER_R::new(((self.bits >> 5) & 1) != 0)
    }
    ///Bit 6 - TAMP7NOER
    #[inline(always)]
    pub fn tamp7noer(&self) -> TAMP7NOER_R {
        TAMP7NOER_R::new(((self.bits >> 6) & 1) != 0)
    }
    ///Bit 7 - TAMP8NOER
    #[inline(always)]
    pub fn tamp8noer(&self) -> TAMP8NOER_R {
        TAMP8NOER_R::new(((self.bits >> 7) & 1) != 0)
    }
    ///Bit 16 - TAMP1MSK
    #[inline(always)]
    pub fn tamp1msk(&self) -> TAMP1MSK_R {
        TAMP1MSK_R::new(((self.bits >> 16) & 1) != 0)
    }
    ///Bit 17 - TAMP2MSK
    #[inline(always)]
    pub fn tamp2msk(&self) -> TAMP2MSK_R {
        TAMP2MSK_R::new(((self.bits >> 17) & 1) != 0)
    }
    ///Bit 18 - TAMP3MSK
    #[inline(always)]
    pub fn tamp3msk(&self) -> TAMP3MSK_R {
        TAMP3MSK_R::new(((self.bits >> 18) & 1) != 0)
    }
    ///Bit 23 - BKERASE
    #[inline(always)]
    pub fn bkerase(&self) -> BKERASE_R {
        BKERASE_R::new(((self.bits >> 23) & 1) != 0)
    }
    ///Bit 24 - TAMP1TRG
    #[inline(always)]
    pub fn tamp1trg(&self) -> TAMP1TRG_R {
        TAMP1TRG_R::new(((self.bits >> 24) & 1) != 0)
    }
    ///Bit 25 - TAMP2TRG
    #[inline(always)]
    pub fn tamp2trg(&self) -> TAMP2TRG_R {
        TAMP2TRG_R::new(((self.bits >> 25) & 1) != 0)
    }
    ///Bit 26 - TAMP3TRG
    #[inline(always)]
    pub fn tamp3trg(&self) -> TAMP3TRG_R {
        TAMP3TRG_R::new(((self.bits >> 26) & 1) != 0)
    }
    ///Bit 27 - TAMP4TRG
    #[inline(always)]
    pub fn tamp4trg(&self) -> TAMP4TRG_R {
        TAMP4TRG_R::new(((self.bits >> 27) & 1) != 0)
    }
    ///Bit 28 - TAMP5TRG
    #[inline(always)]
    pub fn tamp5trg(&self) -> TAMP5TRG_R {
        TAMP5TRG_R::new(((self.bits >> 28) & 1) != 0)
    }
    ///Bit 29 - TAMP6TRG
    #[inline(always)]
    pub fn tamp6trg(&self) -> TAMP6TRG_R {
        TAMP6TRG_R::new(((self.bits >> 29) & 1) != 0)
    }
    ///Bit 30 - TAMP7TRG
    #[inline(always)]
    pub fn tamp7trg(&self) -> TAMP7TRG_R {
        TAMP7TRG_R::new(((self.bits >> 30) & 1) != 0)
    }
    ///Bit 31 - TAMP8TRG
    #[inline(always)]
    pub fn tamp8trg(&self) -> TAMP8TRG_R {
        TAMP8TRG_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("CR2")
            .field("tamp1noer", &self.tamp1noer())
            .field("tamp2noer", &self.tamp2noer())
            .field("tamp3noer", &self.tamp3noer())
            .field("tamp4noer", &self.tamp4noer())
            .field("tamp5noer", &self.tamp5noer())
            .field("tamp6noer", &self.tamp6noer())
            .field("tamp7noer", &self.tamp7noer())
            .field("tamp8noer", &self.tamp8noer())
            .field("tamp1msk", &self.tamp1msk())
            .field("tamp2msk", &self.tamp2msk())
            .field("tamp3msk", &self.tamp3msk())
            .field("bkerase", &self.bkerase())
            .field("tamp1trg", &self.tamp1trg())
            .field("tamp2trg", &self.tamp2trg())
            .field("tamp3trg", &self.tamp3trg())
            .field("tamp4trg", &self.tamp4trg())
            .field("tamp5trg", &self.tamp5trg())
            .field("tamp6trg", &self.tamp6trg())
            .field("tamp7trg", &self.tamp7trg())
            .field("tamp8trg", &self.tamp8trg())
            .finish()
    }
}
impl W {
    ///Bit 0 - TAMP1NOER
    #[inline(always)]
    pub fn tamp1noer(&mut self) -> TAMP1NOER_W<CR2rs> {
        TAMP1NOER_W::new(self, 0)
    }
    ///Bit 1 - TAMP2NOER
    #[inline(always)]
    pub fn tamp2noer(&mut self) -> TAMP2NOER_W<CR2rs> {
        TAMP2NOER_W::new(self, 1)
    }
    ///Bit 2 - TAMP3NOER
    #[inline(always)]
    pub fn tamp3noer(&mut self) -> TAMP3NOER_W<CR2rs> {
        TAMP3NOER_W::new(self, 2)
    }
    ///Bit 3 - TAMP4NOER
    #[inline(always)]
    pub fn tamp4noer(&mut self) -> TAMP4NOER_W<CR2rs> {
        TAMP4NOER_W::new(self, 3)
    }
    ///Bit 4 - TAMP5NOER
    #[inline(always)]
    pub fn tamp5noer(&mut self) -> TAMP5NOER_W<CR2rs> {
        TAMP5NOER_W::new(self, 4)
    }
    ///Bit 5 - TAMP6NOER
    #[inline(always)]
    pub fn tamp6noer(&mut self) -> TAMP6NOER_W<CR2rs> {
        TAMP6NOER_W::new(self, 5)
    }
    ///Bit 6 - TAMP7NOER
    #[inline(always)]
    pub fn tamp7noer(&mut self) -> TAMP7NOER_W<CR2rs> {
        TAMP7NOER_W::new(self, 6)
    }
    ///Bit 7 - TAMP8NOER
    #[inline(always)]
    pub fn tamp8noer(&mut self) -> TAMP8NOER_W<CR2rs> {
        TAMP8NOER_W::new(self, 7)
    }
    ///Bit 16 - TAMP1MSK
    #[inline(always)]
    pub fn tamp1msk(&mut self) -> TAMP1MSK_W<CR2rs> {
        TAMP1MSK_W::new(self, 16)
    }
    ///Bit 17 - TAMP2MSK
    #[inline(always)]
    pub fn tamp2msk(&mut self) -> TAMP2MSK_W<CR2rs> {
        TAMP2MSK_W::new(self, 17)
    }
    ///Bit 18 - TAMP3MSK
    #[inline(always)]
    pub fn tamp3msk(&mut self) -> TAMP3MSK_W<CR2rs> {
        TAMP3MSK_W::new(self, 18)
    }
    ///Bit 23 - BKERASE
    #[inline(always)]
    pub fn bkerase(&mut self) -> BKERASE_W<CR2rs> {
        BKERASE_W::new(self, 23)
    }
    ///Bit 24 - TAMP1TRG
    #[inline(always)]
    pub fn tamp1trg(&mut self) -> TAMP1TRG_W<CR2rs> {
        TAMP1TRG_W::new(self, 24)
    }
    ///Bit 25 - TAMP2TRG
    #[inline(always)]
    pub fn tamp2trg(&mut self) -> TAMP2TRG_W<CR2rs> {
        TAMP2TRG_W::new(self, 25)
    }
    ///Bit 26 - TAMP3TRG
    #[inline(always)]
    pub fn tamp3trg(&mut self) -> TAMP3TRG_W<CR2rs> {
        TAMP3TRG_W::new(self, 26)
    }
    ///Bit 27 - TAMP4TRG
    #[inline(always)]
    pub fn tamp4trg(&mut self) -> TAMP4TRG_W<CR2rs> {
        TAMP4TRG_W::new(self, 27)
    }
    ///Bit 28 - TAMP5TRG
    #[inline(always)]
    pub fn tamp5trg(&mut self) -> TAMP5TRG_W<CR2rs> {
        TAMP5TRG_W::new(self, 28)
    }
    ///Bit 29 - TAMP6TRG
    #[inline(always)]
    pub fn tamp6trg(&mut self) -> TAMP6TRG_W<CR2rs> {
        TAMP6TRG_W::new(self, 29)
    }
    ///Bit 30 - TAMP7TRG
    #[inline(always)]
    pub fn tamp7trg(&mut self) -> TAMP7TRG_W<CR2rs> {
        TAMP7TRG_W::new(self, 30)
    }
    ///Bit 31 - TAMP8TRG
    #[inline(always)]
    pub fn tamp8trg(&mut self) -> TAMP8TRG_W<CR2rs> {
        TAMP8TRG_W::new(self, 31)
    }
}
/**control register 2

You can [`read`](crate::Reg::read) this register and get [`cr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cr2::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:CR2)*/
pub struct CR2rs;
impl crate::RegisterSpec for CR2rs {
    type Ux = u32;
}
///`read()` method returns [`cr2::R`](R) reader structure
impl crate::Readable for CR2rs {}
///`write(|w| ..)` method takes [`cr2::W`](W) writer structure
impl crate::Writable for CR2rs {
    type Safety = crate::Unsafe;
}
///`reset()` method sets CR2 to value 0
impl crate::Resettable for CR2rs {}