stm32wb_pac/dma2/
isr.rs

1#[doc = "Reader of register ISR"]
2pub type R = crate::R<u32, super::ISR>;
3#[doc = "Reader of field `TEIF7`"]
4pub type TEIF7_R = crate::R<bool, bool>;
5#[doc = "Reader of field `HTIF7`"]
6pub type HTIF7_R = crate::R<bool, bool>;
7#[doc = "Reader of field `TCIF7`"]
8pub type TCIF7_R = crate::R<bool, bool>;
9#[doc = "Reader of field `GIF7`"]
10pub type GIF7_R = crate::R<bool, bool>;
11#[doc = "Reader of field `TEIF6`"]
12pub type TEIF6_R = crate::R<bool, bool>;
13#[doc = "Reader of field `HTIF6`"]
14pub type HTIF6_R = crate::R<bool, bool>;
15#[doc = "Reader of field `TCIF6`"]
16pub type TCIF6_R = crate::R<bool, bool>;
17#[doc = "Reader of field `GIF6`"]
18pub type GIF6_R = crate::R<bool, bool>;
19#[doc = "Reader of field `TEIF5`"]
20pub type TEIF5_R = crate::R<bool, bool>;
21#[doc = "Reader of field `HTIF5`"]
22pub type HTIF5_R = crate::R<bool, bool>;
23#[doc = "Reader of field `TCIF5`"]
24pub type TCIF5_R = crate::R<bool, bool>;
25#[doc = "Reader of field `GIF5`"]
26pub type GIF5_R = crate::R<bool, bool>;
27#[doc = "Reader of field `TEIF4`"]
28pub type TEIF4_R = crate::R<bool, bool>;
29#[doc = "Reader of field `HTIF4`"]
30pub type HTIF4_R = crate::R<bool, bool>;
31#[doc = "Reader of field `TCIF4`"]
32pub type TCIF4_R = crate::R<bool, bool>;
33#[doc = "Reader of field `GIF4`"]
34pub type GIF4_R = crate::R<bool, bool>;
35#[doc = "Reader of field `TEIF3`"]
36pub type TEIF3_R = crate::R<bool, bool>;
37#[doc = "Reader of field `HTIF3`"]
38pub type HTIF3_R = crate::R<bool, bool>;
39#[doc = "Reader of field `TCIF3`"]
40pub type TCIF3_R = crate::R<bool, bool>;
41#[doc = "Reader of field `GIF3`"]
42pub type GIF3_R = crate::R<bool, bool>;
43#[doc = "Reader of field `TEIF2`"]
44pub type TEIF2_R = crate::R<bool, bool>;
45#[doc = "Reader of field `HTIF2`"]
46pub type HTIF2_R = crate::R<bool, bool>;
47#[doc = "Reader of field `TCIF2`"]
48pub type TCIF2_R = crate::R<bool, bool>;
49#[doc = "Reader of field `GIF2`"]
50pub type GIF2_R = crate::R<bool, bool>;
51#[doc = "Reader of field `TEIF1`"]
52pub type TEIF1_R = crate::R<bool, bool>;
53#[doc = "Reader of field `HTIF1`"]
54pub type HTIF1_R = crate::R<bool, bool>;
55#[doc = "Reader of field `TCIF1`"]
56pub type TCIF1_R = crate::R<bool, bool>;
57#[doc = "Reader of field `GIF1`"]
58pub type GIF1_R = crate::R<bool, bool>;
59impl R {
60    #[doc = "Bit 27 - Channel x transfer error flag (x = 1 ..7)"]
61    #[inline(always)]
62    pub fn teif7(&self) -> TEIF7_R {
63        TEIF7_R::new(((self.bits >> 27) & 0x01) != 0)
64    }
65    #[doc = "Bit 26 - Channel x half transfer flag (x = 1 ..7)"]
66    #[inline(always)]
67    pub fn htif7(&self) -> HTIF7_R {
68        HTIF7_R::new(((self.bits >> 26) & 0x01) != 0)
69    }
70    #[doc = "Bit 25 - Channel x transfer complete flag (x = 1 ..7)"]
71    #[inline(always)]
72    pub fn tcif7(&self) -> TCIF7_R {
73        TCIF7_R::new(((self.bits >> 25) & 0x01) != 0)
74    }
75    #[doc = "Bit 24 - Channel x global interrupt flag (x = 1 ..7)"]
76    #[inline(always)]
77    pub fn gif7(&self) -> GIF7_R {
78        GIF7_R::new(((self.bits >> 24) & 0x01) != 0)
79    }
80    #[doc = "Bit 23 - Channel x transfer error flag (x = 1 ..7)"]
81    #[inline(always)]
82    pub fn teif6(&self) -> TEIF6_R {
83        TEIF6_R::new(((self.bits >> 23) & 0x01) != 0)
84    }
85    #[doc = "Bit 22 - Channel x half transfer flag (x = 1 ..7)"]
86    #[inline(always)]
87    pub fn htif6(&self) -> HTIF6_R {
88        HTIF6_R::new(((self.bits >> 22) & 0x01) != 0)
89    }
90    #[doc = "Bit 21 - Channel x transfer complete flag (x = 1 ..7)"]
91    #[inline(always)]
92    pub fn tcif6(&self) -> TCIF6_R {
93        TCIF6_R::new(((self.bits >> 21) & 0x01) != 0)
94    }
95    #[doc = "Bit 20 - Channel x global interrupt flag (x = 1 ..7)"]
96    #[inline(always)]
97    pub fn gif6(&self) -> GIF6_R {
98        GIF6_R::new(((self.bits >> 20) & 0x01) != 0)
99    }
100    #[doc = "Bit 19 - Channel x transfer error flag (x = 1 ..7)"]
101    #[inline(always)]
102    pub fn teif5(&self) -> TEIF5_R {
103        TEIF5_R::new(((self.bits >> 19) & 0x01) != 0)
104    }
105    #[doc = "Bit 18 - Channel x half transfer flag (x = 1 ..7)"]
106    #[inline(always)]
107    pub fn htif5(&self) -> HTIF5_R {
108        HTIF5_R::new(((self.bits >> 18) & 0x01) != 0)
109    }
110    #[doc = "Bit 17 - Channel x transfer complete flag (x = 1 ..7)"]
111    #[inline(always)]
112    pub fn tcif5(&self) -> TCIF5_R {
113        TCIF5_R::new(((self.bits >> 17) & 0x01) != 0)
114    }
115    #[doc = "Bit 16 - Channel x global interrupt flag (x = 1 ..7)"]
116    #[inline(always)]
117    pub fn gif5(&self) -> GIF5_R {
118        GIF5_R::new(((self.bits >> 16) & 0x01) != 0)
119    }
120    #[doc = "Bit 15 - Channel x transfer error flag (x = 1 ..7)"]
121    #[inline(always)]
122    pub fn teif4(&self) -> TEIF4_R {
123        TEIF4_R::new(((self.bits >> 15) & 0x01) != 0)
124    }
125    #[doc = "Bit 14 - Channel x half transfer flag (x = 1 ..7)"]
126    #[inline(always)]
127    pub fn htif4(&self) -> HTIF4_R {
128        HTIF4_R::new(((self.bits >> 14) & 0x01) != 0)
129    }
130    #[doc = "Bit 13 - Channel x transfer complete flag (x = 1 ..7)"]
131    #[inline(always)]
132    pub fn tcif4(&self) -> TCIF4_R {
133        TCIF4_R::new(((self.bits >> 13) & 0x01) != 0)
134    }
135    #[doc = "Bit 12 - Channel x global interrupt flag (x = 1 ..7)"]
136    #[inline(always)]
137    pub fn gif4(&self) -> GIF4_R {
138        GIF4_R::new(((self.bits >> 12) & 0x01) != 0)
139    }
140    #[doc = "Bit 11 - Channel x transfer error flag (x = 1 ..7)"]
141    #[inline(always)]
142    pub fn teif3(&self) -> TEIF3_R {
143        TEIF3_R::new(((self.bits >> 11) & 0x01) != 0)
144    }
145    #[doc = "Bit 10 - Channel x half transfer flag (x = 1 ..7)"]
146    #[inline(always)]
147    pub fn htif3(&self) -> HTIF3_R {
148        HTIF3_R::new(((self.bits >> 10) & 0x01) != 0)
149    }
150    #[doc = "Bit 9 - Channel x transfer complete flag (x = 1 ..7)"]
151    #[inline(always)]
152    pub fn tcif3(&self) -> TCIF3_R {
153        TCIF3_R::new(((self.bits >> 9) & 0x01) != 0)
154    }
155    #[doc = "Bit 8 - Channel x global interrupt flag (x = 1 ..7)"]
156    #[inline(always)]
157    pub fn gif3(&self) -> GIF3_R {
158        GIF3_R::new(((self.bits >> 8) & 0x01) != 0)
159    }
160    #[doc = "Bit 7 - Channel x transfer error flag (x = 1 ..7)"]
161    #[inline(always)]
162    pub fn teif2(&self) -> TEIF2_R {
163        TEIF2_R::new(((self.bits >> 7) & 0x01) != 0)
164    }
165    #[doc = "Bit 6 - Channel x half transfer flag (x = 1 ..7)"]
166    #[inline(always)]
167    pub fn htif2(&self) -> HTIF2_R {
168        HTIF2_R::new(((self.bits >> 6) & 0x01) != 0)
169    }
170    #[doc = "Bit 5 - Channel x transfer complete flag (x = 1 ..7)"]
171    #[inline(always)]
172    pub fn tcif2(&self) -> TCIF2_R {
173        TCIF2_R::new(((self.bits >> 5) & 0x01) != 0)
174    }
175    #[doc = "Bit 4 - Channel x global interrupt flag (x = 1 ..7)"]
176    #[inline(always)]
177    pub fn gif2(&self) -> GIF2_R {
178        GIF2_R::new(((self.bits >> 4) & 0x01) != 0)
179    }
180    #[doc = "Bit 3 - Channel x transfer error flag (x = 1 ..7)"]
181    #[inline(always)]
182    pub fn teif1(&self) -> TEIF1_R {
183        TEIF1_R::new(((self.bits >> 3) & 0x01) != 0)
184    }
185    #[doc = "Bit 2 - Channel x half transfer flag (x = 1 ..7)"]
186    #[inline(always)]
187    pub fn htif1(&self) -> HTIF1_R {
188        HTIF1_R::new(((self.bits >> 2) & 0x01) != 0)
189    }
190    #[doc = "Bit 1 - Channel x transfer complete flag (x = 1 ..7)"]
191    #[inline(always)]
192    pub fn tcif1(&self) -> TCIF1_R {
193        TCIF1_R::new(((self.bits >> 1) & 0x01) != 0)
194    }
195    #[doc = "Bit 0 - Channel x global interrupt flag (x = 1 ..7)"]
196    #[inline(always)]
197    pub fn gif1(&self) -> GIF1_R {
198        GIF1_R::new((self.bits & 0x01) != 0)
199    }
200}