stm32u5/stm32u5a9/dsi/
wifcr.rs

1///Register `WIFCR` writer
2pub type W = crate::W<WIFCRrs>;
3///Field `CTEIF` writer - Clear tearing effect interrupt flag Write 1 clears the TEIF flag in the DSI_WSR register.
4pub type CTEIF_W<'a, REG> = crate::BitWriter<'a, REG>;
5///Field `CERIF` writer - Clear end of refresh interrupt flag Write 1 clears the ERIF flag in the DSI_WSR register.
6pub type CERIF_W<'a, REG> = crate::BitWriter<'a, REG>;
7///Field `CPLLLIF` writer - Clear PLL lock interrupt flag Write 1 clears the PLLLIF flag in the DSI_WSR register.
8pub type CPLLLIF_W<'a, REG> = crate::BitWriter<'a, REG>;
9///Field `CPLLUIF` writer - Clear PLL unlock interrupt flag Write 1 clears the PLLUIF flag in the DSI_WSR register.
10pub type CPLLUIF_W<'a, REG> = crate::BitWriter<'a, REG>;
11impl core::fmt::Debug for crate::generic::Reg<WIFCRrs> {
12    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
13        write!(f, "(not readable)")
14    }
15}
16impl W {
17    ///Bit 0 - Clear tearing effect interrupt flag Write 1 clears the TEIF flag in the DSI_WSR register.
18    #[inline(always)]
19    pub fn cteif(&mut self) -> CTEIF_W<WIFCRrs> {
20        CTEIF_W::new(self, 0)
21    }
22    ///Bit 1 - Clear end of refresh interrupt flag Write 1 clears the ERIF flag in the DSI_WSR register.
23    #[inline(always)]
24    pub fn cerif(&mut self) -> CERIF_W<WIFCRrs> {
25        CERIF_W::new(self, 1)
26    }
27    ///Bit 9 - Clear PLL lock interrupt flag Write 1 clears the PLLLIF flag in the DSI_WSR register.
28    #[inline(always)]
29    pub fn cplllif(&mut self) -> CPLLLIF_W<WIFCRrs> {
30        CPLLLIF_W::new(self, 9)
31    }
32    ///Bit 10 - Clear PLL unlock interrupt flag Write 1 clears the PLLUIF flag in the DSI_WSR register.
33    #[inline(always)]
34    pub fn cplluif(&mut self) -> CPLLUIF_W<WIFCRrs> {
35        CPLLUIF_W::new(self, 10)
36    }
37}
38/**DSI Wrapper interrupt flag clear register
39
40You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`wifcr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
41
42See register [structure](https://stm32-rs.github.io/stm32-rs/STM32U5A9.html#DSI:WIFCR)*/
43pub struct WIFCRrs;
44impl crate::RegisterSpec for WIFCRrs {
45    type Ux = u32;
46}
47///`write(|w| ..)` method takes [`wifcr::W`](W) writer structure
48impl crate::Writable for WIFCRrs {
49    type Safety = crate::Unsafe;
50}
51///`reset()` method sets WIFCR to value 0
52impl crate::Resettable for WIFCRrs {}