stm32l5 0.16.0

Device support crates for STM32L5 devices
Documentation
///Register `FTSR1` reader
pub type R = crate::R<FTSR1rs>;
///Register `FTSR1` writer
pub type W = crate::W<FTSR1rs>;
///Field `FT0` reader - Falling trigger event configuration bit of configurable event input x
pub type FT0_R = crate::BitReader;
///Field `FT0` writer - Falling trigger event configuration bit of configurable event input x
pub type FT0_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT1` reader - Falling trigger event configuration bit of configurable event input x
pub type FT1_R = crate::BitReader;
///Field `FT1` writer - Falling trigger event configuration bit of configurable event input x
pub type FT1_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT2` reader - Falling trigger event configuration bit of configurable event input x
pub type FT2_R = crate::BitReader;
///Field `FT2` writer - Falling trigger event configuration bit of configurable event input x
pub type FT2_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT3` reader - Falling trigger event configuration bit of configurable event input x
pub type FT3_R = crate::BitReader;
///Field `FT3` writer - Falling trigger event configuration bit of configurable event input x
pub type FT3_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT4` reader - Falling trigger event configuration bit of configurable event input x
pub type FT4_R = crate::BitReader;
///Field `FT4` writer - Falling trigger event configuration bit of configurable event input x
pub type FT4_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT5` reader - Falling trigger event configuration bit of configurable event input x
pub type FT5_R = crate::BitReader;
///Field `FT5` writer - Falling trigger event configuration bit of configurable event input x
pub type FT5_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT6` reader - Falling trigger event configuration bit of configurable event input x
pub type FT6_R = crate::BitReader;
///Field `FT6` writer - Falling trigger event configuration bit of configurable event input x
pub type FT6_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT7` reader - Falling trigger event configuration bit of configurable event input x
pub type FT7_R = crate::BitReader;
///Field `FT7` writer - Falling trigger event configuration bit of configurable event input x
pub type FT7_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT8` reader - Falling trigger event configuration bit of configurable event input x
pub type FT8_R = crate::BitReader;
///Field `FT8` writer - Falling trigger event configuration bit of configurable event input x
pub type FT8_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT9` reader - Falling trigger event configuration bit of configurable event input x
pub type FT9_R = crate::BitReader;
///Field `FT9` writer - Falling trigger event configuration bit of configurable event input x
pub type FT9_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT10` reader - Falling trigger event configuration bit of configurable event input x
pub type FT10_R = crate::BitReader;
///Field `FT10` writer - Falling trigger event configuration bit of configurable event input x
pub type FT10_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT11` reader - Falling trigger event configuration bit of configurable event input x
pub type FT11_R = crate::BitReader;
///Field `FT11` writer - Falling trigger event configuration bit of configurable event input x
pub type FT11_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT12` reader - Falling trigger event configuration bit of configurable event input x
pub type FT12_R = crate::BitReader;
///Field `FT12` writer - Falling trigger event configuration bit of configurable event input x
pub type FT12_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT13` reader - Falling trigger event configuration bit of configurable event input x
pub type FT13_R = crate::BitReader;
///Field `FT13` writer - Falling trigger event configuration bit of configurable event input x
pub type FT13_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT14` reader - Falling trigger event configuration bit of configurable event input x
pub type FT14_R = crate::BitReader;
///Field `FT14` writer - Falling trigger event configuration bit of configurable event input x
pub type FT14_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT15` reader - Falling trigger event configuration bit of configurable event input x
pub type FT15_R = crate::BitReader;
///Field `FT15` writer - Falling trigger event configuration bit of configurable event input x
pub type FT15_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT16` reader - Falling trigger event configuration bit of configurable event input x
pub type FT16_R = crate::BitReader;
///Field `FT16` writer - Falling trigger event configuration bit of configurable event input x
pub type FT16_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT21` reader - Falling trigger event configuration bit of configurable event input x
pub type FT21_R = crate::BitReader;
///Field `FT21` writer - Falling trigger event configuration bit of configurable event input x
pub type FT21_W<'a, REG> = crate::BitWriter<'a, REG>;
///Field `FT22` reader - Falling trigger event configuration bit of configurable event input x
pub type FT22_R = crate::BitReader;
///Field `FT22` writer - Falling trigger event configuration bit of configurable event input x
pub type FT22_W<'a, REG> = crate::BitWriter<'a, REG>;
impl R {
    ///Bit 0 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft0(&self) -> FT0_R {
        FT0_R::new((self.bits & 1) != 0)
    }
    ///Bit 1 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft1(&self) -> FT1_R {
        FT1_R::new(((self.bits >> 1) & 1) != 0)
    }
    ///Bit 2 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft2(&self) -> FT2_R {
        FT2_R::new(((self.bits >> 2) & 1) != 0)
    }
    ///Bit 3 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft3(&self) -> FT3_R {
        FT3_R::new(((self.bits >> 3) & 1) != 0)
    }
    ///Bit 4 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft4(&self) -> FT4_R {
        FT4_R::new(((self.bits >> 4) & 1) != 0)
    }
    ///Bit 5 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft5(&self) -> FT5_R {
        FT5_R::new(((self.bits >> 5) & 1) != 0)
    }
    ///Bit 6 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft6(&self) -> FT6_R {
        FT6_R::new(((self.bits >> 6) & 1) != 0)
    }
    ///Bit 7 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft7(&self) -> FT7_R {
        FT7_R::new(((self.bits >> 7) & 1) != 0)
    }
    ///Bit 8 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft8(&self) -> FT8_R {
        FT8_R::new(((self.bits >> 8) & 1) != 0)
    }
    ///Bit 9 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft9(&self) -> FT9_R {
        FT9_R::new(((self.bits >> 9) & 1) != 0)
    }
    ///Bit 10 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft10(&self) -> FT10_R {
        FT10_R::new(((self.bits >> 10) & 1) != 0)
    }
    ///Bit 11 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft11(&self) -> FT11_R {
        FT11_R::new(((self.bits >> 11) & 1) != 0)
    }
    ///Bit 12 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft12(&self) -> FT12_R {
        FT12_R::new(((self.bits >> 12) & 1) != 0)
    }
    ///Bit 13 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft13(&self) -> FT13_R {
        FT13_R::new(((self.bits >> 13) & 1) != 0)
    }
    ///Bit 14 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft14(&self) -> FT14_R {
        FT14_R::new(((self.bits >> 14) & 1) != 0)
    }
    ///Bit 15 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft15(&self) -> FT15_R {
        FT15_R::new(((self.bits >> 15) & 1) != 0)
    }
    ///Bit 16 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft16(&self) -> FT16_R {
        FT16_R::new(((self.bits >> 16) & 1) != 0)
    }
    ///Bit 21 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft21(&self) -> FT21_R {
        FT21_R::new(((self.bits >> 21) & 1) != 0)
    }
    ///Bit 22 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft22(&self) -> FT22_R {
        FT22_R::new(((self.bits >> 22) & 1) != 0)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("FTSR1")
            .field("ft0", &self.ft0())
            .field("ft1", &self.ft1())
            .field("ft2", &self.ft2())
            .field("ft3", &self.ft3())
            .field("ft4", &self.ft4())
            .field("ft5", &self.ft5())
            .field("ft6", &self.ft6())
            .field("ft7", &self.ft7())
            .field("ft8", &self.ft8())
            .field("ft9", &self.ft9())
            .field("ft10", &self.ft10())
            .field("ft11", &self.ft11())
            .field("ft12", &self.ft12())
            .field("ft13", &self.ft13())
            .field("ft14", &self.ft14())
            .field("ft15", &self.ft15())
            .field("ft16", &self.ft16())
            .field("ft21", &self.ft21())
            .field("ft22", &self.ft22())
            .finish()
    }
}
impl W {
    ///Bit 0 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft0(&mut self) -> FT0_W<FTSR1rs> {
        FT0_W::new(self, 0)
    }
    ///Bit 1 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft1(&mut self) -> FT1_W<FTSR1rs> {
        FT1_W::new(self, 1)
    }
    ///Bit 2 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft2(&mut self) -> FT2_W<FTSR1rs> {
        FT2_W::new(self, 2)
    }
    ///Bit 3 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft3(&mut self) -> FT3_W<FTSR1rs> {
        FT3_W::new(self, 3)
    }
    ///Bit 4 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft4(&mut self) -> FT4_W<FTSR1rs> {
        FT4_W::new(self, 4)
    }
    ///Bit 5 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft5(&mut self) -> FT5_W<FTSR1rs> {
        FT5_W::new(self, 5)
    }
    ///Bit 6 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft6(&mut self) -> FT6_W<FTSR1rs> {
        FT6_W::new(self, 6)
    }
    ///Bit 7 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft7(&mut self) -> FT7_W<FTSR1rs> {
        FT7_W::new(self, 7)
    }
    ///Bit 8 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft8(&mut self) -> FT8_W<FTSR1rs> {
        FT8_W::new(self, 8)
    }
    ///Bit 9 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft9(&mut self) -> FT9_W<FTSR1rs> {
        FT9_W::new(self, 9)
    }
    ///Bit 10 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft10(&mut self) -> FT10_W<FTSR1rs> {
        FT10_W::new(self, 10)
    }
    ///Bit 11 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft11(&mut self) -> FT11_W<FTSR1rs> {
        FT11_W::new(self, 11)
    }
    ///Bit 12 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft12(&mut self) -> FT12_W<FTSR1rs> {
        FT12_W::new(self, 12)
    }
    ///Bit 13 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft13(&mut self) -> FT13_W<FTSR1rs> {
        FT13_W::new(self, 13)
    }
    ///Bit 14 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft14(&mut self) -> FT14_W<FTSR1rs> {
        FT14_W::new(self, 14)
    }
    ///Bit 15 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft15(&mut self) -> FT15_W<FTSR1rs> {
        FT15_W::new(self, 15)
    }
    ///Bit 16 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft16(&mut self) -> FT16_W<FTSR1rs> {
        FT16_W::new(self, 16)
    }
    ///Bit 21 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft21(&mut self) -> FT21_W<FTSR1rs> {
        FT21_W::new(self, 21)
    }
    ///Bit 22 - Falling trigger event configuration bit of configurable event input x
    #[inline(always)]
    pub fn ft22(&mut self) -> FT22_W<FTSR1rs> {
        FT22_W::new(self, 22)
    }
}
/**EXTI falling trigger selection register

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