stm32g4_staging/stm32g441/tamp/
scr.rs1pub type R = crate::R<SCRrs>;
3pub type W = crate::W<SCRrs>;
5pub type CTAMP1F_R = crate::BitReader;
7pub type CTAMP1F_W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type CTAMP2F_R = crate::BitReader;
11pub type CTAMP2F_W<'a, REG> = crate::BitWriter<'a, REG>;
13pub type CTAMP3F_R = crate::BitReader;
15pub type CTAMP3F_W<'a, REG> = crate::BitWriter<'a, REG>;
17pub type CITAMP3F_R = crate::BitReader;
19pub type CITAMP3F_W<'a, REG> = crate::BitWriter<'a, REG>;
21pub type CITAMP4F_R = crate::BitReader;
23pub type CITAMP4F_W<'a, REG> = crate::BitWriter<'a, REG>;
25pub type CITAMP5F_R = crate::BitReader;
27pub type CITAMP5F_W<'a, REG> = crate::BitWriter<'a, REG>;
29pub type CITAMP6F_R = crate::BitReader;
31pub type CITAMP6F_W<'a, REG> = crate::BitWriter<'a, REG>;
33impl R {
34 #[inline(always)]
36 pub fn ctamp1f(&self) -> CTAMP1F_R {
37 CTAMP1F_R::new((self.bits & 1) != 0)
38 }
39 #[inline(always)]
41 pub fn ctamp2f(&self) -> CTAMP2F_R {
42 CTAMP2F_R::new(((self.bits >> 1) & 1) != 0)
43 }
44 #[inline(always)]
46 pub fn ctamp3f(&self) -> CTAMP3F_R {
47 CTAMP3F_R::new(((self.bits >> 2) & 1) != 0)
48 }
49 #[inline(always)]
51 pub fn citamp3f(&self) -> CITAMP3F_R {
52 CITAMP3F_R::new(((self.bits >> 18) & 1) != 0)
53 }
54 #[inline(always)]
56 pub fn citamp4f(&self) -> CITAMP4F_R {
57 CITAMP4F_R::new(((self.bits >> 19) & 1) != 0)
58 }
59 #[inline(always)]
61 pub fn citamp5f(&self) -> CITAMP5F_R {
62 CITAMP5F_R::new(((self.bits >> 20) & 1) != 0)
63 }
64 #[inline(always)]
66 pub fn citamp6f(&self) -> CITAMP6F_R {
67 CITAMP6F_R::new(((self.bits >> 21) & 1) != 0)
68 }
69}
70impl core::fmt::Debug for R {
71 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
72 f.debug_struct("SCR")
73 .field("ctamp1f", &self.ctamp1f())
74 .field("ctamp2f", &self.ctamp2f())
75 .field("ctamp3f", &self.ctamp3f())
76 .field("citamp3f", &self.citamp3f())
77 .field("citamp4f", &self.citamp4f())
78 .field("citamp5f", &self.citamp5f())
79 .field("citamp6f", &self.citamp6f())
80 .finish()
81 }
82}
83impl W {
84 #[inline(always)]
86 pub fn ctamp1f(&mut self) -> CTAMP1F_W<SCRrs> {
87 CTAMP1F_W::new(self, 0)
88 }
89 #[inline(always)]
91 pub fn ctamp2f(&mut self) -> CTAMP2F_W<SCRrs> {
92 CTAMP2F_W::new(self, 1)
93 }
94 #[inline(always)]
96 pub fn ctamp3f(&mut self) -> CTAMP3F_W<SCRrs> {
97 CTAMP3F_W::new(self, 2)
98 }
99 #[inline(always)]
101 pub fn citamp3f(&mut self) -> CITAMP3F_W<SCRrs> {
102 CITAMP3F_W::new(self, 18)
103 }
104 #[inline(always)]
106 pub fn citamp4f(&mut self) -> CITAMP4F_W<SCRrs> {
107 CITAMP4F_W::new(self, 19)
108 }
109 #[inline(always)]
111 pub fn citamp5f(&mut self) -> CITAMP5F_W<SCRrs> {
112 CITAMP5F_W::new(self, 20)
113 }
114 #[inline(always)]
116 pub fn citamp6f(&mut self) -> CITAMP6F_W<SCRrs> {
117 CITAMP6F_W::new(self, 21)
118 }
119}
120pub struct SCRrs;
126impl crate::RegisterSpec for SCRrs {
127 type Ux = u32;
128}
129impl crate::Readable for SCRrs {}
131impl crate::Writable for SCRrs {
133 type Safety = crate::Unsafe;
134 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
135 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
136}
137impl crate::Resettable for SCRrs {
139 const RESET_VALUE: u32 = 0;
140}