stm32f103-pac 0.1.3

Peripheral Access Crate (PAC) for STM32F103
Documentation
#[doc = "Register `FTSR` reader"]
pub type R = crate::R<FtsrSpec>;
#[doc = "Register `FTSR` writer"]
pub type W = crate::W<FtsrSpec>;
#[doc = "Field `TR0` reader - Falling trigger event configuration of line 0"]
pub type Tr0R = crate::BitReader;
#[doc = "Field `TR0` writer - Falling trigger event configuration of line 0"]
pub type Tr0W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR1` reader - Falling trigger event configuration of line 1"]
pub type Tr1R = crate::BitReader;
#[doc = "Field `TR1` writer - Falling trigger event configuration of line 1"]
pub type Tr1W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR2` reader - Falling trigger event configuration of line 2"]
pub type Tr2R = crate::BitReader;
#[doc = "Field `TR2` writer - Falling trigger event configuration of line 2"]
pub type Tr2W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR3` reader - Falling trigger event configuration of line 3"]
pub type Tr3R = crate::BitReader;
#[doc = "Field `TR3` writer - Falling trigger event configuration of line 3"]
pub type Tr3W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR4` reader - Falling trigger event configuration of line 4"]
pub type Tr4R = crate::BitReader;
#[doc = "Field `TR4` writer - Falling trigger event configuration of line 4"]
pub type Tr4W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR5` reader - Falling trigger event configuration of line 5"]
pub type Tr5R = crate::BitReader;
#[doc = "Field `TR5` writer - Falling trigger event configuration of line 5"]
pub type Tr5W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR6` reader - Falling trigger event configuration of line 6"]
pub type Tr6R = crate::BitReader;
#[doc = "Field `TR6` writer - Falling trigger event configuration of line 6"]
pub type Tr6W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR7` reader - Falling trigger event configuration of line 7"]
pub type Tr7R = crate::BitReader;
#[doc = "Field `TR7` writer - Falling trigger event configuration of line 7"]
pub type Tr7W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR8` reader - Falling trigger event configuration of line 8"]
pub type Tr8R = crate::BitReader;
#[doc = "Field `TR8` writer - Falling trigger event configuration of line 8"]
pub type Tr8W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR9` reader - Falling trigger event configuration of line 9"]
pub type Tr9R = crate::BitReader;
#[doc = "Field `TR9` writer - Falling trigger event configuration of line 9"]
pub type Tr9W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR10` reader - Falling trigger event configuration of line 10"]
pub type Tr10R = crate::BitReader;
#[doc = "Field `TR10` writer - Falling trigger event configuration of line 10"]
pub type Tr10W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR11` reader - Falling trigger event configuration of line 11"]
pub type Tr11R = crate::BitReader;
#[doc = "Field `TR11` writer - Falling trigger event configuration of line 11"]
pub type Tr11W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR12` reader - Falling trigger event configuration of line 12"]
pub type Tr12R = crate::BitReader;
#[doc = "Field `TR12` writer - Falling trigger event configuration of line 12"]
pub type Tr12W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR13` reader - Falling trigger event configuration of line 13"]
pub type Tr13R = crate::BitReader;
#[doc = "Field `TR13` writer - Falling trigger event configuration of line 13"]
pub type Tr13W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR14` reader - Falling trigger event configuration of line 14"]
pub type Tr14R = crate::BitReader;
#[doc = "Field `TR14` writer - Falling trigger event configuration of line 14"]
pub type Tr14W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR15` reader - Falling trigger event configuration of line 15"]
pub type Tr15R = crate::BitReader;
#[doc = "Field `TR15` writer - Falling trigger event configuration of line 15"]
pub type Tr15W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR16` reader - Falling trigger event configuration of line 16"]
pub type Tr16R = crate::BitReader;
#[doc = "Field `TR16` writer - Falling trigger event configuration of line 16"]
pub type Tr16W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR17` reader - Falling trigger event configuration of line 17"]
pub type Tr17R = crate::BitReader;
#[doc = "Field `TR17` writer - Falling trigger event configuration of line 17"]
pub type Tr17W<'a, REG> = crate::BitWriter<'a, REG>;
#[doc = "Field `TR18` reader - Falling trigger event configuration of line 18"]
pub type Tr18R = crate::BitReader;
#[doc = "Field `TR18` writer - Falling trigger event configuration of line 18"]
pub type Tr18W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    #[doc = "Bit 0 - Falling trigger event configuration of line 0"]
    #[inline(always)]
    pub fn tr0(&self) -> Tr0R {
        Tr0R::new((self.bits & 1) != 0)
    }
    #[doc = "Bit 1 - Falling trigger event configuration of line 1"]
    #[inline(always)]
    pub fn tr1(&self) -> Tr1R {
        Tr1R::new(((self.bits >> 1) & 1) != 0)
    }
    #[doc = "Bit 2 - Falling trigger event configuration of line 2"]
    #[inline(always)]
    pub fn tr2(&self) -> Tr2R {
        Tr2R::new(((self.bits >> 2) & 1) != 0)
    }
    #[doc = "Bit 3 - Falling trigger event configuration of line 3"]
    #[inline(always)]
    pub fn tr3(&self) -> Tr3R {
        Tr3R::new(((self.bits >> 3) & 1) != 0)
    }
    #[doc = "Bit 4 - Falling trigger event configuration of line 4"]
    #[inline(always)]
    pub fn tr4(&self) -> Tr4R {
        Tr4R::new(((self.bits >> 4) & 1) != 0)
    }
    #[doc = "Bit 5 - Falling trigger event configuration of line 5"]
    #[inline(always)]
    pub fn tr5(&self) -> Tr5R {
        Tr5R::new(((self.bits >> 5) & 1) != 0)
    }
    #[doc = "Bit 6 - Falling trigger event configuration of line 6"]
    #[inline(always)]
    pub fn tr6(&self) -> Tr6R {
        Tr6R::new(((self.bits >> 6) & 1) != 0)
    }
    #[doc = "Bit 7 - Falling trigger event configuration of line 7"]
    #[inline(always)]
    pub fn tr7(&self) -> Tr7R {
        Tr7R::new(((self.bits >> 7) & 1) != 0)
    }
    #[doc = "Bit 8 - Falling trigger event configuration of line 8"]
    #[inline(always)]
    pub fn tr8(&self) -> Tr8R {
        Tr8R::new(((self.bits >> 8) & 1) != 0)
    }
    #[doc = "Bit 9 - Falling trigger event configuration of line 9"]
    #[inline(always)]
    pub fn tr9(&self) -> Tr9R {
        Tr9R::new(((self.bits >> 9) & 1) != 0)
    }
    #[doc = "Bit 10 - Falling trigger event configuration of line 10"]
    #[inline(always)]
    pub fn tr10(&self) -> Tr10R {
        Tr10R::new(((self.bits >> 10) & 1) != 0)
    }
    #[doc = "Bit 11 - Falling trigger event configuration of line 11"]
    #[inline(always)]
    pub fn tr11(&self) -> Tr11R {
        Tr11R::new(((self.bits >> 11) & 1) != 0)
    }
    #[doc = "Bit 12 - Falling trigger event configuration of line 12"]
    #[inline(always)]
    pub fn tr12(&self) -> Tr12R {
        Tr12R::new(((self.bits >> 12) & 1) != 0)
    }
    #[doc = "Bit 13 - Falling trigger event configuration of line 13"]
    #[inline(always)]
    pub fn tr13(&self) -> Tr13R {
        Tr13R::new(((self.bits >> 13) & 1) != 0)
    }
    #[doc = "Bit 14 - Falling trigger event configuration of line 14"]
    #[inline(always)]
    pub fn tr14(&self) -> Tr14R {
        Tr14R::new(((self.bits >> 14) & 1) != 0)
    }
    #[doc = "Bit 15 - Falling trigger event configuration of line 15"]
    #[inline(always)]
    pub fn tr15(&self) -> Tr15R {
        Tr15R::new(((self.bits >> 15) & 1) != 0)
    }
    #[doc = "Bit 16 - Falling trigger event configuration of line 16"]
    #[inline(always)]
    pub fn tr16(&self) -> Tr16R {
        Tr16R::new(((self.bits >> 16) & 1) != 0)
    }
    #[doc = "Bit 17 - Falling trigger event configuration of line 17"]
    #[inline(always)]
    pub fn tr17(&self) -> Tr17R {
        Tr17R::new(((self.bits >> 17) & 1) != 0)
    }
    #[doc = "Bit 18 - Falling trigger event configuration of line 18"]
    #[inline(always)]
    pub fn tr18(&self) -> Tr18R {
        Tr18R::new(((self.bits >> 18) & 1) != 0)
    }
}
impl W {
    #[doc = "Bit 0 - Falling trigger event configuration of line 0"]
    #[inline(always)]
    pub fn tr0(&mut self) -> Tr0W<'_, FtsrSpec> {
        Tr0W::new(self, 0)
    }
    #[doc = "Bit 1 - Falling trigger event configuration of line 1"]
    #[inline(always)]
    pub fn tr1(&mut self) -> Tr1W<'_, FtsrSpec> {
        Tr1W::new(self, 1)
    }
    #[doc = "Bit 2 - Falling trigger event configuration of line 2"]
    #[inline(always)]
    pub fn tr2(&mut self) -> Tr2W<'_, FtsrSpec> {
        Tr2W::new(self, 2)
    }
    #[doc = "Bit 3 - Falling trigger event configuration of line 3"]
    #[inline(always)]
    pub fn tr3(&mut self) -> Tr3W<'_, FtsrSpec> {
        Tr3W::new(self, 3)
    }
    #[doc = "Bit 4 - Falling trigger event configuration of line 4"]
    #[inline(always)]
    pub fn tr4(&mut self) -> Tr4W<'_, FtsrSpec> {
        Tr4W::new(self, 4)
    }
    #[doc = "Bit 5 - Falling trigger event configuration of line 5"]
    #[inline(always)]
    pub fn tr5(&mut self) -> Tr5W<'_, FtsrSpec> {
        Tr5W::new(self, 5)
    }
    #[doc = "Bit 6 - Falling trigger event configuration of line 6"]
    #[inline(always)]
    pub fn tr6(&mut self) -> Tr6W<'_, FtsrSpec> {
        Tr6W::new(self, 6)
    }
    #[doc = "Bit 7 - Falling trigger event configuration of line 7"]
    #[inline(always)]
    pub fn tr7(&mut self) -> Tr7W<'_, FtsrSpec> {
        Tr7W::new(self, 7)
    }
    #[doc = "Bit 8 - Falling trigger event configuration of line 8"]
    #[inline(always)]
    pub fn tr8(&mut self) -> Tr8W<'_, FtsrSpec> {
        Tr8W::new(self, 8)
    }
    #[doc = "Bit 9 - Falling trigger event configuration of line 9"]
    #[inline(always)]
    pub fn tr9(&mut self) -> Tr9W<'_, FtsrSpec> {
        Tr9W::new(self, 9)
    }
    #[doc = "Bit 10 - Falling trigger event configuration of line 10"]
    #[inline(always)]
    pub fn tr10(&mut self) -> Tr10W<'_, FtsrSpec> {
        Tr10W::new(self, 10)
    }
    #[doc = "Bit 11 - Falling trigger event configuration of line 11"]
    #[inline(always)]
    pub fn tr11(&mut self) -> Tr11W<'_, FtsrSpec> {
        Tr11W::new(self, 11)
    }
    #[doc = "Bit 12 - Falling trigger event configuration of line 12"]
    #[inline(always)]
    pub fn tr12(&mut self) -> Tr12W<'_, FtsrSpec> {
        Tr12W::new(self, 12)
    }
    #[doc = "Bit 13 - Falling trigger event configuration of line 13"]
    #[inline(always)]
    pub fn tr13(&mut self) -> Tr13W<'_, FtsrSpec> {
        Tr13W::new(self, 13)
    }
    #[doc = "Bit 14 - Falling trigger event configuration of line 14"]
    #[inline(always)]
    pub fn tr14(&mut self) -> Tr14W<'_, FtsrSpec> {
        Tr14W::new(self, 14)
    }
    #[doc = "Bit 15 - Falling trigger event configuration of line 15"]
    #[inline(always)]
    pub fn tr15(&mut self) -> Tr15W<'_, FtsrSpec> {
        Tr15W::new(self, 15)
    }
    #[doc = "Bit 16 - Falling trigger event configuration of line 16"]
    #[inline(always)]
    pub fn tr16(&mut self) -> Tr16W<'_, FtsrSpec> {
        Tr16W::new(self, 16)
    }
    #[doc = "Bit 17 - Falling trigger event configuration of line 17"]
    #[inline(always)]
    pub fn tr17(&mut self) -> Tr17W<'_, FtsrSpec> {
        Tr17W::new(self, 17)
    }
    #[doc = "Bit 18 - Falling trigger event configuration of line 18"]
    #[inline(always)]
    pub fn tr18(&mut self) -> Tr18W<'_, FtsrSpec> {
        Tr18W::new(self, 18)
    }
}
#[doc = "Falling Trigger selection register (EXTI_FTSR)\n\nYou can [`read`](crate::Reg::read) this register and get [`ftsr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ftsr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct FtsrSpec;
impl crate::RegisterSpec for FtsrSpec {
    type Ux = u32;
}
#[doc = "`read()` method returns [`ftsr::R`](R) reader structure"]
impl crate::Readable for FtsrSpec {}
#[doc = "`write(|w| ..)` method takes [`ftsr::W`](W) writer structure"]
impl crate::Writable for FtsrSpec {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets FTSR to value 0"]
impl crate::Resettable for FtsrSpec {}