stm32h5 0.16.0

Device support crates for STM32H5 devices
Documentation
///Register `CR1` reader
pub type R = crate::R<CR1rs>;
///Register `CR1` writer
pub type W = crate::W<CR1rs>;
///Field `TAMP1E` reader - Tamper detection on TAMP_IN1 enable
pub type TAMP1E_R = crate::BitReader;
///Field `TAMP1E` writer - Tamper detection on TAMP_IN1 enable
pub type TAMP1E_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `TAMP2E` reader - Tamper detection on TAMP_IN2 enable
pub type TAMP2E_R = crate::BitReader;
///Field `TAMP2E` writer - Tamper detection on TAMP_IN2 enable
pub type TAMP2E_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ITAMP1E` reader - Internal tamper 1 enable
pub type ITAMP1E_R = crate::BitReader;
///Field `ITAMP1E` writer - Internal tamper 1 enable
pub type ITAMP1E_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ITAMP2E` reader - Internal tamper 2 enable
pub type ITAMP2E_R = crate::BitReader;
///Field `ITAMP2E` writer - Internal tamper 2 enable
pub type ITAMP2E_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ITAMP3E` reader - Internal tamper 3 enable
pub type ITAMP3E_R = crate::BitReader;
///Field `ITAMP3E` writer - Internal tamper 3 enable
pub type ITAMP3E_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ITAMP4E` reader - Internal tamper 4 enable
pub type ITAMP4E_R = crate::BitReader;
///Field `ITAMP4E` writer - Internal tamper 4 enable
pub type ITAMP4E_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ITAMP5E` reader - Internal tamper 5 enable
pub type ITAMP5E_R = crate::BitReader;
///Field `ITAMP5E` writer - Internal tamper 5 enable
pub type ITAMP5E_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ITAMP6E` reader - Internal tamper 6 enable
pub type ITAMP6E_R = crate::BitReader;
///Field `ITAMP6E` writer - Internal tamper 6 enable
pub type ITAMP6E_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ITAMP7E` reader - Internal tamper 7 enable
pub type ITAMP7E_R = crate::BitReader;
///Field `ITAMP7E` writer - Internal tamper 7 enable
pub type ITAMP7E_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ITAMP8E` reader - Internal tamper 8 enable
pub type ITAMP8E_R = crate::BitReader;
///Field `ITAMP8E` writer - Internal tamper 8 enable
pub type ITAMP8E_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ITAMP9E` reader - Internal tamper 9 enable
pub type ITAMP9E_R = crate::BitReader;
///Field `ITAMP9E` writer - Internal tamper 9 enable
pub type ITAMP9E_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ITAMP11E` reader - Internal tamper 11 enable
pub type ITAMP11E_R = crate::BitReader;
///Field `ITAMP11E` writer - Internal tamper 11 enable
pub type ITAMP11E_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ITAMP12E` reader - Internal tamper 12 enable
pub type ITAMP12E_R = crate::BitReader;
///Field `ITAMP12E` writer - Internal tamper 12 enable
pub type ITAMP12E_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ITAMP13E` reader - Internal tamper 13 enable
pub type ITAMP13E_R = crate::BitReader;
///Field `ITAMP13E` writer - Internal tamper 13 enable
pub type ITAMP13E_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `ITAMP15E` reader - Internal tamper 15 enable
pub type ITAMP15E_R = crate::BitReader;
///Field `ITAMP15E` writer - Internal tamper 15 enable
pub type ITAMP15E_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    ///Bit 0 - Tamper detection on TAMP_IN1 enable
    #[inline(always)]
    pub fn tamp1e(&self) -> TAMP1E_R {
        TAMP1E_R::new((self.bits & 1) != 0)
    }
    ///Bit 1 - Tamper detection on TAMP_IN2 enable
    #[inline(always)]
    pub fn tamp2e(&self) -> TAMP2E_R {
        TAMP2E_R::new(((self.bits >> 1) & 1) != 0)
    }
    ///Bit 16 - Internal tamper 1 enable
    #[inline(always)]
    pub fn itamp1e(&self) -> ITAMP1E_R {
        ITAMP1E_R::new(((self.bits >> 16) & 1) != 0)
    }
    ///Bit 17 - Internal tamper 2 enable
    #[inline(always)]
    pub fn itamp2e(&self) -> ITAMP2E_R {
        ITAMP2E_R::new(((self.bits >> 17) & 1) != 0)
    }
    ///Bit 18 - Internal tamper 3 enable
    #[inline(always)]
    pub fn itamp3e(&self) -> ITAMP3E_R {
        ITAMP3E_R::new(((self.bits >> 18) & 1) != 0)
    }
    ///Bit 19 - Internal tamper 4 enable
    #[inline(always)]
    pub fn itamp4e(&self) -> ITAMP4E_R {
        ITAMP4E_R::new(((self.bits >> 19) & 1) != 0)
    }
    ///Bit 20 - Internal tamper 5 enable
    #[inline(always)]
    pub fn itamp5e(&self) -> ITAMP5E_R {
        ITAMP5E_R::new(((self.bits >> 20) & 1) != 0)
    }
    ///Bit 21 - Internal tamper 6 enable
    #[inline(always)]
    pub fn itamp6e(&self) -> ITAMP6E_R {
        ITAMP6E_R::new(((self.bits >> 21) & 1) != 0)
    }
    ///Bit 22 - Internal tamper 7 enable
    #[inline(always)]
    pub fn itamp7e(&self) -> ITAMP7E_R {
        ITAMP7E_R::new(((self.bits >> 22) & 1) != 0)
    }
    ///Bit 23 - Internal tamper 8 enable
    #[inline(always)]
    pub fn itamp8e(&self) -> ITAMP8E_R {
        ITAMP8E_R::new(((self.bits >> 23) & 1) != 0)
    }
    ///Bit 24 - Internal tamper 9 enable
    #[inline(always)]
    pub fn itamp9e(&self) -> ITAMP9E_R {
        ITAMP9E_R::new(((self.bits >> 24) & 1) != 0)
    }
    ///Bit 26 - Internal tamper 11 enable
    #[inline(always)]
    pub fn itamp11e(&self) -> ITAMP11E_R {
        ITAMP11E_R::new(((self.bits >> 26) & 1) != 0)
    }
    ///Bit 27 - Internal tamper 12 enable
    #[inline(always)]
    pub fn itamp12e(&self) -> ITAMP12E_R {
        ITAMP12E_R::new(((self.bits >> 27) & 1) != 0)
    }
    ///Bit 28 - Internal tamper 13 enable
    #[inline(always)]
    pub fn itamp13e(&self) -> ITAMP13E_R {
        ITAMP13E_R::new(((self.bits >> 28) & 1) != 0)
    }
    ///Bit 30 - Internal tamper 15 enable
    #[inline(always)]
    pub fn itamp15e(&self) -> ITAMP15E_R {
        ITAMP15E_R::new(((self.bits >> 30) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("CR1")
            .field("tamp1e", &self.tamp1e())
            .field("tamp2e", &self.tamp2e())
            .field("itamp1e", &self.itamp1e())
            .field("itamp2e", &self.itamp2e())
            .field("itamp3e", &self.itamp3e())
            .field("itamp4e", &self.itamp4e())
            .field("itamp5e", &self.itamp5e())
            .field("itamp6e", &self.itamp6e())
            .field("itamp7e", &self.itamp7e())
            .field("itamp8e", &self.itamp8e())
            .field("itamp9e", &self.itamp9e())
            .field("itamp11e", &self.itamp11e())
            .field("itamp12e", &self.itamp12e())
            .field("itamp13e", &self.itamp13e())
            .field("itamp15e", &self.itamp15e())
            .finish()
    }
}
impl W {
    ///Bit 0 - Tamper detection on TAMP_IN1 enable
    #[inline(always)]
    pub fn tamp1e(&mut self) -> TAMP1E_W<CR1rs> {
        TAMP1E_W::new(self, 0)
    }
    ///Bit 1 - Tamper detection on TAMP_IN2 enable
    #[inline(always)]
    pub fn tamp2e(&mut self) -> TAMP2E_W<CR1rs> {
        TAMP2E_W::new(self, 1)
    }
    ///Bit 16 - Internal tamper 1 enable
    #[inline(always)]
    pub fn itamp1e(&mut self) -> ITAMP1E_W<CR1rs> {
        ITAMP1E_W::new(self, 16)
    }
    ///Bit 17 - Internal tamper 2 enable
    #[inline(always)]
    pub fn itamp2e(&mut self) -> ITAMP2E_W<CR1rs> {
        ITAMP2E_W::new(self, 17)
    }
    ///Bit 18 - Internal tamper 3 enable
    #[inline(always)]
    pub fn itamp3e(&mut self) -> ITAMP3E_W<CR1rs> {
        ITAMP3E_W::new(self, 18)
    }
    ///Bit 19 - Internal tamper 4 enable
    #[inline(always)]
    pub fn itamp4e(&mut self) -> ITAMP4E_W<CR1rs> {
        ITAMP4E_W::new(self, 19)
    }
    ///Bit 20 - Internal tamper 5 enable
    #[inline(always)]
    pub fn itamp5e(&mut self) -> ITAMP5E_W<CR1rs> {
        ITAMP5E_W::new(self, 20)
    }
    ///Bit 21 - Internal tamper 6 enable
    #[inline(always)]
    pub fn itamp6e(&mut self) -> ITAMP6E_W<CR1rs> {
        ITAMP6E_W::new(self, 21)
    }
    ///Bit 22 - Internal tamper 7 enable
    #[inline(always)]
    pub fn itamp7e(&mut self) -> ITAMP7E_W<CR1rs> {
        ITAMP7E_W::new(self, 22)
    }
    ///Bit 23 - Internal tamper 8 enable
    #[inline(always)]
    pub fn itamp8e(&mut self) -> ITAMP8E_W<CR1rs> {
        ITAMP8E_W::new(self, 23)
    }
    ///Bit 24 - Internal tamper 9 enable
    #[inline(always)]
    pub fn itamp9e(&mut self) -> ITAMP9E_W<CR1rs> {
        ITAMP9E_W::new(self, 24)
    }
    ///Bit 26 - Internal tamper 11 enable
    #[inline(always)]
    pub fn itamp11e(&mut self) -> ITAMP11E_W<CR1rs> {
        ITAMP11E_W::new(self, 26)
    }
    ///Bit 27 - Internal tamper 12 enable
    #[inline(always)]
    pub fn itamp12e(&mut self) -> ITAMP12E_W<CR1rs> {
        ITAMP12E_W::new(self, 27)
    }
    ///Bit 28 - Internal tamper 13 enable
    #[inline(always)]
    pub fn itamp13e(&mut self) -> ITAMP13E_W<CR1rs> {
        ITAMP13E_W::new(self, 28)
    }
    ///Bit 30 - Internal tamper 15 enable
    #[inline(always)]
    pub fn itamp15e(&mut self) -> ITAMP15E_W<CR1rs> {
        ITAMP15E_W::new(self, 30)
    }
}
/**TAMP control register 1

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