stm32l4x2_pac/dfsdm/flt/
isr.rs

1#[doc = r" Value read from the register"]
2pub struct R {
3    bits: u32,
4}
5impl super::ISR {
6    #[doc = r" Reads the contents of the register"]
7    #[inline]
8    pub fn read(&self) -> R {
9        R {
10            bits: self.register.get(),
11        }
12    }
13}
14#[doc = r" Value of the field"]
15pub struct SCDFR {
16    bits: u8,
17}
18impl SCDFR {
19    #[doc = r" Value of the field as raw bits"]
20    #[inline]
21    pub fn bits(&self) -> u8 {
22        self.bits
23    }
24}
25#[doc = r" Value of the field"]
26pub struct CKABFR {
27    bits: u8,
28}
29impl CKABFR {
30    #[doc = r" Value of the field as raw bits"]
31    #[inline]
32    pub fn bits(&self) -> u8 {
33        self.bits
34    }
35}
36#[doc = r" Value of the field"]
37pub struct RCIPR {
38    bits: bool,
39}
40impl RCIPR {
41    #[doc = r" Value of the field as raw bits"]
42    #[inline]
43    pub fn bit(&self) -> bool {
44        self.bits
45    }
46    #[doc = r" Returns `true` if the bit is clear (0)"]
47    #[inline]
48    pub fn bit_is_clear(&self) -> bool {
49        !self.bit()
50    }
51    #[doc = r" Returns `true` if the bit is set (1)"]
52    #[inline]
53    pub fn bit_is_set(&self) -> bool {
54        self.bit()
55    }
56}
57#[doc = r" Value of the field"]
58pub struct JCIPR {
59    bits: bool,
60}
61impl JCIPR {
62    #[doc = r" Value of the field as raw bits"]
63    #[inline]
64    pub fn bit(&self) -> bool {
65        self.bits
66    }
67    #[doc = r" Returns `true` if the bit is clear (0)"]
68    #[inline]
69    pub fn bit_is_clear(&self) -> bool {
70        !self.bit()
71    }
72    #[doc = r" Returns `true` if the bit is set (1)"]
73    #[inline]
74    pub fn bit_is_set(&self) -> bool {
75        self.bit()
76    }
77}
78#[doc = r" Value of the field"]
79pub struct AWDFR {
80    bits: bool,
81}
82impl AWDFR {
83    #[doc = r" Value of the field as raw bits"]
84    #[inline]
85    pub fn bit(&self) -> bool {
86        self.bits
87    }
88    #[doc = r" Returns `true` if the bit is clear (0)"]
89    #[inline]
90    pub fn bit_is_clear(&self) -> bool {
91        !self.bit()
92    }
93    #[doc = r" Returns `true` if the bit is set (1)"]
94    #[inline]
95    pub fn bit_is_set(&self) -> bool {
96        self.bit()
97    }
98}
99#[doc = r" Value of the field"]
100pub struct ROVRFR {
101    bits: bool,
102}
103impl ROVRFR {
104    #[doc = r" Value of the field as raw bits"]
105    #[inline]
106    pub fn bit(&self) -> bool {
107        self.bits
108    }
109    #[doc = r" Returns `true` if the bit is clear (0)"]
110    #[inline]
111    pub fn bit_is_clear(&self) -> bool {
112        !self.bit()
113    }
114    #[doc = r" Returns `true` if the bit is set (1)"]
115    #[inline]
116    pub fn bit_is_set(&self) -> bool {
117        self.bit()
118    }
119}
120#[doc = r" Value of the field"]
121pub struct JOVRFR {
122    bits: bool,
123}
124impl JOVRFR {
125    #[doc = r" Value of the field as raw bits"]
126    #[inline]
127    pub fn bit(&self) -> bool {
128        self.bits
129    }
130    #[doc = r" Returns `true` if the bit is clear (0)"]
131    #[inline]
132    pub fn bit_is_clear(&self) -> bool {
133        !self.bit()
134    }
135    #[doc = r" Returns `true` if the bit is set (1)"]
136    #[inline]
137    pub fn bit_is_set(&self) -> bool {
138        self.bit()
139    }
140}
141#[doc = r" Value of the field"]
142pub struct REOCFR {
143    bits: bool,
144}
145impl REOCFR {
146    #[doc = r" Value of the field as raw bits"]
147    #[inline]
148    pub fn bit(&self) -> bool {
149        self.bits
150    }
151    #[doc = r" Returns `true` if the bit is clear (0)"]
152    #[inline]
153    pub fn bit_is_clear(&self) -> bool {
154        !self.bit()
155    }
156    #[doc = r" Returns `true` if the bit is set (1)"]
157    #[inline]
158    pub fn bit_is_set(&self) -> bool {
159        self.bit()
160    }
161}
162#[doc = r" Value of the field"]
163pub struct JEOCFR {
164    bits: bool,
165}
166impl JEOCFR {
167    #[doc = r" Value of the field as raw bits"]
168    #[inline]
169    pub fn bit(&self) -> bool {
170        self.bits
171    }
172    #[doc = r" Returns `true` if the bit is clear (0)"]
173    #[inline]
174    pub fn bit_is_clear(&self) -> bool {
175        !self.bit()
176    }
177    #[doc = r" Returns `true` if the bit is set (1)"]
178    #[inline]
179    pub fn bit_is_set(&self) -> bool {
180        self.bit()
181    }
182}
183impl R {
184    #[doc = r" Value of the register as raw bits"]
185    #[inline]
186    pub fn bits(&self) -> u32 {
187        self.bits
188    }
189    #[doc = "Bits 24:31 - short-circuit detector flag"]
190    #[inline]
191    pub fn scdf(&self) -> SCDFR {
192        let bits = {
193            const MASK: u8 = 255;
194            const OFFSET: u8 = 24;
195            ((self.bits >> OFFSET) & MASK as u32) as u8
196        };
197        SCDFR { bits }
198    }
199    #[doc = "Bits 16:23 - Clock absence flag"]
200    #[inline]
201    pub fn ckabf(&self) -> CKABFR {
202        let bits = {
203            const MASK: u8 = 255;
204            const OFFSET: u8 = 16;
205            ((self.bits >> OFFSET) & MASK as u32) as u8
206        };
207        CKABFR { bits }
208    }
209    #[doc = "Bit 14 - Regular conversion in progress status"]
210    #[inline]
211    pub fn rcip(&self) -> RCIPR {
212        let bits = {
213            const MASK: bool = true;
214            const OFFSET: u8 = 14;
215            ((self.bits >> OFFSET) & MASK as u32) != 0
216        };
217        RCIPR { bits }
218    }
219    #[doc = "Bit 13 - Injected conversion in progress status"]
220    #[inline]
221    pub fn jcip(&self) -> JCIPR {
222        let bits = {
223            const MASK: bool = true;
224            const OFFSET: u8 = 13;
225            ((self.bits >> OFFSET) & MASK as u32) != 0
226        };
227        JCIPR { bits }
228    }
229    #[doc = "Bit 4 - Analog watchdog"]
230    #[inline]
231    pub fn awdf(&self) -> AWDFR {
232        let bits = {
233            const MASK: bool = true;
234            const OFFSET: u8 = 4;
235            ((self.bits >> OFFSET) & MASK as u32) != 0
236        };
237        AWDFR { bits }
238    }
239    #[doc = "Bit 3 - Regular conversion overrun flag"]
240    #[inline]
241    pub fn rovrf(&self) -> ROVRFR {
242        let bits = {
243            const MASK: bool = true;
244            const OFFSET: u8 = 3;
245            ((self.bits >> OFFSET) & MASK as u32) != 0
246        };
247        ROVRFR { bits }
248    }
249    #[doc = "Bit 2 - Injected conversion overrun flag"]
250    #[inline]
251    pub fn jovrf(&self) -> JOVRFR {
252        let bits = {
253            const MASK: bool = true;
254            const OFFSET: u8 = 2;
255            ((self.bits >> OFFSET) & MASK as u32) != 0
256        };
257        JOVRFR { bits }
258    }
259    #[doc = "Bit 1 - End of regular conversion flag"]
260    #[inline]
261    pub fn reocf(&self) -> REOCFR {
262        let bits = {
263            const MASK: bool = true;
264            const OFFSET: u8 = 1;
265            ((self.bits >> OFFSET) & MASK as u32) != 0
266        };
267        REOCFR { bits }
268    }
269    #[doc = "Bit 0 - End of injected conversion flag"]
270    #[inline]
271    pub fn jeocf(&self) -> JEOCFR {
272        let bits = {
273            const MASK: bool = true;
274            const OFFSET: u8 = 0;
275            ((self.bits >> OFFSET) & MASK as u32) != 0
276        };
277        JEOCFR { bits }
278    }
279}