stm32l476/exti/
pr2.rs

1#[doc = "Register `PR2` reader"]
2pub type R = crate::R<Pr2Spec>;
3#[doc = "Register `PR2` writer"]
4pub type W = crate::W<Pr2Spec>;
5#[doc = "Field `PIF35` reader - Pending interrupt flag on line 35"]
6pub type Pif35R = crate::BitReader;
7#[doc = "Field `PIF35` writer - Pending interrupt flag on line 35"]
8pub type Pif35W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `PIF36` reader - Pending interrupt flag on line 36"]
10pub type Pif36R = crate::BitReader;
11#[doc = "Field `PIF36` writer - Pending interrupt flag on line 36"]
12pub type Pif36W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `PIF37` reader - Pending interrupt flag on line 37"]
14pub type Pif37R = crate::BitReader;
15#[doc = "Field `PIF37` writer - Pending interrupt flag on line 37"]
16pub type Pif37W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `PIF38` reader - Pending interrupt flag on line 38"]
18pub type Pif38R = crate::BitReader;
19#[doc = "Field `PIF38` writer - Pending interrupt flag on line 38"]
20pub type Pif38W<'a, REG> = crate::BitWriter<'a, REG>;
21impl R {
22    #[doc = "Bit 3 - Pending interrupt flag on line 35"]
23    #[inline(always)]
24    pub fn pif35(&self) -> Pif35R {
25        Pif35R::new(((self.bits >> 3) & 1) != 0)
26    }
27    #[doc = "Bit 4 - Pending interrupt flag on line 36"]
28    #[inline(always)]
29    pub fn pif36(&self) -> Pif36R {
30        Pif36R::new(((self.bits >> 4) & 1) != 0)
31    }
32    #[doc = "Bit 5 - Pending interrupt flag on line 37"]
33    #[inline(always)]
34    pub fn pif37(&self) -> Pif37R {
35        Pif37R::new(((self.bits >> 5) & 1) != 0)
36    }
37    #[doc = "Bit 6 - Pending interrupt flag on line 38"]
38    #[inline(always)]
39    pub fn pif38(&self) -> Pif38R {
40        Pif38R::new(((self.bits >> 6) & 1) != 0)
41    }
42}
43impl W {
44    #[doc = "Bit 3 - Pending interrupt flag on line 35"]
45    #[inline(always)]
46    pub fn pif35(&mut self) -> Pif35W<Pr2Spec> {
47        Pif35W::new(self, 3)
48    }
49    #[doc = "Bit 4 - Pending interrupt flag on line 36"]
50    #[inline(always)]
51    pub fn pif36(&mut self) -> Pif36W<Pr2Spec> {
52        Pif36W::new(self, 4)
53    }
54    #[doc = "Bit 5 - Pending interrupt flag on line 37"]
55    #[inline(always)]
56    pub fn pif37(&mut self) -> Pif37W<Pr2Spec> {
57        Pif37W::new(self, 5)
58    }
59    #[doc = "Bit 6 - Pending interrupt flag on line 38"]
60    #[inline(always)]
61    pub fn pif38(&mut self) -> Pif38W<Pr2Spec> {
62        Pif38W::new(self, 6)
63    }
64}
65#[doc = "Pending register\n\nYou can [`read`](crate::Reg::read) this register and get [`pr2::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pr2::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
66pub struct Pr2Spec;
67impl crate::RegisterSpec for Pr2Spec {
68    type Ux = u32;
69}
70#[doc = "`read()` method returns [`pr2::R`](R) reader structure"]
71impl crate::Readable for Pr2Spec {}
72#[doc = "`write(|w| ..)` method takes [`pr2::W`](W) writer structure"]
73impl crate::Writable for Pr2Spec {
74    type Safety = crate::Unsafe;
75}
76#[doc = "`reset()` method sets PR2 to value 0"]
77impl crate::Resettable for Pr2Spec {}