1#[doc = "Reader of register DC3"]
2pub type R = crate::R<u32, super::DC3>;
3#[doc = "Reader of field `PWM0`"]
4pub type PWM0_R = crate::R<bool, bool>;
5#[doc = "Reader of field `PWM1`"]
6pub type PWM1_R = crate::R<bool, bool>;
7#[doc = "Reader of field `PWM2`"]
8pub type PWM2_R = crate::R<bool, bool>;
9#[doc = "Reader of field `PWM3`"]
10pub type PWM3_R = crate::R<bool, bool>;
11#[doc = "Reader of field `PWM4`"]
12pub type PWM4_R = crate::R<bool, bool>;
13#[doc = "Reader of field `PWM5`"]
14pub type PWM5_R = crate::R<bool, bool>;
15#[doc = "Reader of field `C0MINUS`"]
16pub type C0MINUS_R = crate::R<bool, bool>;
17#[doc = "Reader of field `C0PLUS`"]
18pub type C0PLUS_R = crate::R<bool, bool>;
19#[doc = "Reader of field `C0O`"]
20pub type C0O_R = crate::R<bool, bool>;
21#[doc = "Reader of field `C1MINUS`"]
22pub type C1MINUS_R = crate::R<bool, bool>;
23#[doc = "Reader of field `C1PLUS`"]
24pub type C1PLUS_R = crate::R<bool, bool>;
25#[doc = "Reader of field `C1O`"]
26pub type C1O_R = crate::R<bool, bool>;
27#[doc = "Reader of field `C2MINUS`"]
28pub type C2MINUS_R = crate::R<bool, bool>;
29#[doc = "Reader of field `C2PLUS`"]
30pub type C2PLUS_R = crate::R<bool, bool>;
31#[doc = "Reader of field `C2O`"]
32pub type C2O_R = crate::R<bool, bool>;
33#[doc = "Reader of field `PWMFAULT`"]
34pub type PWMFAULT_R = crate::R<bool, bool>;
35#[doc = "Reader of field `ADC0AIN0`"]
36pub type ADC0AIN0_R = crate::R<bool, bool>;
37#[doc = "Reader of field `ADC0AIN1`"]
38pub type ADC0AIN1_R = crate::R<bool, bool>;
39#[doc = "Reader of field `ADC0AIN2`"]
40pub type ADC0AIN2_R = crate::R<bool, bool>;
41#[doc = "Reader of field `ADC0AIN3`"]
42pub type ADC0AIN3_R = crate::R<bool, bool>;
43#[doc = "Reader of field `ADC0AIN4`"]
44pub type ADC0AIN4_R = crate::R<bool, bool>;
45#[doc = "Reader of field `ADC0AIN5`"]
46pub type ADC0AIN5_R = crate::R<bool, bool>;
47#[doc = "Reader of field `ADC0AIN6`"]
48pub type ADC0AIN6_R = crate::R<bool, bool>;
49#[doc = "Reader of field `ADC0AIN7`"]
50pub type ADC0AIN7_R = crate::R<bool, bool>;
51#[doc = "Reader of field `CCP0`"]
52pub type CCP0_R = crate::R<bool, bool>;
53#[doc = "Reader of field `CCP1`"]
54pub type CCP1_R = crate::R<bool, bool>;
55#[doc = "Reader of field `CCP2`"]
56pub type CCP2_R = crate::R<bool, bool>;
57#[doc = "Reader of field `CCP3`"]
58pub type CCP3_R = crate::R<bool, bool>;
59#[doc = "Reader of field `CCP4`"]
60pub type CCP4_R = crate::R<bool, bool>;
61#[doc = "Reader of field `CCP5`"]
62pub type CCP5_R = crate::R<bool, bool>;
63#[doc = "Reader of field `_32KHZ`"]
64pub type _32KHZ_R = crate::R<bool, bool>;
65impl R {
66 #[doc = "Bit 0 - PWM0 Pin Present"]
67 #[inline(always)]
68 pub fn pwm0(&self) -> PWM0_R {
69 PWM0_R::new((self.bits & 0x01) != 0)
70 }
71 #[doc = "Bit 1 - PWM1 Pin Present"]
72 #[inline(always)]
73 pub fn pwm1(&self) -> PWM1_R {
74 PWM1_R::new(((self.bits >> 1) & 0x01) != 0)
75 }
76 #[doc = "Bit 2 - PWM2 Pin Present"]
77 #[inline(always)]
78 pub fn pwm2(&self) -> PWM2_R {
79 PWM2_R::new(((self.bits >> 2) & 0x01) != 0)
80 }
81 #[doc = "Bit 3 - PWM3 Pin Present"]
82 #[inline(always)]
83 pub fn pwm3(&self) -> PWM3_R {
84 PWM3_R::new(((self.bits >> 3) & 0x01) != 0)
85 }
86 #[doc = "Bit 4 - PWM4 Pin Present"]
87 #[inline(always)]
88 pub fn pwm4(&self) -> PWM4_R {
89 PWM4_R::new(((self.bits >> 4) & 0x01) != 0)
90 }
91 #[doc = "Bit 5 - PWM5 Pin Present"]
92 #[inline(always)]
93 pub fn pwm5(&self) -> PWM5_R {
94 PWM5_R::new(((self.bits >> 5) & 0x01) != 0)
95 }
96 #[doc = "Bit 6 - C0- Pin Present"]
97 #[inline(always)]
98 pub fn c0minus(&self) -> C0MINUS_R {
99 C0MINUS_R::new(((self.bits >> 6) & 0x01) != 0)
100 }
101 #[doc = "Bit 7 - C0+ Pin Present"]
102 #[inline(always)]
103 pub fn c0plus(&self) -> C0PLUS_R {
104 C0PLUS_R::new(((self.bits >> 7) & 0x01) != 0)
105 }
106 #[doc = "Bit 8 - C0o Pin Present"]
107 #[inline(always)]
108 pub fn c0o(&self) -> C0O_R {
109 C0O_R::new(((self.bits >> 8) & 0x01) != 0)
110 }
111 #[doc = "Bit 9 - C1- Pin Present"]
112 #[inline(always)]
113 pub fn c1minus(&self) -> C1MINUS_R {
114 C1MINUS_R::new(((self.bits >> 9) & 0x01) != 0)
115 }
116 #[doc = "Bit 10 - C1+ Pin Present"]
117 #[inline(always)]
118 pub fn c1plus(&self) -> C1PLUS_R {
119 C1PLUS_R::new(((self.bits >> 10) & 0x01) != 0)
120 }
121 #[doc = "Bit 11 - C1o Pin Present"]
122 #[inline(always)]
123 pub fn c1o(&self) -> C1O_R {
124 C1O_R::new(((self.bits >> 11) & 0x01) != 0)
125 }
126 #[doc = "Bit 12 - C2- Pin Present"]
127 #[inline(always)]
128 pub fn c2minus(&self) -> C2MINUS_R {
129 C2MINUS_R::new(((self.bits >> 12) & 0x01) != 0)
130 }
131 #[doc = "Bit 13 - C2+ Pin Present"]
132 #[inline(always)]
133 pub fn c2plus(&self) -> C2PLUS_R {
134 C2PLUS_R::new(((self.bits >> 13) & 0x01) != 0)
135 }
136 #[doc = "Bit 14 - C2o Pin Present"]
137 #[inline(always)]
138 pub fn c2o(&self) -> C2O_R {
139 C2O_R::new(((self.bits >> 14) & 0x01) != 0)
140 }
141 #[doc = "Bit 15 - PWM Fault Pin Present"]
142 #[inline(always)]
143 pub fn pwmfault(&self) -> PWMFAULT_R {
144 PWMFAULT_R::new(((self.bits >> 15) & 0x01) != 0)
145 }
146 #[doc = "Bit 16 - ADC Module 0 AIN0 Pin Present"]
147 #[inline(always)]
148 pub fn adc0ain0(&self) -> ADC0AIN0_R {
149 ADC0AIN0_R::new(((self.bits >> 16) & 0x01) != 0)
150 }
151 #[doc = "Bit 17 - ADC Module 0 AIN1 Pin Present"]
152 #[inline(always)]
153 pub fn adc0ain1(&self) -> ADC0AIN1_R {
154 ADC0AIN1_R::new(((self.bits >> 17) & 0x01) != 0)
155 }
156 #[doc = "Bit 18 - ADC Module 0 AIN2 Pin Present"]
157 #[inline(always)]
158 pub fn adc0ain2(&self) -> ADC0AIN2_R {
159 ADC0AIN2_R::new(((self.bits >> 18) & 0x01) != 0)
160 }
161 #[doc = "Bit 19 - ADC Module 0 AIN3 Pin Present"]
162 #[inline(always)]
163 pub fn adc0ain3(&self) -> ADC0AIN3_R {
164 ADC0AIN3_R::new(((self.bits >> 19) & 0x01) != 0)
165 }
166 #[doc = "Bit 20 - ADC Module 0 AIN4 Pin Present"]
167 #[inline(always)]
168 pub fn adc0ain4(&self) -> ADC0AIN4_R {
169 ADC0AIN4_R::new(((self.bits >> 20) & 0x01) != 0)
170 }
171 #[doc = "Bit 21 - ADC Module 0 AIN5 Pin Present"]
172 #[inline(always)]
173 pub fn adc0ain5(&self) -> ADC0AIN5_R {
174 ADC0AIN5_R::new(((self.bits >> 21) & 0x01) != 0)
175 }
176 #[doc = "Bit 22 - ADC Module 0 AIN6 Pin Present"]
177 #[inline(always)]
178 pub fn adc0ain6(&self) -> ADC0AIN6_R {
179 ADC0AIN6_R::new(((self.bits >> 22) & 0x01) != 0)
180 }
181 #[doc = "Bit 23 - ADC Module 0 AIN7 Pin Present"]
182 #[inline(always)]
183 pub fn adc0ain7(&self) -> ADC0AIN7_R {
184 ADC0AIN7_R::new(((self.bits >> 23) & 0x01) != 0)
185 }
186 #[doc = "Bit 24 - T0CCP0 Pin Present"]
187 #[inline(always)]
188 pub fn ccp0(&self) -> CCP0_R {
189 CCP0_R::new(((self.bits >> 24) & 0x01) != 0)
190 }
191 #[doc = "Bit 25 - T0CCP1 Pin Present"]
192 #[inline(always)]
193 pub fn ccp1(&self) -> CCP1_R {
194 CCP1_R::new(((self.bits >> 25) & 0x01) != 0)
195 }
196 #[doc = "Bit 26 - T1CCP0 Pin Present"]
197 #[inline(always)]
198 pub fn ccp2(&self) -> CCP2_R {
199 CCP2_R::new(((self.bits >> 26) & 0x01) != 0)
200 }
201 #[doc = "Bit 27 - T1CCP1 Pin Present"]
202 #[inline(always)]
203 pub fn ccp3(&self) -> CCP3_R {
204 CCP3_R::new(((self.bits >> 27) & 0x01) != 0)
205 }
206 #[doc = "Bit 28 - T2CCP0 Pin Present"]
207 #[inline(always)]
208 pub fn ccp4(&self) -> CCP4_R {
209 CCP4_R::new(((self.bits >> 28) & 0x01) != 0)
210 }
211 #[doc = "Bit 29 - T2CCP1 Pin Present"]
212 #[inline(always)]
213 pub fn ccp5(&self) -> CCP5_R {
214 CCP5_R::new(((self.bits >> 29) & 0x01) != 0)
215 }
216 #[doc = "Bit 31 - 32KHz Input Clock Available"]
217 #[inline(always)]
218 pub fn _32khz(&self) -> _32KHZ_R {
219 _32KHZ_R::new(((self.bits >> 31) & 0x01) != 0)
220 }
221}