stm32f2 0.16.0

Device support crates for STM32F2 devices
Documentation
///Register `FA1R` reader
pub type R = crate::R<FA1Rrs>;
///Register `FA1R` writer
pub type W = crate::W<FA1Rrs>;
///Field `FACT(0-27)` reader - Filter active
pub type FACT_R = crate::BitReader;
///Field `FACT(0-27)` writer - Filter active
pub type FACT_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    ///Filter active
    ///
    ///<div class="warning">`n` is number of field in register. `n == 0` corresponds to `FACT0` field.</div>
    #[inline(always)]
    pub fn fact(&self, n: u8) -> FACT_R {
        #[allow(clippy::no_effect)]
        [(); 28][n as usize];
        FACT_R::new(((self.bits >> n) & 1) != 0)
    }
    ///Iterator for array of:
    ///Filter active
    #[inline(always)]
    pub fn fact_iter(&self) -> impl Iterator<Item = FACT_R> + '_ {
        (0..28).map(move |n| FACT_R::new(((self.bits >> n) & 1) != 0))
    }
    ///Bit 0 - Filter active
    #[inline(always)]
    pub fn fact0(&self) -> FACT_R {
        FACT_R::new((self.bits & 1) != 0)
    }
    ///Bit 1 - Filter active
    #[inline(always)]
    pub fn fact1(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 1) & 1) != 0)
    }
    ///Bit 2 - Filter active
    #[inline(always)]
    pub fn fact2(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 2) & 1) != 0)
    }
    ///Bit 3 - Filter active
    #[inline(always)]
    pub fn fact3(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 3) & 1) != 0)
    }
    ///Bit 4 - Filter active
    #[inline(always)]
    pub fn fact4(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 4) & 1) != 0)
    }
    ///Bit 5 - Filter active
    #[inline(always)]
    pub fn fact5(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 5) & 1) != 0)
    }
    ///Bit 6 - Filter active
    #[inline(always)]
    pub fn fact6(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 6) & 1) != 0)
    }
    ///Bit 7 - Filter active
    #[inline(always)]
    pub fn fact7(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 7) & 1) != 0)
    }
    ///Bit 8 - Filter active
    #[inline(always)]
    pub fn fact8(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 8) & 1) != 0)
    }
    ///Bit 9 - Filter active
    #[inline(always)]
    pub fn fact9(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 9) & 1) != 0)
    }
    ///Bit 10 - Filter active
    #[inline(always)]
    pub fn fact10(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 10) & 1) != 0)
    }
    ///Bit 11 - Filter active
    #[inline(always)]
    pub fn fact11(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 11) & 1) != 0)
    }
    ///Bit 12 - Filter active
    #[inline(always)]
    pub fn fact12(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 12) & 1) != 0)
    }
    ///Bit 13 - Filter active
    #[inline(always)]
    pub fn fact13(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 13) & 1) != 0)
    }
    ///Bit 14 - Filter active
    #[inline(always)]
    pub fn fact14(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 14) & 1) != 0)
    }
    ///Bit 15 - Filter active
    #[inline(always)]
    pub fn fact15(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 15) & 1) != 0)
    }
    ///Bit 16 - Filter active
    #[inline(always)]
    pub fn fact16(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 16) & 1) != 0)
    }
    ///Bit 17 - Filter active
    #[inline(always)]
    pub fn fact17(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 17) & 1) != 0)
    }
    ///Bit 18 - Filter active
    #[inline(always)]
    pub fn fact18(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 18) & 1) != 0)
    }
    ///Bit 19 - Filter active
    #[inline(always)]
    pub fn fact19(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 19) & 1) != 0)
    }
    ///Bit 20 - Filter active
    #[inline(always)]
    pub fn fact20(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 20) & 1) != 0)
    }
    ///Bit 21 - Filter active
    #[inline(always)]
    pub fn fact21(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 21) & 1) != 0)
    }
    ///Bit 22 - Filter active
    #[inline(always)]
    pub fn fact22(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 22) & 1) != 0)
    }
    ///Bit 23 - Filter active
    #[inline(always)]
    pub fn fact23(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 23) & 1) != 0)
    }
    ///Bit 24 - Filter active
    #[inline(always)]
    pub fn fact24(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 24) & 1) != 0)
    }
    ///Bit 25 - Filter active
    #[inline(always)]
    pub fn fact25(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 25) & 1) != 0)
    }
    ///Bit 26 - Filter active
    #[inline(always)]
    pub fn fact26(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 26) & 1) != 0)
    }
    ///Bit 27 - Filter active
    #[inline(always)]
    pub fn fact27(&self) -> FACT_R {
        FACT_R::new(((self.bits >> 27) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("FA1R")
            .field("fact0", &self.fact0())
            .field("fact1", &self.fact1())
            .field("fact2", &self.fact2())
            .field("fact3", &self.fact3())
            .field("fact4", &self.fact4())
            .field("fact5", &self.fact5())
            .field("fact6", &self.fact6())
            .field("fact7", &self.fact7())
            .field("fact8", &self.fact8())
            .field("fact9", &self.fact9())
            .field("fact10", &self.fact10())
            .field("fact11", &self.fact11())
            .field("fact12", &self.fact12())
            .field("fact13", &self.fact13())
            .field("fact14", &self.fact14())
            .field("fact15", &self.fact15())
            .field("fact16", &self.fact16())
            .field("fact17", &self.fact17())
            .field("fact18", &self.fact18())
            .field("fact19", &self.fact19())
            .field("fact20", &self.fact20())
            .field("fact21", &self.fact21())
            .field("fact22", &self.fact22())
            .field("fact23", &self.fact23())
            .field("fact24", &self.fact24())
            .field("fact25", &self.fact25())
            .field("fact26", &self.fact26())
            .field("fact27", &self.fact27())
            .finish()
    }
}
impl W {
    ///Filter active
    ///
    ///<div class="warning">`n` is number of field in register. `n == 0` corresponds to `FACT0` field.</div>
    #[inline(always)]
    pub fn fact(&mut self, n: u8) -> FACT_W<FA1Rrs> {
        #[allow(clippy::no_effect)]
        [(); 28][n as usize];
        FACT_W::new(self, n)
    }
    ///Bit 0 - Filter active
    #[inline(always)]
    pub fn fact0(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 0)
    }
    ///Bit 1 - Filter active
    #[inline(always)]
    pub fn fact1(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 1)
    }
    ///Bit 2 - Filter active
    #[inline(always)]
    pub fn fact2(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 2)
    }
    ///Bit 3 - Filter active
    #[inline(always)]
    pub fn fact3(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 3)
    }
    ///Bit 4 - Filter active
    #[inline(always)]
    pub fn fact4(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 4)
    }
    ///Bit 5 - Filter active
    #[inline(always)]
    pub fn fact5(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 5)
    }
    ///Bit 6 - Filter active
    #[inline(always)]
    pub fn fact6(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 6)
    }
    ///Bit 7 - Filter active
    #[inline(always)]
    pub fn fact7(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 7)
    }
    ///Bit 8 - Filter active
    #[inline(always)]
    pub fn fact8(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 8)
    }
    ///Bit 9 - Filter active
    #[inline(always)]
    pub fn fact9(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 9)
    }
    ///Bit 10 - Filter active
    #[inline(always)]
    pub fn fact10(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 10)
    }
    ///Bit 11 - Filter active
    #[inline(always)]
    pub fn fact11(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 11)
    }
    ///Bit 12 - Filter active
    #[inline(always)]
    pub fn fact12(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 12)
    }
    ///Bit 13 - Filter active
    #[inline(always)]
    pub fn fact13(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 13)
    }
    ///Bit 14 - Filter active
    #[inline(always)]
    pub fn fact14(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 14)
    }
    ///Bit 15 - Filter active
    #[inline(always)]
    pub fn fact15(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 15)
    }
    ///Bit 16 - Filter active
    #[inline(always)]
    pub fn fact16(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 16)
    }
    ///Bit 17 - Filter active
    #[inline(always)]
    pub fn fact17(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 17)
    }
    ///Bit 18 - Filter active
    #[inline(always)]
    pub fn fact18(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 18)
    }
    ///Bit 19 - Filter active
    #[inline(always)]
    pub fn fact19(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 19)
    }
    ///Bit 20 - Filter active
    #[inline(always)]
    pub fn fact20(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 20)
    }
    ///Bit 21 - Filter active
    #[inline(always)]
    pub fn fact21(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 21)
    }
    ///Bit 22 - Filter active
    #[inline(always)]
    pub fn fact22(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 22)
    }
    ///Bit 23 - Filter active
    #[inline(always)]
    pub fn fact23(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 23)
    }
    ///Bit 24 - Filter active
    #[inline(always)]
    pub fn fact24(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 24)
    }
    ///Bit 25 - Filter active
    #[inline(always)]
    pub fn fact25(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 25)
    }
    ///Bit 26 - Filter active
    #[inline(always)]
    pub fn fact26(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 26)
    }
    ///Bit 27 - Filter active
    #[inline(always)]
    pub fn fact27(&mut self) -> FACT_W<FA1Rrs> {
        FACT_W::new(self, 27)
    }
}
/**filter activation register

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