atsaml21e18a/pac/
intflagahb.rs

1#[doc = "Register `INTFLAGAHB` reader"]
2pub struct R(crate::R<INTFLAGAHB_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<INTFLAGAHB_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<INTFLAGAHB_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<INTFLAGAHB_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `INTFLAGAHB` writer"]
17pub struct W(crate::W<INTFLAGAHB_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<INTFLAGAHB_SPEC>;
20    #[inline(always)]
21    fn deref(&self) -> &Self::Target {
22        &self.0
23    }
24}
25impl core::ops::DerefMut for W {
26    #[inline(always)]
27    fn deref_mut(&mut self) -> &mut Self::Target {
28        &mut self.0
29    }
30}
31impl From<crate::W<INTFLAGAHB_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<INTFLAGAHB_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `FLASH_` reader - FLASH"]
38pub type FLASH__R = crate::BitReader<bool>;
39#[doc = "Field `FLASH_` writer - FLASH"]
40pub type FLASH__W<'a, const O: u8> = crate::BitWriter<'a, u32, INTFLAGAHB_SPEC, bool, O>;
41#[doc = "Field `HSRAMCM0P_` reader - HSRAMCM0P"]
42pub type HSRAMCM0P__R = crate::BitReader<bool>;
43#[doc = "Field `HSRAMCM0P_` writer - HSRAMCM0P"]
44pub type HSRAMCM0P__W<'a, const O: u8> = crate::BitWriter<'a, u32, INTFLAGAHB_SPEC, bool, O>;
45#[doc = "Field `HSRAMDSU_` reader - HSRAMDSU"]
46pub type HSRAMDSU__R = crate::BitReader<bool>;
47#[doc = "Field `HSRAMDSU_` writer - HSRAMDSU"]
48pub type HSRAMDSU__W<'a, const O: u8> = crate::BitWriter<'a, u32, INTFLAGAHB_SPEC, bool, O>;
49#[doc = "Field `HPB1_` reader - HPB1"]
50pub type HPB1__R = crate::BitReader<bool>;
51#[doc = "Field `HPB1_` writer - HPB1"]
52pub type HPB1__W<'a, const O: u8> = crate::BitWriter<'a, u32, INTFLAGAHB_SPEC, bool, O>;
53#[doc = "Field `H2LBRIDGES_` reader - H2LBRIDGES"]
54pub type H2LBRIDGES__R = crate::BitReader<bool>;
55#[doc = "Field `H2LBRIDGES_` writer - H2LBRIDGES"]
56pub type H2LBRIDGES__W<'a, const O: u8> = crate::BitWriter<'a, u32, INTFLAGAHB_SPEC, bool, O>;
57#[doc = "Field `HPB0_` reader - HPB0"]
58pub type HPB0__R = crate::BitReader<bool>;
59#[doc = "Field `HPB0_` writer - HPB0"]
60pub type HPB0__W<'a, const O: u8> = crate::BitWriter<'a, u32, INTFLAGAHB_SPEC, bool, O>;
61#[doc = "Field `HPB2_` reader - HPB2"]
62pub type HPB2__R = crate::BitReader<bool>;
63#[doc = "Field `HPB2_` writer - HPB2"]
64pub type HPB2__W<'a, const O: u8> = crate::BitWriter<'a, u32, INTFLAGAHB_SPEC, bool, O>;
65#[doc = "Field `HPB3_` reader - HPB3"]
66pub type HPB3__R = crate::BitReader<bool>;
67#[doc = "Field `HPB3_` writer - HPB3"]
68pub type HPB3__W<'a, const O: u8> = crate::BitWriter<'a, u32, INTFLAGAHB_SPEC, bool, O>;
69#[doc = "Field `HPB4_` reader - HPB4"]
70pub type HPB4__R = crate::BitReader<bool>;
71#[doc = "Field `HPB4_` writer - HPB4"]
72pub type HPB4__W<'a, const O: u8> = crate::BitWriter<'a, u32, INTFLAGAHB_SPEC, bool, O>;
73#[doc = "Field `LPRAMHS_` reader - LPRAMHS"]
74pub type LPRAMHS__R = crate::BitReader<bool>;
75#[doc = "Field `LPRAMHS_` writer - LPRAMHS"]
76pub type LPRAMHS__W<'a, const O: u8> = crate::BitWriter<'a, u32, INTFLAGAHB_SPEC, bool, O>;
77#[doc = "Field `LPRAMPICOP_` reader - LPRAMPICOP"]
78pub type LPRAMPICOP__R = crate::BitReader<bool>;
79#[doc = "Field `LPRAMPICOP_` writer - LPRAMPICOP"]
80pub type LPRAMPICOP__W<'a, const O: u8> = crate::BitWriter<'a, u32, INTFLAGAHB_SPEC, bool, O>;
81#[doc = "Field `LPRAMDMAC_` reader - LPRAMDMAC"]
82pub type LPRAMDMAC__R = crate::BitReader<bool>;
83#[doc = "Field `LPRAMDMAC_` writer - LPRAMDMAC"]
84pub type LPRAMDMAC__W<'a, const O: u8> = crate::BitWriter<'a, u32, INTFLAGAHB_SPEC, bool, O>;
85#[doc = "Field `L2HBRIDGES_` reader - L2HBRIDGES"]
86pub type L2HBRIDGES__R = crate::BitReader<bool>;
87#[doc = "Field `L2HBRIDGES_` writer - L2HBRIDGES"]
88pub type L2HBRIDGES__W<'a, const O: u8> = crate::BitWriter<'a, u32, INTFLAGAHB_SPEC, bool, O>;
89#[doc = "Field `HSRAMLP_` reader - HSRAMLP"]
90pub type HSRAMLP__R = crate::BitReader<bool>;
91#[doc = "Field `HSRAMLP_` writer - HSRAMLP"]
92pub type HSRAMLP__W<'a, const O: u8> = crate::BitWriter<'a, u32, INTFLAGAHB_SPEC, bool, O>;
93impl R {
94    #[doc = "Bit 0 - FLASH"]
95    #[inline(always)]
96    pub fn flash_(&self) -> FLASH__R {
97        FLASH__R::new((self.bits & 1) != 0)
98    }
99    #[doc = "Bit 1 - HSRAMCM0P"]
100    #[inline(always)]
101    pub fn hsramcm0p_(&self) -> HSRAMCM0P__R {
102        HSRAMCM0P__R::new(((self.bits >> 1) & 1) != 0)
103    }
104    #[doc = "Bit 2 - HSRAMDSU"]
105    #[inline(always)]
106    pub fn hsramdsu_(&self) -> HSRAMDSU__R {
107        HSRAMDSU__R::new(((self.bits >> 2) & 1) != 0)
108    }
109    #[doc = "Bit 3 - HPB1"]
110    #[inline(always)]
111    pub fn hpb1_(&self) -> HPB1__R {
112        HPB1__R::new(((self.bits >> 3) & 1) != 0)
113    }
114    #[doc = "Bit 4 - H2LBRIDGES"]
115    #[inline(always)]
116    pub fn h2lbridges_(&self) -> H2LBRIDGES__R {
117        H2LBRIDGES__R::new(((self.bits >> 4) & 1) != 0)
118    }
119    #[doc = "Bit 16 - HPB0"]
120    #[inline(always)]
121    pub fn hpb0_(&self) -> HPB0__R {
122        HPB0__R::new(((self.bits >> 16) & 1) != 0)
123    }
124    #[doc = "Bit 17 - HPB2"]
125    #[inline(always)]
126    pub fn hpb2_(&self) -> HPB2__R {
127        HPB2__R::new(((self.bits >> 17) & 1) != 0)
128    }
129    #[doc = "Bit 18 - HPB3"]
130    #[inline(always)]
131    pub fn hpb3_(&self) -> HPB3__R {
132        HPB3__R::new(((self.bits >> 18) & 1) != 0)
133    }
134    #[doc = "Bit 19 - HPB4"]
135    #[inline(always)]
136    pub fn hpb4_(&self) -> HPB4__R {
137        HPB4__R::new(((self.bits >> 19) & 1) != 0)
138    }
139    #[doc = "Bit 21 - LPRAMHS"]
140    #[inline(always)]
141    pub fn lpramhs_(&self) -> LPRAMHS__R {
142        LPRAMHS__R::new(((self.bits >> 21) & 1) != 0)
143    }
144    #[doc = "Bit 22 - LPRAMPICOP"]
145    #[inline(always)]
146    pub fn lprampicop_(&self) -> LPRAMPICOP__R {
147        LPRAMPICOP__R::new(((self.bits >> 22) & 1) != 0)
148    }
149    #[doc = "Bit 23 - LPRAMDMAC"]
150    #[inline(always)]
151    pub fn lpramdmac_(&self) -> LPRAMDMAC__R {
152        LPRAMDMAC__R::new(((self.bits >> 23) & 1) != 0)
153    }
154    #[doc = "Bit 24 - L2HBRIDGES"]
155    #[inline(always)]
156    pub fn l2hbridges_(&self) -> L2HBRIDGES__R {
157        L2HBRIDGES__R::new(((self.bits >> 24) & 1) != 0)
158    }
159    #[doc = "Bit 25 - HSRAMLP"]
160    #[inline(always)]
161    pub fn hsramlp_(&self) -> HSRAMLP__R {
162        HSRAMLP__R::new(((self.bits >> 25) & 1) != 0)
163    }
164}
165impl W {
166    #[doc = "Bit 0 - FLASH"]
167    #[inline(always)]
168    #[must_use]
169    pub fn flash_(&mut self) -> FLASH__W<0> {
170        FLASH__W::new(self)
171    }
172    #[doc = "Bit 1 - HSRAMCM0P"]
173    #[inline(always)]
174    #[must_use]
175    pub fn hsramcm0p_(&mut self) -> HSRAMCM0P__W<1> {
176        HSRAMCM0P__W::new(self)
177    }
178    #[doc = "Bit 2 - HSRAMDSU"]
179    #[inline(always)]
180    #[must_use]
181    pub fn hsramdsu_(&mut self) -> HSRAMDSU__W<2> {
182        HSRAMDSU__W::new(self)
183    }
184    #[doc = "Bit 3 - HPB1"]
185    #[inline(always)]
186    #[must_use]
187    pub fn hpb1_(&mut self) -> HPB1__W<3> {
188        HPB1__W::new(self)
189    }
190    #[doc = "Bit 4 - H2LBRIDGES"]
191    #[inline(always)]
192    #[must_use]
193    pub fn h2lbridges_(&mut self) -> H2LBRIDGES__W<4> {
194        H2LBRIDGES__W::new(self)
195    }
196    #[doc = "Bit 16 - HPB0"]
197    #[inline(always)]
198    #[must_use]
199    pub fn hpb0_(&mut self) -> HPB0__W<16> {
200        HPB0__W::new(self)
201    }
202    #[doc = "Bit 17 - HPB2"]
203    #[inline(always)]
204    #[must_use]
205    pub fn hpb2_(&mut self) -> HPB2__W<17> {
206        HPB2__W::new(self)
207    }
208    #[doc = "Bit 18 - HPB3"]
209    #[inline(always)]
210    #[must_use]
211    pub fn hpb3_(&mut self) -> HPB3__W<18> {
212        HPB3__W::new(self)
213    }
214    #[doc = "Bit 19 - HPB4"]
215    #[inline(always)]
216    #[must_use]
217    pub fn hpb4_(&mut self) -> HPB4__W<19> {
218        HPB4__W::new(self)
219    }
220    #[doc = "Bit 21 - LPRAMHS"]
221    #[inline(always)]
222    #[must_use]
223    pub fn lpramhs_(&mut self) -> LPRAMHS__W<21> {
224        LPRAMHS__W::new(self)
225    }
226    #[doc = "Bit 22 - LPRAMPICOP"]
227    #[inline(always)]
228    #[must_use]
229    pub fn lprampicop_(&mut self) -> LPRAMPICOP__W<22> {
230        LPRAMPICOP__W::new(self)
231    }
232    #[doc = "Bit 23 - LPRAMDMAC"]
233    #[inline(always)]
234    #[must_use]
235    pub fn lpramdmac_(&mut self) -> LPRAMDMAC__W<23> {
236        LPRAMDMAC__W::new(self)
237    }
238    #[doc = "Bit 24 - L2HBRIDGES"]
239    #[inline(always)]
240    #[must_use]
241    pub fn l2hbridges_(&mut self) -> L2HBRIDGES__W<24> {
242        L2HBRIDGES__W::new(self)
243    }
244    #[doc = "Bit 25 - HSRAMLP"]
245    #[inline(always)]
246    #[must_use]
247    pub fn hsramlp_(&mut self) -> HSRAMLP__W<25> {
248        HSRAMLP__W::new(self)
249    }
250    #[doc = "Writes raw bits to the register."]
251    #[inline(always)]
252    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
253        self.0.bits(bits);
254        self
255    }
256}
257#[doc = "Bridge interrupt flag status\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [intflagahb](index.html) module"]
258pub struct INTFLAGAHB_SPEC;
259impl crate::RegisterSpec for INTFLAGAHB_SPEC {
260    type Ux = u32;
261}
262#[doc = "`read()` method returns [intflagahb::R](R) reader structure"]
263impl crate::Readable for INTFLAGAHB_SPEC {
264    type Reader = R;
265}
266#[doc = "`write(|w| ..)` method takes [intflagahb::W](W) writer structure"]
267impl crate::Writable for INTFLAGAHB_SPEC {
268    type Writer = W;
269    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
270    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
271}
272#[doc = "`reset()` method sets INTFLAGAHB to value 0"]
273impl crate::Resettable for INTFLAGAHB_SPEC {
274    const RESET_VALUE: Self::Ux = 0;
275}