stm32l4/stm32l4x1/syscfg/
exticr4.rs1pub type R = crate::R<EXTICR4rs>;
3pub type W = crate::W<EXTICR4rs>;
5pub type EXTI12_R = crate::FieldReader;
7pub type EXTI12_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
9pub type EXTI13_R = crate::FieldReader;
11pub type EXTI13_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
13pub type EXTI14_R = crate::FieldReader;
15pub type EXTI14_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
17pub type EXTI15_R = crate::FieldReader;
19pub type EXTI15_W<'a, REG> = crate::FieldWriter<'a, REG, 3>;
21impl R {
22 #[inline(always)]
24 pub fn exti12(&self) -> EXTI12_R {
25 EXTI12_R::new((self.bits & 7) as u8)
26 }
27 #[inline(always)]
29 pub fn exti13(&self) -> EXTI13_R {
30 EXTI13_R::new(((self.bits >> 4) & 7) as u8)
31 }
32 #[inline(always)]
34 pub fn exti14(&self) -> EXTI14_R {
35 EXTI14_R::new(((self.bits >> 8) & 7) as u8)
36 }
37 #[inline(always)]
39 pub fn exti15(&self) -> EXTI15_R {
40 EXTI15_R::new(((self.bits >> 12) & 7) as u8)
41 }
42}
43impl core::fmt::Debug for R {
44 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
45 f.debug_struct("EXTICR4")
46 .field("exti15", &self.exti15())
47 .field("exti14", &self.exti14())
48 .field("exti13", &self.exti13())
49 .field("exti12", &self.exti12())
50 .finish()
51 }
52}
53impl W {
54 #[inline(always)]
56 pub fn exti12(&mut self) -> EXTI12_W<EXTICR4rs> {
57 EXTI12_W::new(self, 0)
58 }
59 #[inline(always)]
61 pub fn exti13(&mut self) -> EXTI13_W<EXTICR4rs> {
62 EXTI13_W::new(self, 4)
63 }
64 #[inline(always)]
66 pub fn exti14(&mut self) -> EXTI14_W<EXTICR4rs> {
67 EXTI14_W::new(self, 8)
68 }
69 #[inline(always)]
71 pub fn exti15(&mut self) -> EXTI15_W<EXTICR4rs> {
72 EXTI15_W::new(self, 12)
73 }
74}
75pub struct EXTICR4rs;
81impl crate::RegisterSpec for EXTICR4rs {
82 type Ux = u32;
83}
84impl crate::Readable for EXTICR4rs {}
86impl crate::Writable for EXTICR4rs {
88 type Safety = crate::Unsafe;
89}
90impl crate::Resettable for EXTICR4rs {}