atsamd51p/pac/
intflagahb.rs

1#[doc = "Register `INTFLAGAHB` reader"]
2pub type R = crate::R<IntflagahbSpec>;
3#[doc = "Register `INTFLAGAHB` writer"]
4pub type W = crate::W<IntflagahbSpec>;
5#[doc = "Field `FLASH_` reader - FLASH"]
6pub type Flash_R = crate::BitReader;
7#[doc = "Field `FLASH_` writer - FLASH"]
8pub type Flash_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `FLASH_ALT_` reader - FLASH_ALT"]
10pub type FlashAlt_R = crate::BitReader;
11#[doc = "Field `FLASH_ALT_` writer - FLASH_ALT"]
12pub type FlashAlt_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `SEEPROM_` reader - SEEPROM"]
14pub type Seeprom_R = crate::BitReader;
15#[doc = "Field `SEEPROM_` writer - SEEPROM"]
16pub type Seeprom_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `RAMCM4S_` reader - RAMCM4S"]
18pub type Ramcm4s_R = crate::BitReader;
19#[doc = "Field `RAMCM4S_` writer - RAMCM4S"]
20pub type Ramcm4s_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `RAMPPPDSU_` reader - RAMPPPDSU"]
22pub type Rampppdsu_R = crate::BitReader;
23#[doc = "Field `RAMPPPDSU_` writer - RAMPPPDSU"]
24pub type Rampppdsu_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `RAMDMAWR_` reader - RAMDMAWR"]
26pub type Ramdmawr_R = crate::BitReader;
27#[doc = "Field `RAMDMAWR_` writer - RAMDMAWR"]
28pub type Ramdmawr_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `RAMDMACICM_` reader - RAMDMACICM"]
30pub type Ramdmacicm_R = crate::BitReader;
31#[doc = "Field `RAMDMACICM_` writer - RAMDMACICM"]
32pub type Ramdmacicm_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `HPB0_` reader - HPB0"]
34pub type Hpb0_R = crate::BitReader;
35#[doc = "Field `HPB0_` writer - HPB0"]
36pub type Hpb0_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `HPB1_` reader - HPB1"]
38pub type Hpb1_R = crate::BitReader;
39#[doc = "Field `HPB1_` writer - HPB1"]
40pub type Hpb1_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `HPB2_` reader - HPB2"]
42pub type Hpb2_R = crate::BitReader;
43#[doc = "Field `HPB2_` writer - HPB2"]
44pub type Hpb2_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `HPB3_` reader - HPB3"]
46pub type Hpb3_R = crate::BitReader;
47#[doc = "Field `HPB3_` writer - HPB3"]
48pub type Hpb3_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `PUKCC_` reader - PUKCC"]
50pub type Pukcc_R = crate::BitReader;
51#[doc = "Field `PUKCC_` writer - PUKCC"]
52pub type Pukcc_W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `SDHC0_` reader - SDHC0"]
54pub type Sdhc0_R = crate::BitReader;
55#[doc = "Field `SDHC0_` writer - SDHC0"]
56pub type Sdhc0_W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `SDHC1_` reader - SDHC1"]
58pub type Sdhc1_R = crate::BitReader;
59#[doc = "Field `SDHC1_` writer - SDHC1"]
60pub type Sdhc1_W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `QSPI_` reader - QSPI"]
62pub type Qspi_R = crate::BitReader;
63#[doc = "Field `QSPI_` writer - QSPI"]
64pub type Qspi_W<'a, REG> = crate::BitWriter<'a, REG>;
65impl R {
66    #[doc = "Bit 0 - FLASH"]
67    #[inline(always)]
68    pub fn flash_(&self) -> Flash_R {
69        Flash_R::new((self.bits & 1) != 0)
70    }
71    #[doc = "Bit 1 - FLASH_ALT"]
72    #[inline(always)]
73    pub fn flash_alt_(&self) -> FlashAlt_R {
74        FlashAlt_R::new(((self.bits >> 1) & 1) != 0)
75    }
76    #[doc = "Bit 2 - SEEPROM"]
77    #[inline(always)]
78    pub fn seeprom_(&self) -> Seeprom_R {
79        Seeprom_R::new(((self.bits >> 2) & 1) != 0)
80    }
81    #[doc = "Bit 3 - RAMCM4S"]
82    #[inline(always)]
83    pub fn ramcm4s_(&self) -> Ramcm4s_R {
84        Ramcm4s_R::new(((self.bits >> 3) & 1) != 0)
85    }
86    #[doc = "Bit 4 - RAMPPPDSU"]
87    #[inline(always)]
88    pub fn rampppdsu_(&self) -> Rampppdsu_R {
89        Rampppdsu_R::new(((self.bits >> 4) & 1) != 0)
90    }
91    #[doc = "Bit 5 - RAMDMAWR"]
92    #[inline(always)]
93    pub fn ramdmawr_(&self) -> Ramdmawr_R {
94        Ramdmawr_R::new(((self.bits >> 5) & 1) != 0)
95    }
96    #[doc = "Bit 6 - RAMDMACICM"]
97    #[inline(always)]
98    pub fn ramdmacicm_(&self) -> Ramdmacicm_R {
99        Ramdmacicm_R::new(((self.bits >> 6) & 1) != 0)
100    }
101    #[doc = "Bit 7 - HPB0"]
102    #[inline(always)]
103    pub fn hpb0_(&self) -> Hpb0_R {
104        Hpb0_R::new(((self.bits >> 7) & 1) != 0)
105    }
106    #[doc = "Bit 8 - HPB1"]
107    #[inline(always)]
108    pub fn hpb1_(&self) -> Hpb1_R {
109        Hpb1_R::new(((self.bits >> 8) & 1) != 0)
110    }
111    #[doc = "Bit 9 - HPB2"]
112    #[inline(always)]
113    pub fn hpb2_(&self) -> Hpb2_R {
114        Hpb2_R::new(((self.bits >> 9) & 1) != 0)
115    }
116    #[doc = "Bit 10 - HPB3"]
117    #[inline(always)]
118    pub fn hpb3_(&self) -> Hpb3_R {
119        Hpb3_R::new(((self.bits >> 10) & 1) != 0)
120    }
121    #[doc = "Bit 11 - PUKCC"]
122    #[inline(always)]
123    pub fn pukcc_(&self) -> Pukcc_R {
124        Pukcc_R::new(((self.bits >> 11) & 1) != 0)
125    }
126    #[doc = "Bit 12 - SDHC0"]
127    #[inline(always)]
128    pub fn sdhc0_(&self) -> Sdhc0_R {
129        Sdhc0_R::new(((self.bits >> 12) & 1) != 0)
130    }
131    #[doc = "Bit 13 - SDHC1"]
132    #[inline(always)]
133    pub fn sdhc1_(&self) -> Sdhc1_R {
134        Sdhc1_R::new(((self.bits >> 13) & 1) != 0)
135    }
136    #[doc = "Bit 14 - QSPI"]
137    #[inline(always)]
138    pub fn qspi_(&self) -> Qspi_R {
139        Qspi_R::new(((self.bits >> 14) & 1) != 0)
140    }
141}
142impl W {
143    #[doc = "Bit 0 - FLASH"]
144    #[inline(always)]
145    #[must_use]
146    pub fn flash_(&mut self) -> Flash_W<IntflagahbSpec> {
147        Flash_W::new(self, 0)
148    }
149    #[doc = "Bit 1 - FLASH_ALT"]
150    #[inline(always)]
151    #[must_use]
152    pub fn flash_alt_(&mut self) -> FlashAlt_W<IntflagahbSpec> {
153        FlashAlt_W::new(self, 1)
154    }
155    #[doc = "Bit 2 - SEEPROM"]
156    #[inline(always)]
157    #[must_use]
158    pub fn seeprom_(&mut self) -> Seeprom_W<IntflagahbSpec> {
159        Seeprom_W::new(self, 2)
160    }
161    #[doc = "Bit 3 - RAMCM4S"]
162    #[inline(always)]
163    #[must_use]
164    pub fn ramcm4s_(&mut self) -> Ramcm4s_W<IntflagahbSpec> {
165        Ramcm4s_W::new(self, 3)
166    }
167    #[doc = "Bit 4 - RAMPPPDSU"]
168    #[inline(always)]
169    #[must_use]
170    pub fn rampppdsu_(&mut self) -> Rampppdsu_W<IntflagahbSpec> {
171        Rampppdsu_W::new(self, 4)
172    }
173    #[doc = "Bit 5 - RAMDMAWR"]
174    #[inline(always)]
175    #[must_use]
176    pub fn ramdmawr_(&mut self) -> Ramdmawr_W<IntflagahbSpec> {
177        Ramdmawr_W::new(self, 5)
178    }
179    #[doc = "Bit 6 - RAMDMACICM"]
180    #[inline(always)]
181    #[must_use]
182    pub fn ramdmacicm_(&mut self) -> Ramdmacicm_W<IntflagahbSpec> {
183        Ramdmacicm_W::new(self, 6)
184    }
185    #[doc = "Bit 7 - HPB0"]
186    #[inline(always)]
187    #[must_use]
188    pub fn hpb0_(&mut self) -> Hpb0_W<IntflagahbSpec> {
189        Hpb0_W::new(self, 7)
190    }
191    #[doc = "Bit 8 - HPB1"]
192    #[inline(always)]
193    #[must_use]
194    pub fn hpb1_(&mut self) -> Hpb1_W<IntflagahbSpec> {
195        Hpb1_W::new(self, 8)
196    }
197    #[doc = "Bit 9 - HPB2"]
198    #[inline(always)]
199    #[must_use]
200    pub fn hpb2_(&mut self) -> Hpb2_W<IntflagahbSpec> {
201        Hpb2_W::new(self, 9)
202    }
203    #[doc = "Bit 10 - HPB3"]
204    #[inline(always)]
205    #[must_use]
206    pub fn hpb3_(&mut self) -> Hpb3_W<IntflagahbSpec> {
207        Hpb3_W::new(self, 10)
208    }
209    #[doc = "Bit 11 - PUKCC"]
210    #[inline(always)]
211    #[must_use]
212    pub fn pukcc_(&mut self) -> Pukcc_W<IntflagahbSpec> {
213        Pukcc_W::new(self, 11)
214    }
215    #[doc = "Bit 12 - SDHC0"]
216    #[inline(always)]
217    #[must_use]
218    pub fn sdhc0_(&mut self) -> Sdhc0_W<IntflagahbSpec> {
219        Sdhc0_W::new(self, 12)
220    }
221    #[doc = "Bit 13 - SDHC1"]
222    #[inline(always)]
223    #[must_use]
224    pub fn sdhc1_(&mut self) -> Sdhc1_W<IntflagahbSpec> {
225        Sdhc1_W::new(self, 13)
226    }
227    #[doc = "Bit 14 - QSPI"]
228    #[inline(always)]
229    #[must_use]
230    pub fn qspi_(&mut self) -> Qspi_W<IntflagahbSpec> {
231        Qspi_W::new(self, 14)
232    }
233}
234#[doc = "Bridge interrupt flag status\n\nYou can [`read`](crate::Reg::read) this register and get [`intflagahb::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intflagahb::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
235pub struct IntflagahbSpec;
236impl crate::RegisterSpec for IntflagahbSpec {
237    type Ux = u32;
238}
239#[doc = "`read()` method returns [`intflagahb::R`](R) reader structure"]
240impl crate::Readable for IntflagahbSpec {}
241#[doc = "`write(|w| ..)` method takes [`intflagahb::W`](W) writer structure"]
242impl crate::Writable for IntflagahbSpec {
243    type Safety = crate::Unsafe;
244    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
245    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
246}
247#[doc = "`reset()` method sets INTFLAGAHB to value 0"]
248impl crate::Resettable for IntflagahbSpec {
249    const RESET_VALUE: u32 = 0;
250}