atsamd51n/pac/
intflagc.rs

1#[doc = "Register `INTFLAGC` reader"]
2pub type R = crate::R<IntflagcSpec>;
3#[doc = "Register `INTFLAGC` writer"]
4pub type W = crate::W<IntflagcSpec>;
5#[doc = "Field `TCC2_` reader - TCC2"]
6pub type Tcc2_R = crate::BitReader;
7#[doc = "Field `TCC2_` writer - TCC2"]
8pub type Tcc2_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `TCC3_` reader - TCC3"]
10pub type Tcc3_R = crate::BitReader;
11#[doc = "Field `TCC3_` writer - TCC3"]
12pub type Tcc3_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `TC4_` reader - TC4"]
14pub type Tc4_R = crate::BitReader;
15#[doc = "Field `TC4_` writer - TC4"]
16pub type Tc4_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `TC5_` reader - TC5"]
18pub type Tc5_R = crate::BitReader;
19#[doc = "Field `TC5_` writer - TC5"]
20pub type Tc5_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `PDEC_` reader - PDEC"]
22pub type Pdec_R = crate::BitReader;
23#[doc = "Field `PDEC_` writer - PDEC"]
24pub type Pdec_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `AC_` reader - AC"]
26pub type Ac_R = crate::BitReader;
27#[doc = "Field `AC_` writer - AC"]
28pub type Ac_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `AES_` reader - AES"]
30pub type Aes_R = crate::BitReader;
31#[doc = "Field `AES_` writer - AES"]
32pub type Aes_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `TRNG_` reader - TRNG"]
34pub type Trng_R = crate::BitReader;
35#[doc = "Field `TRNG_` writer - TRNG"]
36pub type Trng_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `ICM_` reader - ICM"]
38pub type Icm_R = crate::BitReader;
39#[doc = "Field `ICM_` writer - ICM"]
40pub type Icm_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `PUKCC_` reader - PUKCC"]
42pub type Pukcc_R = crate::BitReader;
43#[doc = "Field `PUKCC_` writer - PUKCC"]
44pub type Pukcc_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `QSPI_` reader - QSPI"]
46pub type Qspi_R = crate::BitReader;
47#[doc = "Field `QSPI_` writer - QSPI"]
48pub type Qspi_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `CCL_` reader - CCL"]
50pub type Ccl_R = crate::BitReader;
51#[doc = "Field `CCL_` writer - CCL"]
52pub type Ccl_W<'a, REG> = crate::BitWriter<'a, REG>;
53impl R {
54    #[doc = "Bit 3 - TCC2"]
55    #[inline(always)]
56    pub fn tcc2_(&self) -> Tcc2_R {
57        Tcc2_R::new(((self.bits >> 3) & 1) != 0)
58    }
59    #[doc = "Bit 4 - TCC3"]
60    #[inline(always)]
61    pub fn tcc3_(&self) -> Tcc3_R {
62        Tcc3_R::new(((self.bits >> 4) & 1) != 0)
63    }
64    #[doc = "Bit 5 - TC4"]
65    #[inline(always)]
66    pub fn tc4_(&self) -> Tc4_R {
67        Tc4_R::new(((self.bits >> 5) & 1) != 0)
68    }
69    #[doc = "Bit 6 - TC5"]
70    #[inline(always)]
71    pub fn tc5_(&self) -> Tc5_R {
72        Tc5_R::new(((self.bits >> 6) & 1) != 0)
73    }
74    #[doc = "Bit 7 - PDEC"]
75    #[inline(always)]
76    pub fn pdec_(&self) -> Pdec_R {
77        Pdec_R::new(((self.bits >> 7) & 1) != 0)
78    }
79    #[doc = "Bit 8 - AC"]
80    #[inline(always)]
81    pub fn ac_(&self) -> Ac_R {
82        Ac_R::new(((self.bits >> 8) & 1) != 0)
83    }
84    #[doc = "Bit 9 - AES"]
85    #[inline(always)]
86    pub fn aes_(&self) -> Aes_R {
87        Aes_R::new(((self.bits >> 9) & 1) != 0)
88    }
89    #[doc = "Bit 10 - TRNG"]
90    #[inline(always)]
91    pub fn trng_(&self) -> Trng_R {
92        Trng_R::new(((self.bits >> 10) & 1) != 0)
93    }
94    #[doc = "Bit 11 - ICM"]
95    #[inline(always)]
96    pub fn icm_(&self) -> Icm_R {
97        Icm_R::new(((self.bits >> 11) & 1) != 0)
98    }
99    #[doc = "Bit 12 - PUKCC"]
100    #[inline(always)]
101    pub fn pukcc_(&self) -> Pukcc_R {
102        Pukcc_R::new(((self.bits >> 12) & 1) != 0)
103    }
104    #[doc = "Bit 13 - QSPI"]
105    #[inline(always)]
106    pub fn qspi_(&self) -> Qspi_R {
107        Qspi_R::new(((self.bits >> 13) & 1) != 0)
108    }
109    #[doc = "Bit 14 - CCL"]
110    #[inline(always)]
111    pub fn ccl_(&self) -> Ccl_R {
112        Ccl_R::new(((self.bits >> 14) & 1) != 0)
113    }
114}
115impl W {
116    #[doc = "Bit 3 - TCC2"]
117    #[inline(always)]
118    #[must_use]
119    pub fn tcc2_(&mut self) -> Tcc2_W<IntflagcSpec> {
120        Tcc2_W::new(self, 3)
121    }
122    #[doc = "Bit 4 - TCC3"]
123    #[inline(always)]
124    #[must_use]
125    pub fn tcc3_(&mut self) -> Tcc3_W<IntflagcSpec> {
126        Tcc3_W::new(self, 4)
127    }
128    #[doc = "Bit 5 - TC4"]
129    #[inline(always)]
130    #[must_use]
131    pub fn tc4_(&mut self) -> Tc4_W<IntflagcSpec> {
132        Tc4_W::new(self, 5)
133    }
134    #[doc = "Bit 6 - TC5"]
135    #[inline(always)]
136    #[must_use]
137    pub fn tc5_(&mut self) -> Tc5_W<IntflagcSpec> {
138        Tc5_W::new(self, 6)
139    }
140    #[doc = "Bit 7 - PDEC"]
141    #[inline(always)]
142    #[must_use]
143    pub fn pdec_(&mut self) -> Pdec_W<IntflagcSpec> {
144        Pdec_W::new(self, 7)
145    }
146    #[doc = "Bit 8 - AC"]
147    #[inline(always)]
148    #[must_use]
149    pub fn ac_(&mut self) -> Ac_W<IntflagcSpec> {
150        Ac_W::new(self, 8)
151    }
152    #[doc = "Bit 9 - AES"]
153    #[inline(always)]
154    #[must_use]
155    pub fn aes_(&mut self) -> Aes_W<IntflagcSpec> {
156        Aes_W::new(self, 9)
157    }
158    #[doc = "Bit 10 - TRNG"]
159    #[inline(always)]
160    #[must_use]
161    pub fn trng_(&mut self) -> Trng_W<IntflagcSpec> {
162        Trng_W::new(self, 10)
163    }
164    #[doc = "Bit 11 - ICM"]
165    #[inline(always)]
166    #[must_use]
167    pub fn icm_(&mut self) -> Icm_W<IntflagcSpec> {
168        Icm_W::new(self, 11)
169    }
170    #[doc = "Bit 12 - PUKCC"]
171    #[inline(always)]
172    #[must_use]
173    pub fn pukcc_(&mut self) -> Pukcc_W<IntflagcSpec> {
174        Pukcc_W::new(self, 12)
175    }
176    #[doc = "Bit 13 - QSPI"]
177    #[inline(always)]
178    #[must_use]
179    pub fn qspi_(&mut self) -> Qspi_W<IntflagcSpec> {
180        Qspi_W::new(self, 13)
181    }
182    #[doc = "Bit 14 - CCL"]
183    #[inline(always)]
184    #[must_use]
185    pub fn ccl_(&mut self) -> Ccl_W<IntflagcSpec> {
186        Ccl_W::new(self, 14)
187    }
188}
189#[doc = "Peripheral interrupt flag status - Bridge C\n\nYou can [`read`](crate::Reg::read) this register and get [`intflagc::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intflagc::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
190pub struct IntflagcSpec;
191impl crate::RegisterSpec for IntflagcSpec {
192    type Ux = u32;
193}
194#[doc = "`read()` method returns [`intflagc::R`](R) reader structure"]
195impl crate::Readable for IntflagcSpec {}
196#[doc = "`write(|w| ..)` method takes [`intflagc::W`](W) writer structure"]
197impl crate::Writable for IntflagcSpec {
198    type Safety = crate::Unsafe;
199    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
200    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
201}
202#[doc = "`reset()` method sets INTFLAGC to value 0"]
203impl crate::Resettable for IntflagcSpec {
204    const RESET_VALUE: u32 = 0;
205}