atsamd51n/pac/
intflagd.rs1#[doc = "Register `INTFLAGD` reader"]
2pub type R = crate::R<IntflagdSpec>;
3#[doc = "Register `INTFLAGD` writer"]
4pub type W = crate::W<IntflagdSpec>;
5#[doc = "Field `SERCOM4_` reader - SERCOM4"]
6pub type Sercom4_R = crate::BitReader;
7#[doc = "Field `SERCOM4_` writer - SERCOM4"]
8pub type Sercom4_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `SERCOM5_` reader - SERCOM5"]
10pub type Sercom5_R = crate::BitReader;
11#[doc = "Field `SERCOM5_` writer - SERCOM5"]
12pub type Sercom5_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `SERCOM6_` reader - SERCOM6"]
14pub type Sercom6_R = crate::BitReader;
15#[doc = "Field `SERCOM6_` writer - SERCOM6"]
16pub type Sercom6_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `SERCOM7_` reader - SERCOM7"]
18pub type Sercom7_R = crate::BitReader;
19#[doc = "Field `SERCOM7_` writer - SERCOM7"]
20pub type Sercom7_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `TCC4_` reader - TCC4"]
22pub type Tcc4_R = crate::BitReader;
23#[doc = "Field `TCC4_` writer - TCC4"]
24pub type Tcc4_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `TC6_` reader - TC6"]
26pub type Tc6_R = crate::BitReader;
27#[doc = "Field `TC6_` writer - TC6"]
28pub type Tc6_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `TC7_` reader - TC7"]
30pub type Tc7_R = crate::BitReader;
31#[doc = "Field `TC7_` writer - TC7"]
32pub type Tc7_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `ADC0_` reader - ADC0"]
34pub type Adc0_R = crate::BitReader;
35#[doc = "Field `ADC0_` writer - ADC0"]
36pub type Adc0_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `ADC1_` reader - ADC1"]
38pub type Adc1_R = crate::BitReader;
39#[doc = "Field `ADC1_` writer - ADC1"]
40pub type Adc1_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `DAC_` reader - DAC"]
42pub type Dac_R = crate::BitReader;
43#[doc = "Field `DAC_` writer - DAC"]
44pub type Dac_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `I2S_` reader - I2S"]
46pub type I2s_R = crate::BitReader;
47#[doc = "Field `I2S_` writer - I2S"]
48pub type I2s_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `PCC_` reader - PCC"]
50pub type Pcc_R = crate::BitReader;
51#[doc = "Field `PCC_` writer - PCC"]
52pub type Pcc_W<'a, REG> = crate::BitWriter<'a, REG>;
53impl R {
54 #[doc = "Bit 0 - SERCOM4"]
55 #[inline(always)]
56 pub fn sercom4_(&self) -> Sercom4_R {
57 Sercom4_R::new((self.bits & 1) != 0)
58 }
59 #[doc = "Bit 1 - SERCOM5"]
60 #[inline(always)]
61 pub fn sercom5_(&self) -> Sercom5_R {
62 Sercom5_R::new(((self.bits >> 1) & 1) != 0)
63 }
64 #[doc = "Bit 2 - SERCOM6"]
65 #[inline(always)]
66 pub fn sercom6_(&self) -> Sercom6_R {
67 Sercom6_R::new(((self.bits >> 2) & 1) != 0)
68 }
69 #[doc = "Bit 3 - SERCOM7"]
70 #[inline(always)]
71 pub fn sercom7_(&self) -> Sercom7_R {
72 Sercom7_R::new(((self.bits >> 3) & 1) != 0)
73 }
74 #[doc = "Bit 4 - TCC4"]
75 #[inline(always)]
76 pub fn tcc4_(&self) -> Tcc4_R {
77 Tcc4_R::new(((self.bits >> 4) & 1) != 0)
78 }
79 #[doc = "Bit 5 - TC6"]
80 #[inline(always)]
81 pub fn tc6_(&self) -> Tc6_R {
82 Tc6_R::new(((self.bits >> 5) & 1) != 0)
83 }
84 #[doc = "Bit 6 - TC7"]
85 #[inline(always)]
86 pub fn tc7_(&self) -> Tc7_R {
87 Tc7_R::new(((self.bits >> 6) & 1) != 0)
88 }
89 #[doc = "Bit 7 - ADC0"]
90 #[inline(always)]
91 pub fn adc0_(&self) -> Adc0_R {
92 Adc0_R::new(((self.bits >> 7) & 1) != 0)
93 }
94 #[doc = "Bit 8 - ADC1"]
95 #[inline(always)]
96 pub fn adc1_(&self) -> Adc1_R {
97 Adc1_R::new(((self.bits >> 8) & 1) != 0)
98 }
99 #[doc = "Bit 9 - DAC"]
100 #[inline(always)]
101 pub fn dac_(&self) -> Dac_R {
102 Dac_R::new(((self.bits >> 9) & 1) != 0)
103 }
104 #[doc = "Bit 10 - I2S"]
105 #[inline(always)]
106 pub fn i2s_(&self) -> I2s_R {
107 I2s_R::new(((self.bits >> 10) & 1) != 0)
108 }
109 #[doc = "Bit 11 - PCC"]
110 #[inline(always)]
111 pub fn pcc_(&self) -> Pcc_R {
112 Pcc_R::new(((self.bits >> 11) & 1) != 0)
113 }
114}
115impl W {
116 #[doc = "Bit 0 - SERCOM4"]
117 #[inline(always)]
118 #[must_use]
119 pub fn sercom4_(&mut self) -> Sercom4_W<IntflagdSpec> {
120 Sercom4_W::new(self, 0)
121 }
122 #[doc = "Bit 1 - SERCOM5"]
123 #[inline(always)]
124 #[must_use]
125 pub fn sercom5_(&mut self) -> Sercom5_W<IntflagdSpec> {
126 Sercom5_W::new(self, 1)
127 }
128 #[doc = "Bit 2 - SERCOM6"]
129 #[inline(always)]
130 #[must_use]
131 pub fn sercom6_(&mut self) -> Sercom6_W<IntflagdSpec> {
132 Sercom6_W::new(self, 2)
133 }
134 #[doc = "Bit 3 - SERCOM7"]
135 #[inline(always)]
136 #[must_use]
137 pub fn sercom7_(&mut self) -> Sercom7_W<IntflagdSpec> {
138 Sercom7_W::new(self, 3)
139 }
140 #[doc = "Bit 4 - TCC4"]
141 #[inline(always)]
142 #[must_use]
143 pub fn tcc4_(&mut self) -> Tcc4_W<IntflagdSpec> {
144 Tcc4_W::new(self, 4)
145 }
146 #[doc = "Bit 5 - TC6"]
147 #[inline(always)]
148 #[must_use]
149 pub fn tc6_(&mut self) -> Tc6_W<IntflagdSpec> {
150 Tc6_W::new(self, 5)
151 }
152 #[doc = "Bit 6 - TC7"]
153 #[inline(always)]
154 #[must_use]
155 pub fn tc7_(&mut self) -> Tc7_W<IntflagdSpec> {
156 Tc7_W::new(self, 6)
157 }
158 #[doc = "Bit 7 - ADC0"]
159 #[inline(always)]
160 #[must_use]
161 pub fn adc0_(&mut self) -> Adc0_W<IntflagdSpec> {
162 Adc0_W::new(self, 7)
163 }
164 #[doc = "Bit 8 - ADC1"]
165 #[inline(always)]
166 #[must_use]
167 pub fn adc1_(&mut self) -> Adc1_W<IntflagdSpec> {
168 Adc1_W::new(self, 8)
169 }
170 #[doc = "Bit 9 - DAC"]
171 #[inline(always)]
172 #[must_use]
173 pub fn dac_(&mut self) -> Dac_W<IntflagdSpec> {
174 Dac_W::new(self, 9)
175 }
176 #[doc = "Bit 10 - I2S"]
177 #[inline(always)]
178 #[must_use]
179 pub fn i2s_(&mut self) -> I2s_W<IntflagdSpec> {
180 I2s_W::new(self, 10)
181 }
182 #[doc = "Bit 11 - PCC"]
183 #[inline(always)]
184 #[must_use]
185 pub fn pcc_(&mut self) -> Pcc_W<IntflagdSpec> {
186 Pcc_W::new(self, 11)
187 }
188}
189#[doc = "Peripheral interrupt flag status - Bridge D\n\nYou can [`read`](crate::Reg::read) this register and get [`intflagd::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`intflagd::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
190pub struct IntflagdSpec;
191impl crate::RegisterSpec for IntflagdSpec {
192 type Ux = u32;
193}
194#[doc = "`read()` method returns [`intflagd::R`](R) reader structure"]
195impl crate::Readable for IntflagdSpec {}
196#[doc = "`write(|w| ..)` method takes [`intflagd::W`](W) writer structure"]
197impl crate::Writable for IntflagdSpec {
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 INTFLAGD to value 0"]
203impl crate::Resettable for IntflagdSpec {
204 const RESET_VALUE: u32 = 0;
205}