stm32u5/stm32u575/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>;
43impl core::fmt::Debug for crate::generic::Reg<FCR1rs> {
44    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
45        write!(f, "(not readable)")
46    }
47}
48impl W {
49    ///Bit 0 - clear the illegal access flag for TIM2
50    #[inline(always)]
51    pub fn ctim2f(&mut self) -> CTIM2F_W<FCR1rs> {
52        CTIM2F_W::new(self, 0)
53    }
54    ///Bit 1 - clear the illegal access flag for TIM3
55    #[inline(always)]
56    pub fn ctim3f(&mut self) -> CTIM3F_W<FCR1rs> {
57        CTIM3F_W::new(self, 1)
58    }
59    ///Bit 2 - clear the illegal access flag for TIM4
60    #[inline(always)]
61    pub fn ctim4f(&mut self) -> CTIM4F_W<FCR1rs> {
62        CTIM4F_W::new(self, 2)
63    }
64    ///Bit 3 - clear the illegal access flag for TIM5
65    #[inline(always)]
66    pub fn ctim5f(&mut self) -> CTIM5F_W<FCR1rs> {
67        CTIM5F_W::new(self, 3)
68    }
69    ///Bit 4 - clear the illegal access flag for TIM6
70    #[inline(always)]
71    pub fn ctim6f(&mut self) -> CTIM6F_W<FCR1rs> {
72        CTIM6F_W::new(self, 4)
73    }
74    ///Bit 5 - clear the illegal access flag for TIM7
75    #[inline(always)]
76    pub fn ctim7f(&mut self) -> CTIM7F_W<FCR1rs> {
77        CTIM7F_W::new(self, 5)
78    }
79    ///Bit 6 - clear the illegal access flag for WWDG
80    #[inline(always)]
81    pub fn cwwdgf(&mut self) -> CWWDGF_W<FCR1rs> {
82        CWWDGF_W::new(self, 6)
83    }
84    ///Bit 7 - clear the illegal access flag for IWDG
85    #[inline(always)]
86    pub fn ciwdgf(&mut self) -> CIWDGF_W<FCR1rs> {
87        CIWDGF_W::new(self, 7)
88    }
89    ///Bit 8 - clear the illegal access flag for SPI2
90    #[inline(always)]
91    pub fn cspi2f(&mut self) -> CSPI2F_W<FCR1rs> {
92        CSPI2F_W::new(self, 8)
93    }
94    ///Bit 9 - clear the illegal access flag for USART2
95    #[inline(always)]
96    pub fn cusart2f(&mut self) -> CUSART2F_W<FCR1rs> {
97        CUSART2F_W::new(self, 9)
98    }
99    ///Bit 10 - clear the illegal access flag for USART3
100    #[inline(always)]
101    pub fn cusart3f(&mut self) -> CUSART3F_W<FCR1rs> {
102        CUSART3F_W::new(self, 10)
103    }
104    ///Bit 11 - clear the illegal access flag for UART4
105    #[inline(always)]
106    pub fn cuart4f(&mut self) -> CUART4F_W<FCR1rs> {
107        CUART4F_W::new(self, 11)
108    }
109    ///Bit 12 - clear the illegal access flag for UART5
110    #[inline(always)]
111    pub fn cuart5f(&mut self) -> CUART5F_W<FCR1rs> {
112        CUART5F_W::new(self, 12)
113    }
114    ///Bit 13 - clear the illegal access flag for I2C1
115    #[inline(always)]
116    pub fn ci2c1f(&mut self) -> CI2C1F_W<FCR1rs> {
117        CI2C1F_W::new(self, 13)
118    }
119    ///Bit 14 - clear the illegal access flag for I2C2
120    #[inline(always)]
121    pub fn ci2c2f(&mut self) -> CI2C2F_W<FCR1rs> {
122        CI2C2F_W::new(self, 14)
123    }
124    ///Bit 15 - clear the illegal access flag for CRS
125    #[inline(always)]
126    pub fn ccrsf(&mut self) -> CCRSF_W<FCR1rs> {
127        CCRSF_W::new(self, 15)
128    }
129    ///Bit 16 - clear the illegal access flag for I2C4
130    #[inline(always)]
131    pub fn ci2c4f(&mut self) -> CI2C4F_W<FCR1rs> {
132        CI2C4F_W::new(self, 16)
133    }
134    ///Bit 17 - clear the illegal access flag for LPTIM2
135    #[inline(always)]
136    pub fn clptim2f(&mut self) -> CLPTIM2F_W<FCR1rs> {
137        CLPTIM2F_W::new(self, 17)
138    }
139    ///Bit 18 - clear the illegal access flag for FDCAN1
140    #[inline(always)]
141    pub fn cfdcan1f(&mut self) -> CFDCAN1F_W<FCR1rs> {
142        CFDCAN1F_W::new(self, 18)
143    }
144    ///Bit 19 - clear the illegal access flag for UCPD1
145    #[inline(always)]
146    pub fn cucpd1f(&mut self) -> CUCPD1F_W<FCR1rs> {
147        CUCPD1F_W::new(self, 19)
148    }
149}
150/**TZIC flag clear register 1
151
152You 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).
153
154See register [structure](https://stm32-rs.github.io/stm32-rs/STM32U575.html#GTZC1_TZIC:FCR1)*/
155pub struct FCR1rs;
156impl crate::RegisterSpec for FCR1rs {
157    type Ux = u32;
158}
159///`write(|w| ..)` method takes [`fcr1::W`](W) writer structure
160impl crate::Writable for FCR1rs {
161    type Safety = crate::Unsafe;
162}
163///`reset()` method sets FCR1 to value 0
164impl crate::Resettable for FCR1rs {}