esp32c6/mcpwm0/
task_en.rs

1#[doc = "Register `TASK_EN` reader"]
2pub type R = crate::R<TASK_EN_SPEC>;
3#[doc = "Register `TASK_EN` writer"]
4pub type W = crate::W<TASK_EN_SPEC>;
5#[doc = "Field `TASK_CMPR0_A_UP_EN` reader - set this bit high to enable PWM generator0 timer stamp A's shadow register update task receive"]
6pub type TASK_CMPR0_A_UP_EN_R = crate::BitReader;
7#[doc = "Field `TASK_CMPR0_A_UP_EN` writer - set this bit high to enable PWM generator0 timer stamp A's shadow register update task receive"]
8pub type TASK_CMPR0_A_UP_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `TASK_CMPR1_A_UP_EN` reader - set this bit high to enable PWM generator1 timer stamp A's shadow register update task receive"]
10pub type TASK_CMPR1_A_UP_EN_R = crate::BitReader;
11#[doc = "Field `TASK_CMPR1_A_UP_EN` writer - set this bit high to enable PWM generator1 timer stamp A's shadow register update task receive"]
12pub type TASK_CMPR1_A_UP_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `TASK_CMPR2_A_UP_EN` reader - set this bit high to enable PWM generator2 timer stamp A's shadow register update task receive"]
14pub type TASK_CMPR2_A_UP_EN_R = crate::BitReader;
15#[doc = "Field `TASK_CMPR2_A_UP_EN` writer - set this bit high to enable PWM generator2 timer stamp A's shadow register update task receive"]
16pub type TASK_CMPR2_A_UP_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `TASK_CMPR0_B_UP_EN` reader - set this bit high to enable PWM generator0 timer stamp B's shadow register update task receive"]
18pub type TASK_CMPR0_B_UP_EN_R = crate::BitReader;
19#[doc = "Field `TASK_CMPR0_B_UP_EN` writer - set this bit high to enable PWM generator0 timer stamp B's shadow register update task receive"]
20pub type TASK_CMPR0_B_UP_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `TASK_CMPR1_B_UP_EN` reader - set this bit high to enable PWM generator1 timer stamp B's shadow register update task receive"]
22pub type TASK_CMPR1_B_UP_EN_R = crate::BitReader;
23#[doc = "Field `TASK_CMPR1_B_UP_EN` writer - set this bit high to enable PWM generator1 timer stamp B's shadow register update task receive"]
24pub type TASK_CMPR1_B_UP_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `TASK_CMPR2_B_UP_EN` reader - set this bit high to enable PWM generator2 timer stamp B's shadow register update task receive"]
26pub type TASK_CMPR2_B_UP_EN_R = crate::BitReader;
27#[doc = "Field `TASK_CMPR2_B_UP_EN` writer - set this bit high to enable PWM generator2 timer stamp B's shadow register update task receive"]
28pub type TASK_CMPR2_B_UP_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `TASK_GEN_STOP_EN` reader - set this bit high to enable all PWM generate stop task receive"]
30pub type TASK_GEN_STOP_EN_R = crate::BitReader;
31#[doc = "Field `TASK_GEN_STOP_EN` writer - set this bit high to enable all PWM generate stop task receive"]
32pub type TASK_GEN_STOP_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `TASK_TIMER0_SYNC_EN` reader - set this bit high to enable timer0 sync task receive"]
34pub type TASK_TIMER0_SYNC_EN_R = crate::BitReader;
35#[doc = "Field `TASK_TIMER0_SYNC_EN` writer - set this bit high to enable timer0 sync task receive"]
36pub type TASK_TIMER0_SYNC_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `TASK_TIMER1_SYNC_EN` reader - set this bit high to enable timer1 sync task receive"]
38pub type TASK_TIMER1_SYNC_EN_R = crate::BitReader;
39#[doc = "Field `TASK_TIMER1_SYNC_EN` writer - set this bit high to enable timer1 sync task receive"]
40pub type TASK_TIMER1_SYNC_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `TASK_TIMER2_SYNC_EN` reader - set this bit high to enable timer2 sync task receive"]
42pub type TASK_TIMER2_SYNC_EN_R = crate::BitReader;
43#[doc = "Field `TASK_TIMER2_SYNC_EN` writer - set this bit high to enable timer2 sync task receive"]
44pub type TASK_TIMER2_SYNC_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `TASK_TIMER0_PERIOD_UP_EN` reader - set this bit high to enable timer0 period update task receive"]
46pub type TASK_TIMER0_PERIOD_UP_EN_R = crate::BitReader;
47#[doc = "Field `TASK_TIMER0_PERIOD_UP_EN` writer - set this bit high to enable timer0 period update task receive"]
48pub type TASK_TIMER0_PERIOD_UP_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `TASK_TIMER1_PERIOD_UP_EN` reader - set this bit high to enable timer1 period update task receive"]
50pub type TASK_TIMER1_PERIOD_UP_EN_R = crate::BitReader;
51#[doc = "Field `TASK_TIMER1_PERIOD_UP_EN` writer - set this bit high to enable timer1 period update task receive"]
52pub type TASK_TIMER1_PERIOD_UP_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `TASK_TIMER2_PERIOD_UP_EN` reader - set this bit high to enable timer2 period update task receive"]
54pub type TASK_TIMER2_PERIOD_UP_EN_R = crate::BitReader;
55#[doc = "Field `TASK_TIMER2_PERIOD_UP_EN` writer - set this bit high to enable timer2 period update task receive"]
56pub type TASK_TIMER2_PERIOD_UP_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `TASK_TZ0_OST_EN` reader - set this bit high to enable one shot trip0 task receive"]
58pub type TASK_TZ0_OST_EN_R = crate::BitReader;
59#[doc = "Field `TASK_TZ0_OST_EN` writer - set this bit high to enable one shot trip0 task receive"]
60pub type TASK_TZ0_OST_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `TASK_TZ1_OST_EN` reader - set this bit high to enable one shot trip1 task receive"]
62pub type TASK_TZ1_OST_EN_R = crate::BitReader;
63#[doc = "Field `TASK_TZ1_OST_EN` writer - set this bit high to enable one shot trip1 task receive"]
64pub type TASK_TZ1_OST_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `TASK_TZ2_OST_EN` reader - set this bit high to enable one shot trip2 task receive"]
66pub type TASK_TZ2_OST_EN_R = crate::BitReader;
67#[doc = "Field `TASK_TZ2_OST_EN` writer - set this bit high to enable one shot trip2 task receive"]
68pub type TASK_TZ2_OST_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
69#[doc = "Field `TASK_CLR0_OST_EN` reader - set this bit high to enable one shot trip0 clear task receive"]
70pub type TASK_CLR0_OST_EN_R = crate::BitReader;
71#[doc = "Field `TASK_CLR0_OST_EN` writer - set this bit high to enable one shot trip0 clear task receive"]
72pub type TASK_CLR0_OST_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
73#[doc = "Field `TASK_CLR1_OST_EN` reader - set this bit high to enable one shot trip1 clear task receive"]
74pub type TASK_CLR1_OST_EN_R = crate::BitReader;
75#[doc = "Field `TASK_CLR1_OST_EN` writer - set this bit high to enable one shot trip1 clear task receive"]
76pub type TASK_CLR1_OST_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
77#[doc = "Field `TASK_CLR2_OST_EN` reader - set this bit high to enable one shot trip2 clear task receive"]
78pub type TASK_CLR2_OST_EN_R = crate::BitReader;
79#[doc = "Field `TASK_CLR2_OST_EN` writer - set this bit high to enable one shot trip2 clear task receive"]
80pub type TASK_CLR2_OST_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
81#[doc = "Field `TASK_CAP0_EN` reader - set this bit high to enable capture0 task receive"]
82pub type TASK_CAP0_EN_R = crate::BitReader;
83#[doc = "Field `TASK_CAP0_EN` writer - set this bit high to enable capture0 task receive"]
84pub type TASK_CAP0_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
85#[doc = "Field `TASK_CAP1_EN` reader - set this bit high to enable capture1 task receive"]
86pub type TASK_CAP1_EN_R = crate::BitReader;
87#[doc = "Field `TASK_CAP1_EN` writer - set this bit high to enable capture1 task receive"]
88pub type TASK_CAP1_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
89#[doc = "Field `TASK_CAP2_EN` reader - set this bit high to enable capture2 task receive"]
90pub type TASK_CAP2_EN_R = crate::BitReader;
91#[doc = "Field `TASK_CAP2_EN` writer - set this bit high to enable capture2 task receive"]
92pub type TASK_CAP2_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
93impl R {
94    #[doc = "Bit 0 - set this bit high to enable PWM generator0 timer stamp A's shadow register update task receive"]
95    #[inline(always)]
96    pub fn task_cmpr0_a_up_en(&self) -> TASK_CMPR0_A_UP_EN_R {
97        TASK_CMPR0_A_UP_EN_R::new((self.bits & 1) != 0)
98    }
99    #[doc = "Bit 1 - set this bit high to enable PWM generator1 timer stamp A's shadow register update task receive"]
100    #[inline(always)]
101    pub fn task_cmpr1_a_up_en(&self) -> TASK_CMPR1_A_UP_EN_R {
102        TASK_CMPR1_A_UP_EN_R::new(((self.bits >> 1) & 1) != 0)
103    }
104    #[doc = "Bit 2 - set this bit high to enable PWM generator2 timer stamp A's shadow register update task receive"]
105    #[inline(always)]
106    pub fn task_cmpr2_a_up_en(&self) -> TASK_CMPR2_A_UP_EN_R {
107        TASK_CMPR2_A_UP_EN_R::new(((self.bits >> 2) & 1) != 0)
108    }
109    #[doc = "Bit 3 - set this bit high to enable PWM generator0 timer stamp B's shadow register update task receive"]
110    #[inline(always)]
111    pub fn task_cmpr0_b_up_en(&self) -> TASK_CMPR0_B_UP_EN_R {
112        TASK_CMPR0_B_UP_EN_R::new(((self.bits >> 3) & 1) != 0)
113    }
114    #[doc = "Bit 4 - set this bit high to enable PWM generator1 timer stamp B's shadow register update task receive"]
115    #[inline(always)]
116    pub fn task_cmpr1_b_up_en(&self) -> TASK_CMPR1_B_UP_EN_R {
117        TASK_CMPR1_B_UP_EN_R::new(((self.bits >> 4) & 1) != 0)
118    }
119    #[doc = "Bit 5 - set this bit high to enable PWM generator2 timer stamp B's shadow register update task receive"]
120    #[inline(always)]
121    pub fn task_cmpr2_b_up_en(&self) -> TASK_CMPR2_B_UP_EN_R {
122        TASK_CMPR2_B_UP_EN_R::new(((self.bits >> 5) & 1) != 0)
123    }
124    #[doc = "Bit 6 - set this bit high to enable all PWM generate stop task receive"]
125    #[inline(always)]
126    pub fn task_gen_stop_en(&self) -> TASK_GEN_STOP_EN_R {
127        TASK_GEN_STOP_EN_R::new(((self.bits >> 6) & 1) != 0)
128    }
129    #[doc = "Bit 7 - set this bit high to enable timer0 sync task receive"]
130    #[inline(always)]
131    pub fn task_timer0_sync_en(&self) -> TASK_TIMER0_SYNC_EN_R {
132        TASK_TIMER0_SYNC_EN_R::new(((self.bits >> 7) & 1) != 0)
133    }
134    #[doc = "Bit 8 - set this bit high to enable timer1 sync task receive"]
135    #[inline(always)]
136    pub fn task_timer1_sync_en(&self) -> TASK_TIMER1_SYNC_EN_R {
137        TASK_TIMER1_SYNC_EN_R::new(((self.bits >> 8) & 1) != 0)
138    }
139    #[doc = "Bit 9 - set this bit high to enable timer2 sync task receive"]
140    #[inline(always)]
141    pub fn task_timer2_sync_en(&self) -> TASK_TIMER2_SYNC_EN_R {
142        TASK_TIMER2_SYNC_EN_R::new(((self.bits >> 9) & 1) != 0)
143    }
144    #[doc = "Bit 10 - set this bit high to enable timer0 period update task receive"]
145    #[inline(always)]
146    pub fn task_timer0_period_up_en(&self) -> TASK_TIMER0_PERIOD_UP_EN_R {
147        TASK_TIMER0_PERIOD_UP_EN_R::new(((self.bits >> 10) & 1) != 0)
148    }
149    #[doc = "Bit 11 - set this bit high to enable timer1 period update task receive"]
150    #[inline(always)]
151    pub fn task_timer1_period_up_en(&self) -> TASK_TIMER1_PERIOD_UP_EN_R {
152        TASK_TIMER1_PERIOD_UP_EN_R::new(((self.bits >> 11) & 1) != 0)
153    }
154    #[doc = "Bit 12 - set this bit high to enable timer2 period update task receive"]
155    #[inline(always)]
156    pub fn task_timer2_period_up_en(&self) -> TASK_TIMER2_PERIOD_UP_EN_R {
157        TASK_TIMER2_PERIOD_UP_EN_R::new(((self.bits >> 12) & 1) != 0)
158    }
159    #[doc = "Bit 13 - set this bit high to enable one shot trip0 task receive"]
160    #[inline(always)]
161    pub fn task_tz0_ost_en(&self) -> TASK_TZ0_OST_EN_R {
162        TASK_TZ0_OST_EN_R::new(((self.bits >> 13) & 1) != 0)
163    }
164    #[doc = "Bit 14 - set this bit high to enable one shot trip1 task receive"]
165    #[inline(always)]
166    pub fn task_tz1_ost_en(&self) -> TASK_TZ1_OST_EN_R {
167        TASK_TZ1_OST_EN_R::new(((self.bits >> 14) & 1) != 0)
168    }
169    #[doc = "Bit 15 - set this bit high to enable one shot trip2 task receive"]
170    #[inline(always)]
171    pub fn task_tz2_ost_en(&self) -> TASK_TZ2_OST_EN_R {
172        TASK_TZ2_OST_EN_R::new(((self.bits >> 15) & 1) != 0)
173    }
174    #[doc = "Bit 16 - set this bit high to enable one shot trip0 clear task receive"]
175    #[inline(always)]
176    pub fn task_clr0_ost_en(&self) -> TASK_CLR0_OST_EN_R {
177        TASK_CLR0_OST_EN_R::new(((self.bits >> 16) & 1) != 0)
178    }
179    #[doc = "Bit 17 - set this bit high to enable one shot trip1 clear task receive"]
180    #[inline(always)]
181    pub fn task_clr1_ost_en(&self) -> TASK_CLR1_OST_EN_R {
182        TASK_CLR1_OST_EN_R::new(((self.bits >> 17) & 1) != 0)
183    }
184    #[doc = "Bit 18 - set this bit high to enable one shot trip2 clear task receive"]
185    #[inline(always)]
186    pub fn task_clr2_ost_en(&self) -> TASK_CLR2_OST_EN_R {
187        TASK_CLR2_OST_EN_R::new(((self.bits >> 18) & 1) != 0)
188    }
189    #[doc = "Bit 19 - set this bit high to enable capture0 task receive"]
190    #[inline(always)]
191    pub fn task_cap0_en(&self) -> TASK_CAP0_EN_R {
192        TASK_CAP0_EN_R::new(((self.bits >> 19) & 1) != 0)
193    }
194    #[doc = "Bit 20 - set this bit high to enable capture1 task receive"]
195    #[inline(always)]
196    pub fn task_cap1_en(&self) -> TASK_CAP1_EN_R {
197        TASK_CAP1_EN_R::new(((self.bits >> 20) & 1) != 0)
198    }
199    #[doc = "Bit 21 - set this bit high to enable capture2 task receive"]
200    #[inline(always)]
201    pub fn task_cap2_en(&self) -> TASK_CAP2_EN_R {
202        TASK_CAP2_EN_R::new(((self.bits >> 21) & 1) != 0)
203    }
204}
205#[cfg(feature = "impl-register-debug")]
206impl core::fmt::Debug for R {
207    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
208        f.debug_struct("TASK_EN")
209            .field("task_cmpr0_a_up_en", &self.task_cmpr0_a_up_en())
210            .field("task_cmpr1_a_up_en", &self.task_cmpr1_a_up_en())
211            .field("task_cmpr2_a_up_en", &self.task_cmpr2_a_up_en())
212            .field("task_cmpr0_b_up_en", &self.task_cmpr0_b_up_en())
213            .field("task_cmpr1_b_up_en", &self.task_cmpr1_b_up_en())
214            .field("task_cmpr2_b_up_en", &self.task_cmpr2_b_up_en())
215            .field("task_gen_stop_en", &self.task_gen_stop_en())
216            .field("task_timer0_sync_en", &self.task_timer0_sync_en())
217            .field("task_timer1_sync_en", &self.task_timer1_sync_en())
218            .field("task_timer2_sync_en", &self.task_timer2_sync_en())
219            .field("task_timer0_period_up_en", &self.task_timer0_period_up_en())
220            .field("task_timer1_period_up_en", &self.task_timer1_period_up_en())
221            .field("task_timer2_period_up_en", &self.task_timer2_period_up_en())
222            .field("task_tz0_ost_en", &self.task_tz0_ost_en())
223            .field("task_tz1_ost_en", &self.task_tz1_ost_en())
224            .field("task_tz2_ost_en", &self.task_tz2_ost_en())
225            .field("task_clr0_ost_en", &self.task_clr0_ost_en())
226            .field("task_clr1_ost_en", &self.task_clr1_ost_en())
227            .field("task_clr2_ost_en", &self.task_clr2_ost_en())
228            .field("task_cap0_en", &self.task_cap0_en())
229            .field("task_cap1_en", &self.task_cap1_en())
230            .field("task_cap2_en", &self.task_cap2_en())
231            .finish()
232    }
233}
234impl W {
235    #[doc = "Bit 0 - set this bit high to enable PWM generator0 timer stamp A's shadow register update task receive"]
236    #[inline(always)]
237    pub fn task_cmpr0_a_up_en(&mut self) -> TASK_CMPR0_A_UP_EN_W<TASK_EN_SPEC> {
238        TASK_CMPR0_A_UP_EN_W::new(self, 0)
239    }
240    #[doc = "Bit 1 - set this bit high to enable PWM generator1 timer stamp A's shadow register update task receive"]
241    #[inline(always)]
242    pub fn task_cmpr1_a_up_en(&mut self) -> TASK_CMPR1_A_UP_EN_W<TASK_EN_SPEC> {
243        TASK_CMPR1_A_UP_EN_W::new(self, 1)
244    }
245    #[doc = "Bit 2 - set this bit high to enable PWM generator2 timer stamp A's shadow register update task receive"]
246    #[inline(always)]
247    pub fn task_cmpr2_a_up_en(&mut self) -> TASK_CMPR2_A_UP_EN_W<TASK_EN_SPEC> {
248        TASK_CMPR2_A_UP_EN_W::new(self, 2)
249    }
250    #[doc = "Bit 3 - set this bit high to enable PWM generator0 timer stamp B's shadow register update task receive"]
251    #[inline(always)]
252    pub fn task_cmpr0_b_up_en(&mut self) -> TASK_CMPR0_B_UP_EN_W<TASK_EN_SPEC> {
253        TASK_CMPR0_B_UP_EN_W::new(self, 3)
254    }
255    #[doc = "Bit 4 - set this bit high to enable PWM generator1 timer stamp B's shadow register update task receive"]
256    #[inline(always)]
257    pub fn task_cmpr1_b_up_en(&mut self) -> TASK_CMPR1_B_UP_EN_W<TASK_EN_SPEC> {
258        TASK_CMPR1_B_UP_EN_W::new(self, 4)
259    }
260    #[doc = "Bit 5 - set this bit high to enable PWM generator2 timer stamp B's shadow register update task receive"]
261    #[inline(always)]
262    pub fn task_cmpr2_b_up_en(&mut self) -> TASK_CMPR2_B_UP_EN_W<TASK_EN_SPEC> {
263        TASK_CMPR2_B_UP_EN_W::new(self, 5)
264    }
265    #[doc = "Bit 6 - set this bit high to enable all PWM generate stop task receive"]
266    #[inline(always)]
267    pub fn task_gen_stop_en(&mut self) -> TASK_GEN_STOP_EN_W<TASK_EN_SPEC> {
268        TASK_GEN_STOP_EN_W::new(self, 6)
269    }
270    #[doc = "Bit 7 - set this bit high to enable timer0 sync task receive"]
271    #[inline(always)]
272    pub fn task_timer0_sync_en(&mut self) -> TASK_TIMER0_SYNC_EN_W<TASK_EN_SPEC> {
273        TASK_TIMER0_SYNC_EN_W::new(self, 7)
274    }
275    #[doc = "Bit 8 - set this bit high to enable timer1 sync task receive"]
276    #[inline(always)]
277    pub fn task_timer1_sync_en(&mut self) -> TASK_TIMER1_SYNC_EN_W<TASK_EN_SPEC> {
278        TASK_TIMER1_SYNC_EN_W::new(self, 8)
279    }
280    #[doc = "Bit 9 - set this bit high to enable timer2 sync task receive"]
281    #[inline(always)]
282    pub fn task_timer2_sync_en(&mut self) -> TASK_TIMER2_SYNC_EN_W<TASK_EN_SPEC> {
283        TASK_TIMER2_SYNC_EN_W::new(self, 9)
284    }
285    #[doc = "Bit 10 - set this bit high to enable timer0 period update task receive"]
286    #[inline(always)]
287    pub fn task_timer0_period_up_en(&mut self) -> TASK_TIMER0_PERIOD_UP_EN_W<TASK_EN_SPEC> {
288        TASK_TIMER0_PERIOD_UP_EN_W::new(self, 10)
289    }
290    #[doc = "Bit 11 - set this bit high to enable timer1 period update task receive"]
291    #[inline(always)]
292    pub fn task_timer1_period_up_en(&mut self) -> TASK_TIMER1_PERIOD_UP_EN_W<TASK_EN_SPEC> {
293        TASK_TIMER1_PERIOD_UP_EN_W::new(self, 11)
294    }
295    #[doc = "Bit 12 - set this bit high to enable timer2 period update task receive"]
296    #[inline(always)]
297    pub fn task_timer2_period_up_en(&mut self) -> TASK_TIMER2_PERIOD_UP_EN_W<TASK_EN_SPEC> {
298        TASK_TIMER2_PERIOD_UP_EN_W::new(self, 12)
299    }
300    #[doc = "Bit 13 - set this bit high to enable one shot trip0 task receive"]
301    #[inline(always)]
302    pub fn task_tz0_ost_en(&mut self) -> TASK_TZ0_OST_EN_W<TASK_EN_SPEC> {
303        TASK_TZ0_OST_EN_W::new(self, 13)
304    }
305    #[doc = "Bit 14 - set this bit high to enable one shot trip1 task receive"]
306    #[inline(always)]
307    pub fn task_tz1_ost_en(&mut self) -> TASK_TZ1_OST_EN_W<TASK_EN_SPEC> {
308        TASK_TZ1_OST_EN_W::new(self, 14)
309    }
310    #[doc = "Bit 15 - set this bit high to enable one shot trip2 task receive"]
311    #[inline(always)]
312    pub fn task_tz2_ost_en(&mut self) -> TASK_TZ2_OST_EN_W<TASK_EN_SPEC> {
313        TASK_TZ2_OST_EN_W::new(self, 15)
314    }
315    #[doc = "Bit 16 - set this bit high to enable one shot trip0 clear task receive"]
316    #[inline(always)]
317    pub fn task_clr0_ost_en(&mut self) -> TASK_CLR0_OST_EN_W<TASK_EN_SPEC> {
318        TASK_CLR0_OST_EN_W::new(self, 16)
319    }
320    #[doc = "Bit 17 - set this bit high to enable one shot trip1 clear task receive"]
321    #[inline(always)]
322    pub fn task_clr1_ost_en(&mut self) -> TASK_CLR1_OST_EN_W<TASK_EN_SPEC> {
323        TASK_CLR1_OST_EN_W::new(self, 17)
324    }
325    #[doc = "Bit 18 - set this bit high to enable one shot trip2 clear task receive"]
326    #[inline(always)]
327    pub fn task_clr2_ost_en(&mut self) -> TASK_CLR2_OST_EN_W<TASK_EN_SPEC> {
328        TASK_CLR2_OST_EN_W::new(self, 18)
329    }
330    #[doc = "Bit 19 - set this bit high to enable capture0 task receive"]
331    #[inline(always)]
332    pub fn task_cap0_en(&mut self) -> TASK_CAP0_EN_W<TASK_EN_SPEC> {
333        TASK_CAP0_EN_W::new(self, 19)
334    }
335    #[doc = "Bit 20 - set this bit high to enable capture1 task receive"]
336    #[inline(always)]
337    pub fn task_cap1_en(&mut self) -> TASK_CAP1_EN_W<TASK_EN_SPEC> {
338        TASK_CAP1_EN_W::new(self, 20)
339    }
340    #[doc = "Bit 21 - set this bit high to enable capture2 task receive"]
341    #[inline(always)]
342    pub fn task_cap2_en(&mut self) -> TASK_CAP2_EN_W<TASK_EN_SPEC> {
343        TASK_CAP2_EN_W::new(self, 21)
344    }
345}
346#[doc = "MCPWM task enable register\n\nYou can [`read`](crate::Reg::read) this register and get [`task_en::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`task_en::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
347pub struct TASK_EN_SPEC;
348impl crate::RegisterSpec for TASK_EN_SPEC {
349    type Ux = u32;
350}
351#[doc = "`read()` method returns [`task_en::R`](R) reader structure"]
352impl crate::Readable for TASK_EN_SPEC {}
353#[doc = "`write(|w| ..)` method takes [`task_en::W`](W) writer structure"]
354impl crate::Writable for TASK_EN_SPEC {
355    type Safety = crate::Unsafe;
356}
357#[doc = "`reset()` method sets TASK_EN to value 0"]
358impl crate::Resettable for TASK_EN_SPEC {}