n32g4/n32g430/afio/
exti_cfg2.rs1pub type R = crate::R<ExtiCfg2Spec>;
3pub type W = crate::W<ExtiCfg2Spec>;
5pub type Exti4R = crate::FieldReader;
7pub type Exti4W<'a, REG> = crate::FieldWriter<'a, REG, 6>;
9pub type Exti5R = crate::FieldReader;
11pub type Exti5W<'a, REG> = crate::FieldWriter<'a, REG, 6>;
13pub type Exti6R = crate::FieldReader;
15pub type Exti6W<'a, REG> = crate::FieldWriter<'a, REG, 6>;
17pub type Exti7R = crate::FieldReader;
19pub type Exti7W<'a, REG> = crate::FieldWriter<'a, REG, 6>;
21impl R {
22 #[inline(always)]
24 pub fn exti4(&self) -> Exti4R {
25 Exti4R::new((self.bits & 0x3f) as u8)
26 }
27 #[inline(always)]
29 pub fn exti5(&self) -> Exti5R {
30 Exti5R::new(((self.bits >> 8) & 0x3f) as u8)
31 }
32 #[inline(always)]
34 pub fn exti6(&self) -> Exti6R {
35 Exti6R::new(((self.bits >> 16) & 0x3f) as u8)
36 }
37 #[inline(always)]
39 pub fn exti7(&self) -> Exti7R {
40 Exti7R::new(((self.bits >> 24) & 0x3f) as u8)
41 }
42}
43impl W {
44 #[inline(always)]
46 #[must_use]
47 pub fn exti4(&mut self) -> Exti4W<ExtiCfg2Spec> {
48 Exti4W::new(self, 0)
49 }
50 #[inline(always)]
52 #[must_use]
53 pub fn exti5(&mut self) -> Exti5W<ExtiCfg2Spec> {
54 Exti5W::new(self, 8)
55 }
56 #[inline(always)]
58 #[must_use]
59 pub fn exti6(&mut self) -> Exti6W<ExtiCfg2Spec> {
60 Exti6W::new(self, 16)
61 }
62 #[inline(always)]
64 #[must_use]
65 pub fn exti7(&mut self) -> Exti7W<ExtiCfg2Spec> {
66 Exti7W::new(self, 24)
67 }
68}
69pub struct ExtiCfg2Spec;
73impl crate::RegisterSpec for ExtiCfg2Spec {
74 type Ux = u32;
75}
76impl crate::Readable for ExtiCfg2Spec {}
78impl crate::Writable for ExtiCfg2Spec {
80 type Safety = crate::Unsafe;
81 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
82 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
83}
84impl crate::Resettable for ExtiCfg2Spec {
86 const RESET_VALUE: u32 = 0;
87}