atsamd51g/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 `QSPI_` reader - QSPI"]
58pub type Qspi_R = crate::BitReader;
59#[doc = "Field `QSPI_` writer - QSPI"]
60pub type Qspi_W<'a, REG> = crate::BitWriter<'a, REG>;
61impl R {
62    #[doc = "Bit 0 - FLASH"]
63    #[inline(always)]
64    pub fn flash_(&self) -> Flash_R {
65        Flash_R::new((self.bits & 1) != 0)
66    }
67    #[doc = "Bit 1 - FLASH_ALT"]
68    #[inline(always)]
69    pub fn flash_alt_(&self) -> FlashAlt_R {
70        FlashAlt_R::new(((self.bits >> 1) & 1) != 0)
71    }
72    #[doc = "Bit 2 - SEEPROM"]
73    #[inline(always)]
74    pub fn seeprom_(&self) -> Seeprom_R {
75        Seeprom_R::new(((self.bits >> 2) & 1) != 0)
76    }
77    #[doc = "Bit 3 - RAMCM4S"]
78    #[inline(always)]
79    pub fn ramcm4s_(&self) -> Ramcm4s_R {
80        Ramcm4s_R::new(((self.bits >> 3) & 1) != 0)
81    }
82    #[doc = "Bit 4 - RAMPPPDSU"]
83    #[inline(always)]
84    pub fn rampppdsu_(&self) -> Rampppdsu_R {
85        Rampppdsu_R::new(((self.bits >> 4) & 1) != 0)
86    }
87    #[doc = "Bit 5 - RAMDMAWR"]
88    #[inline(always)]
89    pub fn ramdmawr_(&self) -> Ramdmawr_R {
90        Ramdmawr_R::new(((self.bits >> 5) & 1) != 0)
91    }
92    #[doc = "Bit 6 - RAMDMACICM"]
93    #[inline(always)]
94    pub fn ramdmacicm_(&self) -> Ramdmacicm_R {
95        Ramdmacicm_R::new(((self.bits >> 6) & 1) != 0)
96    }
97    #[doc = "Bit 7 - HPB0"]
98    #[inline(always)]
99    pub fn hpb0_(&self) -> Hpb0_R {
100        Hpb0_R::new(((self.bits >> 7) & 1) != 0)
101    }
102    #[doc = "Bit 8 - HPB1"]
103    #[inline(always)]
104    pub fn hpb1_(&self) -> Hpb1_R {
105        Hpb1_R::new(((self.bits >> 8) & 1) != 0)
106    }
107    #[doc = "Bit 9 - HPB2"]
108    #[inline(always)]
109    pub fn hpb2_(&self) -> Hpb2_R {
110        Hpb2_R::new(((self.bits >> 9) & 1) != 0)
111    }
112    #[doc = "Bit 10 - HPB3"]
113    #[inline(always)]
114    pub fn hpb3_(&self) -> Hpb3_R {
115        Hpb3_R::new(((self.bits >> 10) & 1) != 0)
116    }
117    #[doc = "Bit 11 - PUKCC"]
118    #[inline(always)]
119    pub fn pukcc_(&self) -> Pukcc_R {
120        Pukcc_R::new(((self.bits >> 11) & 1) != 0)
121    }
122    #[doc = "Bit 12 - SDHC0"]
123    #[inline(always)]
124    pub fn sdhc0_(&self) -> Sdhc0_R {
125        Sdhc0_R::new(((self.bits >> 12) & 1) != 0)
126    }
127    #[doc = "Bit 14 - QSPI"]
128    #[inline(always)]
129    pub fn qspi_(&self) -> Qspi_R {
130        Qspi_R::new(((self.bits >> 14) & 1) != 0)
131    }
132}
133impl W {
134    #[doc = "Bit 0 - FLASH"]
135    #[inline(always)]
136    #[must_use]
137    pub fn flash_(&mut self) -> Flash_W<IntflagahbSpec> {
138        Flash_W::new(self, 0)
139    }
140    #[doc = "Bit 1 - FLASH_ALT"]
141    #[inline(always)]
142    #[must_use]
143    pub fn flash_alt_(&mut self) -> FlashAlt_W<IntflagahbSpec> {
144        FlashAlt_W::new(self, 1)
145    }
146    #[doc = "Bit 2 - SEEPROM"]
147    #[inline(always)]
148    #[must_use]
149    pub fn seeprom_(&mut self) -> Seeprom_W<IntflagahbSpec> {
150        Seeprom_W::new(self, 2)
151    }
152    #[doc = "Bit 3 - RAMCM4S"]
153    #[inline(always)]
154    #[must_use]
155    pub fn ramcm4s_(&mut self) -> Ramcm4s_W<IntflagahbSpec> {
156        Ramcm4s_W::new(self, 3)
157    }
158    #[doc = "Bit 4 - RAMPPPDSU"]
159    #[inline(always)]
160    #[must_use]
161    pub fn rampppdsu_(&mut self) -> Rampppdsu_W<IntflagahbSpec> {
162        Rampppdsu_W::new(self, 4)
163    }
164    #[doc = "Bit 5 - RAMDMAWR"]
165    #[inline(always)]
166    #[must_use]
167    pub fn ramdmawr_(&mut self) -> Ramdmawr_W<IntflagahbSpec> {
168        Ramdmawr_W::new(self, 5)
169    }
170    #[doc = "Bit 6 - RAMDMACICM"]
171    #[inline(always)]
172    #[must_use]
173    pub fn ramdmacicm_(&mut self) -> Ramdmacicm_W<IntflagahbSpec> {
174        Ramdmacicm_W::new(self, 6)
175    }
176    #[doc = "Bit 7 - HPB0"]
177    #[inline(always)]
178    #[must_use]
179    pub fn hpb0_(&mut self) -> Hpb0_W<IntflagahbSpec> {
180        Hpb0_W::new(self, 7)
181    }
182    #[doc = "Bit 8 - HPB1"]
183    #[inline(always)]
184    #[must_use]
185    pub fn hpb1_(&mut self) -> Hpb1_W<IntflagahbSpec> {
186        Hpb1_W::new(self, 8)
187    }
188    #[doc = "Bit 9 - HPB2"]
189    #[inline(always)]
190    #[must_use]
191    pub fn hpb2_(&mut self) -> Hpb2_W<IntflagahbSpec> {
192        Hpb2_W::new(self, 9)
193    }
194    #[doc = "Bit 10 - HPB3"]
195    #[inline(always)]
196    #[must_use]
197    pub fn hpb3_(&mut self) -> Hpb3_W<IntflagahbSpec> {
198        Hpb3_W::new(self, 10)
199    }
200    #[doc = "Bit 11 - PUKCC"]
201    #[inline(always)]
202    #[must_use]
203    pub fn pukcc_(&mut self) -> Pukcc_W<IntflagahbSpec> {
204        Pukcc_W::new(self, 11)
205    }
206    #[doc = "Bit 12 - SDHC0"]
207    #[inline(always)]
208    #[must_use]
209    pub fn sdhc0_(&mut self) -> Sdhc0_W<IntflagahbSpec> {
210        Sdhc0_W::new(self, 12)
211    }
212    #[doc = "Bit 14 - QSPI"]
213    #[inline(always)]
214    #[must_use]
215    pub fn qspi_(&mut self) -> Qspi_W<IntflagahbSpec> {
216        Qspi_W::new(self, 14)
217    }
218}
219#[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)."]
220pub struct IntflagahbSpec;
221impl crate::RegisterSpec for IntflagahbSpec {
222    type Ux = u32;
223}
224#[doc = "`read()` method returns [`intflagahb::R`](R) reader structure"]
225impl crate::Readable for IntflagahbSpec {}
226#[doc = "`write(|w| ..)` method takes [`intflagahb::W`](W) writer structure"]
227impl crate::Writable for IntflagahbSpec {
228    type Safety = crate::Unsafe;
229    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
230    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
231}
232#[doc = "`reset()` method sets INTFLAGAHB to value 0"]
233impl crate::Resettable for IntflagahbSpec {
234    const RESET_VALUE: u32 = 0;
235}