stm32u5/stm32u599/gtzc1_tzic/
fcr1.rs

1///Register `FCR1` writer
2pub type W = crate::W<FCR1rs>;
3///Field `CTIM2F` writer - clear the illegal access flag for TIM2
4pub type CTIM2F_W<'a, REG> = crate::BitWriter<'a, REG>;
5///Field `CTIM3F` writer - clear the illegal access flag for TIM3
6pub type CTIM3F_W<'a, REG> = crate::BitWriter<'a, REG>;
7///Field `CTIM4F` writer - clear the illegal access flag for TIM4
8pub type CTIM4F_W<'a, REG> = crate::BitWriter<'a, REG>;
9///Field `CTIM5F` writer - clear the illegal access flag for TIM5
10pub type CTIM5F_W<'a, REG> = crate::BitWriter<'a, REG>;
11///Field `CTIM6F` writer - clear the illegal access flag for TIM6
12pub type CTIM6F_W<'a, REG> = crate::BitWriter<'a, REG>;
13///Field `CTIM7F` writer - clear the illegal access flag for TIM7
14pub type CTIM7F_W<'a, REG> = crate::BitWriter<'a, REG>;
15///Field `CWWDGF` writer - clear the illegal access flag for WWDG
16pub type CWWDGF_W<'a, REG> = crate::BitWriter<'a, REG>;
17///Field `CIWDGF` writer - clear the illegal access flag for IWDG
18pub type CIWDGF_W<'a, REG> = crate::BitWriter<'a, REG>;
19///Field `CSPI2F` writer - clear the illegal access flag for SPI2
20pub type CSPI2F_W<'a, REG> = crate::BitWriter<'a, REG>;
21///Field `CUSART2F` writer - clear the illegal access flag for USART2
22pub type CUSART2F_W<'a, REG> = crate::BitWriter<'a, REG>;
23///Field `CUSART3F` writer - clear the illegal access flag for USART3
24pub type CUSART3F_W<'a, REG> = crate::BitWriter<'a, REG>;
25///Field `CUART4F` writer - clear the illegal access flag for UART4
26pub type CUART4F_W<'a, REG> = crate::BitWriter<'a, REG>;
27///Field `CUART5F` writer - clear the illegal access flag for UART5
28pub type CUART5F_W<'a, REG> = crate::BitWriter<'a, REG>;
29///Field `CI2C1F` writer - clear the illegal access flag for I2C1
30pub type CI2C1F_W<'a, REG> = crate::BitWriter<'a, REG>;
31///Field `CI2C2F` writer - clear the illegal access flag for I2C2
32pub type CI2C2F_W<'a, REG> = crate::BitWriter<'a, REG>;
33///Field `CCRSF` writer - clear the illegal access flag for CRS
34pub type CCRSF_W<'a, REG> = crate::BitWriter<'a, REG>;
35///Field `CI2C4F` writer - clear the illegal access flag for I2C4
36pub type CI2C4F_W<'a, REG> = crate::BitWriter<'a, REG>;
37///Field `CLPTIM2F` writer - clear the illegal access flag for LPTIM2
38pub type CLPTIM2F_W<'a, REG> = crate::BitWriter<'a, REG>;
39///Field `CFDCAN1F` writer - clear the illegal access flag for FDCAN1
40pub type CFDCAN1F_W<'a, REG> = crate::BitWriter<'a, REG>;
41///Field `CUCPD1F` writer - clear the illegal access flag for UCPD1
42pub type CUCPD1F_W<'a, REG> = crate::BitWriter<'a, REG>;
43///Field `CUSART6F` writer - clear the illegal access flag for USART6
44pub type CUSART6F_W<'a, REG> = crate::BitWriter<'a, REG>;
45///Field `CI2C5F` writer - clear the illegal access flag for I2C5
46pub type CI2C5F_W<'a, REG> = crate::BitWriter<'a, REG>;
47///Field `CI2C6F` writer - clear the illegal access flag for I2C6
48pub type CI2C6F_W<'a, REG> = crate::BitWriter<'a, REG>;
49impl core::fmt::Debug for crate::generic::Reg<FCR1rs> {
50    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
51        write!(f, "(not readable)")
52    }
53}
54impl W {
55    ///Bit 0 - clear the illegal access flag for TIM2
56    #[inline(always)]
57    pub fn ctim2f(&mut self) -> CTIM2F_W<FCR1rs> {
58        CTIM2F_W::new(self, 0)
59    }
60    ///Bit 1 - clear the illegal access flag for TIM3
61    #[inline(always)]
62    pub fn ctim3f(&mut self) -> CTIM3F_W<FCR1rs> {
63        CTIM3F_W::new(self, 1)
64    }
65    ///Bit 2 - clear the illegal access flag for TIM4
66    #[inline(always)]
67    pub fn ctim4f(&mut self) -> CTIM4F_W<FCR1rs> {
68        CTIM4F_W::new(self, 2)
69    }
70    ///Bit 3 - clear the illegal access flag for TIM5
71    #[inline(always)]
72    pub fn ctim5f(&mut self) -> CTIM5F_W<FCR1rs> {
73        CTIM5F_W::new(self, 3)
74    }
75    ///Bit 4 - clear the illegal access flag for TIM6
76    #[inline(always)]
77    pub fn ctim6f(&mut self) -> CTIM6F_W<FCR1rs> {
78        CTIM6F_W::new(self, 4)
79    }
80    ///Bit 5 - clear the illegal access flag for TIM7
81    #[inline(always)]
82    pub fn ctim7f(&mut self) -> CTIM7F_W<FCR1rs> {
83        CTIM7F_W::new(self, 5)
84    }
85    ///Bit 6 - clear the illegal access flag for WWDG
86    #[inline(always)]
87    pub fn cwwdgf(&mut self) -> CWWDGF_W<FCR1rs> {
88        CWWDGF_W::new(self, 6)
89    }
90    ///Bit 7 - clear the illegal access flag for IWDG
91    #[inline(always)]
92    pub fn ciwdgf(&mut self) -> CIWDGF_W<FCR1rs> {
93        CIWDGF_W::new(self, 7)
94    }
95    ///Bit 8 - clear the illegal access flag for SPI2
96    #[inline(always)]
97    pub fn cspi2f(&mut self) -> CSPI2F_W<FCR1rs> {
98        CSPI2F_W::new(self, 8)
99    }
100    ///Bit 9 - clear the illegal access flag for USART2
101    #[inline(always)]
102    pub fn cusart2f(&mut self) -> CUSART2F_W<FCR1rs> {
103        CUSART2F_W::new(self, 9)
104    }
105    ///Bit 10 - clear the illegal access flag for USART3
106    #[inline(always)]
107    pub fn cusart3f(&mut self) -> CUSART3F_W<FCR1rs> {
108        CUSART3F_W::new(self, 10)
109    }
110    ///Bit 11 - clear the illegal access flag for UART4
111    #[inline(always)]
112    pub fn cuart4f(&mut self) -> CUART4F_W<FCR1rs> {
113        CUART4F_W::new(self, 11)
114    }
115    ///Bit 12 - clear the illegal access flag for UART5
116    #[inline(always)]
117    pub fn cuart5f(&mut self) -> CUART5F_W<FCR1rs> {
118        CUART5F_W::new(self, 12)
119    }
120    ///Bit 13 - clear the illegal access flag for I2C1
121    #[inline(always)]
122    pub fn ci2c1f(&mut self) -> CI2C1F_W<FCR1rs> {
123        CI2C1F_W::new(self, 13)
124    }
125    ///Bit 14 - clear the illegal access flag for I2C2
126    #[inline(always)]
127    pub fn ci2c2f(&mut self) -> CI2C2F_W<FCR1rs> {
128        CI2C2F_W::new(self, 14)
129    }
130    ///Bit 15 - clear the illegal access flag for CRS
131    #[inline(always)]
132    pub fn ccrsf(&mut self) -> CCRSF_W<FCR1rs> {
133        CCRSF_W::new(self, 15)
134    }
135    ///Bit 16 - clear the illegal access flag for I2C4
136    #[inline(always)]
137    pub fn ci2c4f(&mut self) -> CI2C4F_W<FCR1rs> {
138        CI2C4F_W::new(self, 16)
139    }
140    ///Bit 17 - clear the illegal access flag for LPTIM2
141    #[inline(always)]
142    pub fn clptim2f(&mut self) -> CLPTIM2F_W<FCR1rs> {
143        CLPTIM2F_W::new(self, 17)
144    }
145    ///Bit 18 - clear the illegal access flag for FDCAN1
146    #[inline(always)]
147    pub fn cfdcan1f(&mut self) -> CFDCAN1F_W<FCR1rs> {
148        CFDCAN1F_W::new(self, 18)
149    }
150    ///Bit 19 - clear the illegal access flag for UCPD1
151    #[inline(always)]
152    pub fn cucpd1f(&mut self) -> CUCPD1F_W<FCR1rs> {
153        CUCPD1F_W::new(self, 19)
154    }
155    ///Bit 21 - clear the illegal access flag for USART6
156    #[inline(always)]
157    pub fn cusart6f(&mut self) -> CUSART6F_W<FCR1rs> {
158        CUSART6F_W::new(self, 21)
159    }
160    ///Bit 22 - clear the illegal access flag for I2C5
161    #[inline(always)]
162    pub fn ci2c5f(&mut self) -> CI2C5F_W<FCR1rs> {
163        CI2C5F_W::new(self, 22)
164    }
165    ///Bit 23 - clear the illegal access flag for I2C6
166    #[inline(always)]
167    pub fn ci2c6f(&mut self) -> CI2C6F_W<FCR1rs> {
168        CI2C6F_W::new(self, 23)
169    }
170}
171/**TZIC flag clear register 1
172
173You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fcr1::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
174
175See register [structure](https://stm32-rs.github.io/stm32-rs/STM32U599.html#GTZC1_TZIC:FCR1)*/
176pub struct FCR1rs;
177impl crate::RegisterSpec for FCR1rs {
178    type Ux = u32;
179}
180///`write(|w| ..)` method takes [`fcr1::W`](W) writer structure
181impl crate::Writable for FCR1rs {
182    type Safety = crate::Unsafe;
183}
184///`reset()` method sets FCR1 to value 0
185impl crate::Resettable for FCR1rs {}