bl616_pac/pwm/group/
channel.rs

1#[doc = "Register `channel` reader"]
2pub struct R(crate::R<CHANNEL_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<CHANNEL_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<CHANNEL_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<CHANNEL_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Register `channel` writer"]
17pub struct W(crate::W<CHANNEL_SPEC>);
18impl core::ops::Deref for W {
19    type Target = crate::W<CHANNEL_SPEC>;
20    #[inline(always)]
21    fn deref(&self) -> &Self::Target {
22        &self.0
23    }
24}
25impl core::ops::DerefMut for W {
26    #[inline(always)]
27    fn deref_mut(&mut self) -> &mut Self::Target {
28        &mut self.0
29    }
30}
31impl From<crate::W<CHANNEL_SPEC>> for W {
32    #[inline(always)]
33    fn from(writer: crate::W<CHANNEL_SPEC>) -> Self {
34        W(writer)
35    }
36}
37#[doc = "Field `positive_signal[0-3]` reader - Enable or disable positive signal for channel"]
38pub type POSITIVE_SIGNAL_R = crate::BitReader<bool>;
39#[doc = "Field `positive_signal[0-3]` writer - Enable or disable positive signal for channel"]
40pub type POSITIVE_SIGNAL_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHANNEL_SPEC, bool, O>;
41#[doc = "Field `positive_idle[0-3]` reader - Idle state of positive signal"]
42pub type POSITIVE_IDLE_R = crate::BitReader<bool>;
43#[doc = "Field `positive_idle[0-3]` writer - Idle state of positive signal"]
44pub type POSITIVE_IDLE_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHANNEL_SPEC, bool, O>;
45#[doc = "Field `negative_signal[0-3]` reader - Enable or disable negative signal for channel"]
46pub type NEGATIVE_SIGNAL_R = crate::BitReader<bool>;
47#[doc = "Field `negative_signal[0-3]` writer - Enable or disable negative signal for channel"]
48pub type NEGATIVE_SIGNAL_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHANNEL_SPEC, bool, O>;
49#[doc = "Field `negative_idle[0-3]` reader - Idle state of negative signal"]
50pub type NEGATIVE_IDLE_R = crate::BitReader<bool>;
51#[doc = "Field `negative_idle[0-3]` writer - Idle state of negative signal"]
52pub type NEGATIVE_IDLE_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHANNEL_SPEC, bool, O>;
53#[doc = "Field `positive_polarity[0-3]` reader - Polarity of positive signal"]
54pub type POSITIVE_POLARITY_R = crate::BitReader<bool>;
55#[doc = "Field `positive_polarity[0-3]` writer - Polarity of positive signal"]
56pub type POSITIVE_POLARITY_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHANNEL_SPEC, bool, O>;
57#[doc = "Field `negative_polarity[0-3]` reader - Polarity of negative signal"]
58pub type NEGATIVE_POLARITY_R = crate::BitReader<bool>;
59#[doc = "Field `negative_polarity[0-3]` writer - Polarity of negative signal"]
60pub type NEGATIVE_POLARITY_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHANNEL_SPEC, bool, O>;
61#[doc = "Field `positive_break[0-3]` reader - Break state on positive signal of this channel"]
62pub type POSITIVE_BREAK_R = crate::BitReader<bool>;
63#[doc = "Field `positive_break[0-3]` writer - Break state on positive signal of this channel"]
64pub type POSITIVE_BREAK_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHANNEL_SPEC, bool, O>;
65#[doc = "Field `negative_break[0-3]` reader - Break state on negative signal of this channel"]
66pub type NEGATIVE_BREAK_R = crate::BitReader<bool>;
67#[doc = "Field `negative_break[0-3]` writer - Break state on negative signal of this channel"]
68pub type NEGATIVE_BREAK_W<'a, const O: u8> = crate::BitWriter<'a, u32, CHANNEL_SPEC, bool, O>;
69impl R {
70    #[doc = "Enable or disable positive signal for channel"]
71    #[inline(always)]
72    pub unsafe fn positive_signal(&self, n: u8) -> POSITIVE_SIGNAL_R {
73        POSITIVE_SIGNAL_R::new(((self.bits >> (n * 4)) & 1) != 0)
74    }
75    #[doc = "Bit 0 - Enable or disable positive signal for channel"]
76    #[inline(always)]
77    pub fn positive_signal0(&self) -> POSITIVE_SIGNAL_R {
78        POSITIVE_SIGNAL_R::new((self.bits & 1) != 0)
79    }
80    #[doc = "Bit 4 - Enable or disable positive signal for channel"]
81    #[inline(always)]
82    pub fn positive_signal1(&self) -> POSITIVE_SIGNAL_R {
83        POSITIVE_SIGNAL_R::new(((self.bits >> 4) & 1) != 0)
84    }
85    #[doc = "Bit 8 - Enable or disable positive signal for channel"]
86    #[inline(always)]
87    pub fn positive_signal2(&self) -> POSITIVE_SIGNAL_R {
88        POSITIVE_SIGNAL_R::new(((self.bits >> 8) & 1) != 0)
89    }
90    #[doc = "Bit 12 - Enable or disable positive signal for channel"]
91    #[inline(always)]
92    pub fn positive_signal3(&self) -> POSITIVE_SIGNAL_R {
93        POSITIVE_SIGNAL_R::new(((self.bits >> 12) & 1) != 0)
94    }
95    #[doc = "Idle state of positive signal"]
96    #[inline(always)]
97    pub unsafe fn positive_idle(&self, n: u8) -> POSITIVE_IDLE_R {
98        POSITIVE_IDLE_R::new(((self.bits >> (n * 4 + 1)) & 1) != 0)
99    }
100    #[doc = "Bit 1 - Idle state of positive signal"]
101    #[inline(always)]
102    pub fn positive_idle0(&self) -> POSITIVE_IDLE_R {
103        POSITIVE_IDLE_R::new(((self.bits >> 1) & 1) != 0)
104    }
105    #[doc = "Bit 5 - Idle state of positive signal"]
106    #[inline(always)]
107    pub fn positive_idle1(&self) -> POSITIVE_IDLE_R {
108        POSITIVE_IDLE_R::new(((self.bits >> 5) & 1) != 0)
109    }
110    #[doc = "Bit 9 - Idle state of positive signal"]
111    #[inline(always)]
112    pub fn positive_idle2(&self) -> POSITIVE_IDLE_R {
113        POSITIVE_IDLE_R::new(((self.bits >> 9) & 1) != 0)
114    }
115    #[doc = "Bit 13 - Idle state of positive signal"]
116    #[inline(always)]
117    pub fn positive_idle3(&self) -> POSITIVE_IDLE_R {
118        POSITIVE_IDLE_R::new(((self.bits >> 13) & 1) != 0)
119    }
120    #[doc = "Enable or disable negative signal for channel"]
121    #[inline(always)]
122    pub unsafe fn negative_signal(&self, n: u8) -> NEGATIVE_SIGNAL_R {
123        NEGATIVE_SIGNAL_R::new(((self.bits >> (n * 4 + 2)) & 1) != 0)
124    }
125    #[doc = "Bit 2 - Enable or disable negative signal for channel"]
126    #[inline(always)]
127    pub fn negative_signal0(&self) -> NEGATIVE_SIGNAL_R {
128        NEGATIVE_SIGNAL_R::new(((self.bits >> 2) & 1) != 0)
129    }
130    #[doc = "Bit 6 - Enable or disable negative signal for channel"]
131    #[inline(always)]
132    pub fn negative_signal1(&self) -> NEGATIVE_SIGNAL_R {
133        NEGATIVE_SIGNAL_R::new(((self.bits >> 6) & 1) != 0)
134    }
135    #[doc = "Bit 10 - Enable or disable negative signal for channel"]
136    #[inline(always)]
137    pub fn negative_signal2(&self) -> NEGATIVE_SIGNAL_R {
138        NEGATIVE_SIGNAL_R::new(((self.bits >> 10) & 1) != 0)
139    }
140    #[doc = "Bit 14 - Enable or disable negative signal for channel"]
141    #[inline(always)]
142    pub fn negative_signal3(&self) -> NEGATIVE_SIGNAL_R {
143        NEGATIVE_SIGNAL_R::new(((self.bits >> 14) & 1) != 0)
144    }
145    #[doc = "Idle state of negative signal"]
146    #[inline(always)]
147    pub unsafe fn negative_idle(&self, n: u8) -> NEGATIVE_IDLE_R {
148        NEGATIVE_IDLE_R::new(((self.bits >> (n * 4 + 3)) & 1) != 0)
149    }
150    #[doc = "Bit 3 - Idle state of negative signal"]
151    #[inline(always)]
152    pub fn negative_idle0(&self) -> NEGATIVE_IDLE_R {
153        NEGATIVE_IDLE_R::new(((self.bits >> 3) & 1) != 0)
154    }
155    #[doc = "Bit 7 - Idle state of negative signal"]
156    #[inline(always)]
157    pub fn negative_idle1(&self) -> NEGATIVE_IDLE_R {
158        NEGATIVE_IDLE_R::new(((self.bits >> 7) & 1) != 0)
159    }
160    #[doc = "Bit 11 - Idle state of negative signal"]
161    #[inline(always)]
162    pub fn negative_idle2(&self) -> NEGATIVE_IDLE_R {
163        NEGATIVE_IDLE_R::new(((self.bits >> 11) & 1) != 0)
164    }
165    #[doc = "Bit 15 - Idle state of negative signal"]
166    #[inline(always)]
167    pub fn negative_idle3(&self) -> NEGATIVE_IDLE_R {
168        NEGATIVE_IDLE_R::new(((self.bits >> 15) & 1) != 0)
169    }
170    #[doc = "Polarity of positive signal"]
171    #[inline(always)]
172    pub unsafe fn positive_polarity(&self, n: u8) -> POSITIVE_POLARITY_R {
173        POSITIVE_POLARITY_R::new(((self.bits >> (n * 2 + 16)) & 1) != 0)
174    }
175    #[doc = "Bit 16 - Polarity of positive signal"]
176    #[inline(always)]
177    pub fn positive_polarity0(&self) -> POSITIVE_POLARITY_R {
178        POSITIVE_POLARITY_R::new(((self.bits >> 16) & 1) != 0)
179    }
180    #[doc = "Bit 18 - Polarity of positive signal"]
181    #[inline(always)]
182    pub fn positive_polarity1(&self) -> POSITIVE_POLARITY_R {
183        POSITIVE_POLARITY_R::new(((self.bits >> 18) & 1) != 0)
184    }
185    #[doc = "Bit 20 - Polarity of positive signal"]
186    #[inline(always)]
187    pub fn positive_polarity2(&self) -> POSITIVE_POLARITY_R {
188        POSITIVE_POLARITY_R::new(((self.bits >> 20) & 1) != 0)
189    }
190    #[doc = "Bit 22 - Polarity of positive signal"]
191    #[inline(always)]
192    pub fn positive_polarity3(&self) -> POSITIVE_POLARITY_R {
193        POSITIVE_POLARITY_R::new(((self.bits >> 22) & 1) != 0)
194    }
195    #[doc = "Polarity of negative signal"]
196    #[inline(always)]
197    pub unsafe fn negative_polarity(&self, n: u8) -> NEGATIVE_POLARITY_R {
198        NEGATIVE_POLARITY_R::new(((self.bits >> (n * 2 + 17)) & 1) != 0)
199    }
200    #[doc = "Bit 17 - Polarity of negative signal"]
201    #[inline(always)]
202    pub fn negative_polarity0(&self) -> NEGATIVE_POLARITY_R {
203        NEGATIVE_POLARITY_R::new(((self.bits >> 17) & 1) != 0)
204    }
205    #[doc = "Bit 19 - Polarity of negative signal"]
206    #[inline(always)]
207    pub fn negative_polarity1(&self) -> NEGATIVE_POLARITY_R {
208        NEGATIVE_POLARITY_R::new(((self.bits >> 19) & 1) != 0)
209    }
210    #[doc = "Bit 21 - Polarity of negative signal"]
211    #[inline(always)]
212    pub fn negative_polarity2(&self) -> NEGATIVE_POLARITY_R {
213        NEGATIVE_POLARITY_R::new(((self.bits >> 21) & 1) != 0)
214    }
215    #[doc = "Bit 23 - Polarity of negative signal"]
216    #[inline(always)]
217    pub fn negative_polarity3(&self) -> NEGATIVE_POLARITY_R {
218        NEGATIVE_POLARITY_R::new(((self.bits >> 23) & 1) != 0)
219    }
220    #[doc = "Break state on positive signal of this channel"]
221    #[inline(always)]
222    pub unsafe fn positive_break(&self, n: u8) -> POSITIVE_BREAK_R {
223        POSITIVE_BREAK_R::new(((self.bits >> (n * 2 + 24)) & 1) != 0)
224    }
225    #[doc = "Bit 24 - Break state on positive signal of this channel"]
226    #[inline(always)]
227    pub fn positive_break0(&self) -> POSITIVE_BREAK_R {
228        POSITIVE_BREAK_R::new(((self.bits >> 24) & 1) != 0)
229    }
230    #[doc = "Bit 26 - Break state on positive signal of this channel"]
231    #[inline(always)]
232    pub fn positive_break1(&self) -> POSITIVE_BREAK_R {
233        POSITIVE_BREAK_R::new(((self.bits >> 26) & 1) != 0)
234    }
235    #[doc = "Bit 28 - Break state on positive signal of this channel"]
236    #[inline(always)]
237    pub fn positive_break2(&self) -> POSITIVE_BREAK_R {
238        POSITIVE_BREAK_R::new(((self.bits >> 28) & 1) != 0)
239    }
240    #[doc = "Bit 30 - Break state on positive signal of this channel"]
241    #[inline(always)]
242    pub fn positive_break3(&self) -> POSITIVE_BREAK_R {
243        POSITIVE_BREAK_R::new(((self.bits >> 30) & 1) != 0)
244    }
245    #[doc = "Break state on negative signal of this channel"]
246    #[inline(always)]
247    pub unsafe fn negative_break(&self, n: u8) -> NEGATIVE_BREAK_R {
248        NEGATIVE_BREAK_R::new(((self.bits >> (n * 2 + 25)) & 1) != 0)
249    }
250    #[doc = "Bit 25 - Break state on negative signal of this channel"]
251    #[inline(always)]
252    pub fn negative_break0(&self) -> NEGATIVE_BREAK_R {
253        NEGATIVE_BREAK_R::new(((self.bits >> 25) & 1) != 0)
254    }
255    #[doc = "Bit 27 - Break state on negative signal of this channel"]
256    #[inline(always)]
257    pub fn negative_break1(&self) -> NEGATIVE_BREAK_R {
258        NEGATIVE_BREAK_R::new(((self.bits >> 27) & 1) != 0)
259    }
260    #[doc = "Bit 29 - Break state on negative signal of this channel"]
261    #[inline(always)]
262    pub fn negative_break2(&self) -> NEGATIVE_BREAK_R {
263        NEGATIVE_BREAK_R::new(((self.bits >> 29) & 1) != 0)
264    }
265    #[doc = "Bit 31 - Break state on negative signal of this channel"]
266    #[inline(always)]
267    pub fn negative_break3(&self) -> NEGATIVE_BREAK_R {
268        NEGATIVE_BREAK_R::new(((self.bits >> 31) & 1) != 0)
269    }
270}
271impl W {
272    #[doc = "Enable or disable positive signal for channel"]
273    #[inline(always)]
274    #[must_use]
275    pub unsafe fn positive_signal<const O: u8>(&mut self) -> POSITIVE_SIGNAL_W<O> {
276        POSITIVE_SIGNAL_W::new(self)
277    }
278    #[doc = "Bit 0 - Enable or disable positive signal for channel"]
279    #[inline(always)]
280    #[must_use]
281    pub fn positive_signal0(&mut self) -> POSITIVE_SIGNAL_W<0> {
282        POSITIVE_SIGNAL_W::new(self)
283    }
284    #[doc = "Bit 4 - Enable or disable positive signal for channel"]
285    #[inline(always)]
286    #[must_use]
287    pub fn positive_signal1(&mut self) -> POSITIVE_SIGNAL_W<4> {
288        POSITIVE_SIGNAL_W::new(self)
289    }
290    #[doc = "Bit 8 - Enable or disable positive signal for channel"]
291    #[inline(always)]
292    #[must_use]
293    pub fn positive_signal2(&mut self) -> POSITIVE_SIGNAL_W<8> {
294        POSITIVE_SIGNAL_W::new(self)
295    }
296    #[doc = "Bit 12 - Enable or disable positive signal for channel"]
297    #[inline(always)]
298    #[must_use]
299    pub fn positive_signal3(&mut self) -> POSITIVE_SIGNAL_W<12> {
300        POSITIVE_SIGNAL_W::new(self)
301    }
302    #[doc = "Idle state of positive signal"]
303    #[inline(always)]
304    #[must_use]
305    pub unsafe fn positive_idle<const O: u8>(&mut self) -> POSITIVE_IDLE_W<O> {
306        POSITIVE_IDLE_W::new(self)
307    }
308    #[doc = "Bit 1 - Idle state of positive signal"]
309    #[inline(always)]
310    #[must_use]
311    pub fn positive_idle0(&mut self) -> POSITIVE_IDLE_W<1> {
312        POSITIVE_IDLE_W::new(self)
313    }
314    #[doc = "Bit 5 - Idle state of positive signal"]
315    #[inline(always)]
316    #[must_use]
317    pub fn positive_idle1(&mut self) -> POSITIVE_IDLE_W<5> {
318        POSITIVE_IDLE_W::new(self)
319    }
320    #[doc = "Bit 9 - Idle state of positive signal"]
321    #[inline(always)]
322    #[must_use]
323    pub fn positive_idle2(&mut self) -> POSITIVE_IDLE_W<9> {
324        POSITIVE_IDLE_W::new(self)
325    }
326    #[doc = "Bit 13 - Idle state of positive signal"]
327    #[inline(always)]
328    #[must_use]
329    pub fn positive_idle3(&mut self) -> POSITIVE_IDLE_W<13> {
330        POSITIVE_IDLE_W::new(self)
331    }
332    #[doc = "Enable or disable negative signal for channel"]
333    #[inline(always)]
334    #[must_use]
335    pub unsafe fn negative_signal<const O: u8>(&mut self) -> NEGATIVE_SIGNAL_W<O> {
336        NEGATIVE_SIGNAL_W::new(self)
337    }
338    #[doc = "Bit 2 - Enable or disable negative signal for channel"]
339    #[inline(always)]
340    #[must_use]
341    pub fn negative_signal0(&mut self) -> NEGATIVE_SIGNAL_W<2> {
342        NEGATIVE_SIGNAL_W::new(self)
343    }
344    #[doc = "Bit 6 - Enable or disable negative signal for channel"]
345    #[inline(always)]
346    #[must_use]
347    pub fn negative_signal1(&mut self) -> NEGATIVE_SIGNAL_W<6> {
348        NEGATIVE_SIGNAL_W::new(self)
349    }
350    #[doc = "Bit 10 - Enable or disable negative signal for channel"]
351    #[inline(always)]
352    #[must_use]
353    pub fn negative_signal2(&mut self) -> NEGATIVE_SIGNAL_W<10> {
354        NEGATIVE_SIGNAL_W::new(self)
355    }
356    #[doc = "Bit 14 - Enable or disable negative signal for channel"]
357    #[inline(always)]
358    #[must_use]
359    pub fn negative_signal3(&mut self) -> NEGATIVE_SIGNAL_W<14> {
360        NEGATIVE_SIGNAL_W::new(self)
361    }
362    #[doc = "Idle state of negative signal"]
363    #[inline(always)]
364    #[must_use]
365    pub unsafe fn negative_idle<const O: u8>(&mut self) -> NEGATIVE_IDLE_W<O> {
366        NEGATIVE_IDLE_W::new(self)
367    }
368    #[doc = "Bit 3 - Idle state of negative signal"]
369    #[inline(always)]
370    #[must_use]
371    pub fn negative_idle0(&mut self) -> NEGATIVE_IDLE_W<3> {
372        NEGATIVE_IDLE_W::new(self)
373    }
374    #[doc = "Bit 7 - Idle state of negative signal"]
375    #[inline(always)]
376    #[must_use]
377    pub fn negative_idle1(&mut self) -> NEGATIVE_IDLE_W<7> {
378        NEGATIVE_IDLE_W::new(self)
379    }
380    #[doc = "Bit 11 - Idle state of negative signal"]
381    #[inline(always)]
382    #[must_use]
383    pub fn negative_idle2(&mut self) -> NEGATIVE_IDLE_W<11> {
384        NEGATIVE_IDLE_W::new(self)
385    }
386    #[doc = "Bit 15 - Idle state of negative signal"]
387    #[inline(always)]
388    #[must_use]
389    pub fn negative_idle3(&mut self) -> NEGATIVE_IDLE_W<15> {
390        NEGATIVE_IDLE_W::new(self)
391    }
392    #[doc = "Polarity of positive signal"]
393    #[inline(always)]
394    #[must_use]
395    pub unsafe fn positive_polarity<const O: u8>(&mut self) -> POSITIVE_POLARITY_W<O> {
396        POSITIVE_POLARITY_W::new(self)
397    }
398    #[doc = "Bit 16 - Polarity of positive signal"]
399    #[inline(always)]
400    #[must_use]
401    pub fn positive_polarity0(&mut self) -> POSITIVE_POLARITY_W<16> {
402        POSITIVE_POLARITY_W::new(self)
403    }
404    #[doc = "Bit 18 - Polarity of positive signal"]
405    #[inline(always)]
406    #[must_use]
407    pub fn positive_polarity1(&mut self) -> POSITIVE_POLARITY_W<18> {
408        POSITIVE_POLARITY_W::new(self)
409    }
410    #[doc = "Bit 20 - Polarity of positive signal"]
411    #[inline(always)]
412    #[must_use]
413    pub fn positive_polarity2(&mut self) -> POSITIVE_POLARITY_W<20> {
414        POSITIVE_POLARITY_W::new(self)
415    }
416    #[doc = "Bit 22 - Polarity of positive signal"]
417    #[inline(always)]
418    #[must_use]
419    pub fn positive_polarity3(&mut self) -> POSITIVE_POLARITY_W<22> {
420        POSITIVE_POLARITY_W::new(self)
421    }
422    #[doc = "Polarity of negative signal"]
423    #[inline(always)]
424    #[must_use]
425    pub unsafe fn negative_polarity<const O: u8>(&mut self) -> NEGATIVE_POLARITY_W<O> {
426        NEGATIVE_POLARITY_W::new(self)
427    }
428    #[doc = "Bit 17 - Polarity of negative signal"]
429    #[inline(always)]
430    #[must_use]
431    pub fn negative_polarity0(&mut self) -> NEGATIVE_POLARITY_W<17> {
432        NEGATIVE_POLARITY_W::new(self)
433    }
434    #[doc = "Bit 19 - Polarity of negative signal"]
435    #[inline(always)]
436    #[must_use]
437    pub fn negative_polarity1(&mut self) -> NEGATIVE_POLARITY_W<19> {
438        NEGATIVE_POLARITY_W::new(self)
439    }
440    #[doc = "Bit 21 - Polarity of negative signal"]
441    #[inline(always)]
442    #[must_use]
443    pub fn negative_polarity2(&mut self) -> NEGATIVE_POLARITY_W<21> {
444        NEGATIVE_POLARITY_W::new(self)
445    }
446    #[doc = "Bit 23 - Polarity of negative signal"]
447    #[inline(always)]
448    #[must_use]
449    pub fn negative_polarity3(&mut self) -> NEGATIVE_POLARITY_W<23> {
450        NEGATIVE_POLARITY_W::new(self)
451    }
452    #[doc = "Break state on positive signal of this channel"]
453    #[inline(always)]
454    #[must_use]
455    pub unsafe fn positive_break<const O: u8>(&mut self) -> POSITIVE_BREAK_W<O> {
456        POSITIVE_BREAK_W::new(self)
457    }
458    #[doc = "Bit 24 - Break state on positive signal of this channel"]
459    #[inline(always)]
460    #[must_use]
461    pub fn positive_break0(&mut self) -> POSITIVE_BREAK_W<24> {
462        POSITIVE_BREAK_W::new(self)
463    }
464    #[doc = "Bit 26 - Break state on positive signal of this channel"]
465    #[inline(always)]
466    #[must_use]
467    pub fn positive_break1(&mut self) -> POSITIVE_BREAK_W<26> {
468        POSITIVE_BREAK_W::new(self)
469    }
470    #[doc = "Bit 28 - Break state on positive signal of this channel"]
471    #[inline(always)]
472    #[must_use]
473    pub fn positive_break2(&mut self) -> POSITIVE_BREAK_W<28> {
474        POSITIVE_BREAK_W::new(self)
475    }
476    #[doc = "Bit 30 - Break state on positive signal of this channel"]
477    #[inline(always)]
478    #[must_use]
479    pub fn positive_break3(&mut self) -> POSITIVE_BREAK_W<30> {
480        POSITIVE_BREAK_W::new(self)
481    }
482    #[doc = "Break state on negative signal of this channel"]
483    #[inline(always)]
484    #[must_use]
485    pub unsafe fn negative_break<const O: u8>(&mut self) -> NEGATIVE_BREAK_W<O> {
486        NEGATIVE_BREAK_W::new(self)
487    }
488    #[doc = "Bit 25 - Break state on negative signal of this channel"]
489    #[inline(always)]
490    #[must_use]
491    pub fn negative_break0(&mut self) -> NEGATIVE_BREAK_W<25> {
492        NEGATIVE_BREAK_W::new(self)
493    }
494    #[doc = "Bit 27 - Break state on negative signal of this channel"]
495    #[inline(always)]
496    #[must_use]
497    pub fn negative_break1(&mut self) -> NEGATIVE_BREAK_W<27> {
498        NEGATIVE_BREAK_W::new(self)
499    }
500    #[doc = "Bit 29 - Break state on negative signal of this channel"]
501    #[inline(always)]
502    #[must_use]
503    pub fn negative_break2(&mut self) -> NEGATIVE_BREAK_W<29> {
504        NEGATIVE_BREAK_W::new(self)
505    }
506    #[doc = "Bit 31 - Break state on negative signal of this channel"]
507    #[inline(always)]
508    #[must_use]
509    pub fn negative_break3(&mut self) -> NEGATIVE_BREAK_W<31> {
510        NEGATIVE_BREAK_W::new(self)
511    }
512    #[doc = "Writes raw bits to the register."]
513    #[inline(always)]
514    pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
515        self.0.bits(bits);
516        self
517    }
518}
519#[doc = "Channel configuration register\n\nThis register you can [`read`](crate::generic::Reg::read), [`write_with_zero`](crate::generic::Reg::write_with_zero), [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`modify`](crate::generic::Reg::modify). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [channel](index.html) module"]
520pub struct CHANNEL_SPEC;
521impl crate::RegisterSpec for CHANNEL_SPEC {
522    type Ux = u32;
523}
524#[doc = "`read()` method returns [channel::R](R) reader structure"]
525impl crate::Readable for CHANNEL_SPEC {
526    type Reader = R;
527}
528#[doc = "`write(|w| ..)` method takes [channel::W](W) writer structure"]
529impl crate::Writable for CHANNEL_SPEC {
530    type Writer = W;
531    const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
532    const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
533}
534#[doc = "`reset()` method sets channel to value 0"]
535impl crate::Resettable for CHANNEL_SPEC {
536    const RESET_VALUE: Self::Ux = 0;
537}