stm32f7_staging/stm32f779/dsi/
isr1.rs

1///Register `ISR1` reader
2pub type R = crate::R<ISR1rs>;
3///Field `TOHSTX` reader - Timeout High-Speed Transmission
4pub type TOHSTX_R = crate::BitReader;
5///Field `TOLPRX` reader - Timeout Low-Power Reception
6pub type TOLPRX_R = crate::BitReader;
7///Field `ECCSE` reader - ECC Single-bit Error
8pub type ECCSE_R = crate::BitReader;
9///Field `ECCME` reader - ECC Multi-bit Error
10pub type ECCME_R = crate::BitReader;
11///Field `CRCE` reader - CRC Error
12pub type CRCE_R = crate::BitReader;
13///Field `PSE` reader - Packet Size Error
14pub type PSE_R = crate::BitReader;
15///Field `EOTPE` reader - EoTp Error
16pub type EOTPE_R = crate::BitReader;
17///Field `LPWRE` reader - LTDC Payload Write Error
18pub type LPWRE_R = crate::BitReader;
19///Field `GCWRE` reader - Generic Command Write Error
20pub type GCWRE_R = crate::BitReader;
21///Field `GPWRE` reader - Generic Payload Write Error
22pub type GPWRE_R = crate::BitReader;
23///Field `GPTXE` reader - Generic Payload Transmit Error
24pub type GPTXE_R = crate::BitReader;
25///Field `GPRDE` reader - Generic Payload Read Error
26pub type GPRDE_R = crate::BitReader;
27///Field `GPRXE` reader - Generic Payload Receive Error
28pub type GPRXE_R = crate::BitReader;
29impl R {
30    ///Bit 0 - Timeout High-Speed Transmission
31    #[inline(always)]
32    pub fn tohstx(&self) -> TOHSTX_R {
33        TOHSTX_R::new((self.bits & 1) != 0)
34    }
35    ///Bit 1 - Timeout Low-Power Reception
36    #[inline(always)]
37    pub fn tolprx(&self) -> TOLPRX_R {
38        TOLPRX_R::new(((self.bits >> 1) & 1) != 0)
39    }
40    ///Bit 2 - ECC Single-bit Error
41    #[inline(always)]
42    pub fn eccse(&self) -> ECCSE_R {
43        ECCSE_R::new(((self.bits >> 2) & 1) != 0)
44    }
45    ///Bit 3 - ECC Multi-bit Error
46    #[inline(always)]
47    pub fn eccme(&self) -> ECCME_R {
48        ECCME_R::new(((self.bits >> 3) & 1) != 0)
49    }
50    ///Bit 4 - CRC Error
51    #[inline(always)]
52    pub fn crce(&self) -> CRCE_R {
53        CRCE_R::new(((self.bits >> 4) & 1) != 0)
54    }
55    ///Bit 5 - Packet Size Error
56    #[inline(always)]
57    pub fn pse(&self) -> PSE_R {
58        PSE_R::new(((self.bits >> 5) & 1) != 0)
59    }
60    ///Bit 6 - EoTp Error
61    #[inline(always)]
62    pub fn eotpe(&self) -> EOTPE_R {
63        EOTPE_R::new(((self.bits >> 6) & 1) != 0)
64    }
65    ///Bit 7 - LTDC Payload Write Error
66    #[inline(always)]
67    pub fn lpwre(&self) -> LPWRE_R {
68        LPWRE_R::new(((self.bits >> 7) & 1) != 0)
69    }
70    ///Bit 8 - Generic Command Write Error
71    #[inline(always)]
72    pub fn gcwre(&self) -> GCWRE_R {
73        GCWRE_R::new(((self.bits >> 8) & 1) != 0)
74    }
75    ///Bit 9 - Generic Payload Write Error
76    #[inline(always)]
77    pub fn gpwre(&self) -> GPWRE_R {
78        GPWRE_R::new(((self.bits >> 9) & 1) != 0)
79    }
80    ///Bit 10 - Generic Payload Transmit Error
81    #[inline(always)]
82    pub fn gptxe(&self) -> GPTXE_R {
83        GPTXE_R::new(((self.bits >> 10) & 1) != 0)
84    }
85    ///Bit 11 - Generic Payload Read Error
86    #[inline(always)]
87    pub fn gprde(&self) -> GPRDE_R {
88        GPRDE_R::new(((self.bits >> 11) & 1) != 0)
89    }
90    ///Bit 12 - Generic Payload Receive Error
91    #[inline(always)]
92    pub fn gprxe(&self) -> GPRXE_R {
93        GPRXE_R::new(((self.bits >> 12) & 1) != 0)
94    }
95}
96impl core::fmt::Debug for R {
97    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
98        f.debug_struct("ISR1")
99            .field("tohstx", &self.tohstx())
100            .field("tolprx", &self.tolprx())
101            .field("eccse", &self.eccse())
102            .field("eccme", &self.eccme())
103            .field("crce", &self.crce())
104            .field("pse", &self.pse())
105            .field("eotpe", &self.eotpe())
106            .field("lpwre", &self.lpwre())
107            .field("gcwre", &self.gcwre())
108            .field("gpwre", &self.gpwre())
109            .field("gptxe", &self.gptxe())
110            .field("gprde", &self.gprde())
111            .field("gprxe", &self.gprxe())
112            .finish()
113    }
114}
115/**DSI Host Interrupt & Status Register 1
116
117You can [`read`](crate::Reg::read) this register and get [`isr1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
118
119See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F779.html#DSI:ISR1)*/
120pub struct ISR1rs;
121impl crate::RegisterSpec for ISR1rs {
122    type Ux = u32;
123}
124///`read()` method returns [`isr1::R`](R) reader structure
125impl crate::Readable for ISR1rs {}
126///`reset()` method sets ISR1 to value 0
127impl crate::Resettable for ISR1rs {}