1#[doc = "Register `EVT_TASK_EN1` reader"]
2pub type R = crate::R<EVT_TASK_EN1_SPEC>;
3#[doc = "Register `EVT_TASK_EN1` writer"]
4pub type W = crate::W<EVT_TASK_EN1_SPEC>;
5#[doc = "Field `TASK_TIMER0_RES_UPDATE_EN` reader - Configures whether or not to enable ledc_timer0_res_update task.\\\\0: Disable\\\\1: Enable"]
6pub type TASK_TIMER0_RES_UPDATE_EN_R = crate::BitReader;
7#[doc = "Field `TASK_TIMER0_RES_UPDATE_EN` writer - Configures whether or not to enable ledc_timer0_res_update task.\\\\0: Disable\\\\1: Enable"]
8pub type TASK_TIMER0_RES_UPDATE_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `TASK_TIMER1_RES_UPDATE_EN` reader - Configures whether or not to enable ledc_timer1_res_update task.\\\\0: Disable\\\\1: Enable"]
10pub type TASK_TIMER1_RES_UPDATE_EN_R = crate::BitReader;
11#[doc = "Field `TASK_TIMER1_RES_UPDATE_EN` writer - Configures whether or not to enable ledc_timer1_res_update task.\\\\0: Disable\\\\1: Enable"]
12pub type TASK_TIMER1_RES_UPDATE_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `TASK_TIMER2_RES_UPDATE_EN` reader - Configures whether or not to enable ledc_timer2_res_update task.\\\\0: Disable\\\\1: Enable"]
14pub type TASK_TIMER2_RES_UPDATE_EN_R = crate::BitReader;
15#[doc = "Field `TASK_TIMER2_RES_UPDATE_EN` writer - Configures whether or not to enable ledc_timer2_res_update task.\\\\0: Disable\\\\1: Enable"]
16pub type TASK_TIMER2_RES_UPDATE_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `TASK_TIMER3_RES_UPDATE_EN` reader - Configures whether or not to enable ledc_timer3_res_update task.\\\\0: Disable\\\\1: Enable"]
18pub type TASK_TIMER3_RES_UPDATE_EN_R = crate::BitReader;
19#[doc = "Field `TASK_TIMER3_RES_UPDATE_EN` writer - Configures whether or not to enable ledc_timer3_res_update task.\\\\0: Disable\\\\1: Enable"]
20pub type TASK_TIMER3_RES_UPDATE_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `TASK_TIMER0_CAP_EN` reader - Configures whether or not to enable ledc_timer0_cap task.\\\\0: Disable\\\\1: Enable"]
22pub type TASK_TIMER0_CAP_EN_R = crate::BitReader;
23#[doc = "Field `TASK_TIMER0_CAP_EN` writer - Configures whether or not to enable ledc_timer0_cap task.\\\\0: Disable\\\\1: Enable"]
24pub type TASK_TIMER0_CAP_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
25#[doc = "Field `TASK_TIMER1_CAP_EN` reader - Configures whether or not to enable ledc_timer1_cap task.\\\\0: Disable\\\\1: Enable"]
26pub type TASK_TIMER1_CAP_EN_R = crate::BitReader;
27#[doc = "Field `TASK_TIMER1_CAP_EN` writer - Configures whether or not to enable ledc_timer1_cap task.\\\\0: Disable\\\\1: Enable"]
28pub type TASK_TIMER1_CAP_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
29#[doc = "Field `TASK_TIMER2_CAP_EN` reader - Configures whether or not to enable ledc_timer2_cap task.\\\\0: Disable\\\\1: Enable"]
30pub type TASK_TIMER2_CAP_EN_R = crate::BitReader;
31#[doc = "Field `TASK_TIMER2_CAP_EN` writer - Configures whether or not to enable ledc_timer2_cap task.\\\\0: Disable\\\\1: Enable"]
32pub type TASK_TIMER2_CAP_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
33#[doc = "Field `TASK_TIMER3_CAP_EN` reader - Configures whether or not to enable ledc_timer3_cap task.\\\\0: Disable\\\\1: Enable"]
34pub type TASK_TIMER3_CAP_EN_R = crate::BitReader;
35#[doc = "Field `TASK_TIMER3_CAP_EN` writer - Configures whether or not to enable ledc_timer3_cap task.\\\\0: Disable\\\\1: Enable"]
36pub type TASK_TIMER3_CAP_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
37#[doc = "Field `TASK_SIG_OUT_DIS_CH0_EN` reader - Configures whether or not to enable ledc_ch0_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
38pub type TASK_SIG_OUT_DIS_CH0_EN_R = crate::BitReader;
39#[doc = "Field `TASK_SIG_OUT_DIS_CH0_EN` writer - Configures whether or not to enable ledc_ch0_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
40pub type TASK_SIG_OUT_DIS_CH0_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
41#[doc = "Field `TASK_SIG_OUT_DIS_CH1_EN` reader - Configures whether or not to enable ledc_ch1_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
42pub type TASK_SIG_OUT_DIS_CH1_EN_R = crate::BitReader;
43#[doc = "Field `TASK_SIG_OUT_DIS_CH1_EN` writer - Configures whether or not to enable ledc_ch1_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
44pub type TASK_SIG_OUT_DIS_CH1_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
45#[doc = "Field `TASK_SIG_OUT_DIS_CH2_EN` reader - Configures whether or not to enable ledc_ch2_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
46pub type TASK_SIG_OUT_DIS_CH2_EN_R = crate::BitReader;
47#[doc = "Field `TASK_SIG_OUT_DIS_CH2_EN` writer - Configures whether or not to enable ledc_ch2_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
48pub type TASK_SIG_OUT_DIS_CH2_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
49#[doc = "Field `TASK_SIG_OUT_DIS_CH3_EN` reader - Configures whether or not to enable ledc_ch3_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
50pub type TASK_SIG_OUT_DIS_CH3_EN_R = crate::BitReader;
51#[doc = "Field `TASK_SIG_OUT_DIS_CH3_EN` writer - Configures whether or not to enable ledc_ch3_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
52pub type TASK_SIG_OUT_DIS_CH3_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
53#[doc = "Field `TASK_SIG_OUT_DIS_CH4_EN` reader - Configures whether or not to enable ledc_ch4_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
54pub type TASK_SIG_OUT_DIS_CH4_EN_R = crate::BitReader;
55#[doc = "Field `TASK_SIG_OUT_DIS_CH4_EN` writer - Configures whether or not to enable ledc_ch4_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
56pub type TASK_SIG_OUT_DIS_CH4_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
57#[doc = "Field `TASK_SIG_OUT_DIS_CH5_EN` reader - Configures whether or not to enable ledc_ch5_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
58pub type TASK_SIG_OUT_DIS_CH5_EN_R = crate::BitReader;
59#[doc = "Field `TASK_SIG_OUT_DIS_CH5_EN` writer - Configures whether or not to enable ledc_ch5_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
60pub type TASK_SIG_OUT_DIS_CH5_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
61#[doc = "Field `TASK_SIG_OUT_DIS_CH6_EN` reader - Configures whether or not to enable ledc_ch6_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
62pub type TASK_SIG_OUT_DIS_CH6_EN_R = crate::BitReader;
63#[doc = "Field `TASK_SIG_OUT_DIS_CH6_EN` writer - Configures whether or not to enable ledc_ch6_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
64pub type TASK_SIG_OUT_DIS_CH6_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
65#[doc = "Field `TASK_SIG_OUT_DIS_CH7_EN` reader - Configures whether or not to enable ledc_ch7_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
66pub type TASK_SIG_OUT_DIS_CH7_EN_R = crate::BitReader;
67#[doc = "Field `TASK_SIG_OUT_DIS_CH7_EN` writer - Configures whether or not to enable ledc_ch7_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
68pub type TASK_SIG_OUT_DIS_CH7_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
69#[doc = "Field `TASK_OVF_CNT_RST_CH0_EN` reader - Configures whether or not to enable ledc_ch0_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
70pub type TASK_OVF_CNT_RST_CH0_EN_R = crate::BitReader;
71#[doc = "Field `TASK_OVF_CNT_RST_CH0_EN` writer - Configures whether or not to enable ledc_ch0_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
72pub type TASK_OVF_CNT_RST_CH0_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
73#[doc = "Field `TASK_OVF_CNT_RST_CH1_EN` reader - Configures whether or not to enable ledc_ch1_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
74pub type TASK_OVF_CNT_RST_CH1_EN_R = crate::BitReader;
75#[doc = "Field `TASK_OVF_CNT_RST_CH1_EN` writer - Configures whether or not to enable ledc_ch1_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
76pub type TASK_OVF_CNT_RST_CH1_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
77#[doc = "Field `TASK_OVF_CNT_RST_CH2_EN` reader - Configures whether or not to enable ledc_ch2_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
78pub type TASK_OVF_CNT_RST_CH2_EN_R = crate::BitReader;
79#[doc = "Field `TASK_OVF_CNT_RST_CH2_EN` writer - Configures whether or not to enable ledc_ch2_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
80pub type TASK_OVF_CNT_RST_CH2_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
81#[doc = "Field `TASK_OVF_CNT_RST_CH3_EN` reader - Configures whether or not to enable ledc_ch3_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
82pub type TASK_OVF_CNT_RST_CH3_EN_R = crate::BitReader;
83#[doc = "Field `TASK_OVF_CNT_RST_CH3_EN` writer - Configures whether or not to enable ledc_ch3_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
84pub type TASK_OVF_CNT_RST_CH3_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
85#[doc = "Field `TASK_OVF_CNT_RST_CH4_EN` reader - Configures whether or not to enable ledc_ch4_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
86pub type TASK_OVF_CNT_RST_CH4_EN_R = crate::BitReader;
87#[doc = "Field `TASK_OVF_CNT_RST_CH4_EN` writer - Configures whether or not to enable ledc_ch4_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
88pub type TASK_OVF_CNT_RST_CH4_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
89#[doc = "Field `TASK_OVF_CNT_RST_CH5_EN` reader - Configures whether or not to enable ledc_ch5_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
90pub type TASK_OVF_CNT_RST_CH5_EN_R = crate::BitReader;
91#[doc = "Field `TASK_OVF_CNT_RST_CH5_EN` writer - Configures whether or not to enable ledc_ch5_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
92pub type TASK_OVF_CNT_RST_CH5_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
93#[doc = "Field `TASK_OVF_CNT_RST_CH6_EN` reader - Configures whether or not to enable ledc_ch6_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
94pub type TASK_OVF_CNT_RST_CH6_EN_R = crate::BitReader;
95#[doc = "Field `TASK_OVF_CNT_RST_CH6_EN` writer - Configures whether or not to enable ledc_ch6_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
96pub type TASK_OVF_CNT_RST_CH6_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
97#[doc = "Field `TASK_OVF_CNT_RST_CH7_EN` reader - Configures whether or not to enable ledc_ch7_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
98pub type TASK_OVF_CNT_RST_CH7_EN_R = crate::BitReader;
99#[doc = "Field `TASK_OVF_CNT_RST_CH7_EN` writer - Configures whether or not to enable ledc_ch7_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
100pub type TASK_OVF_CNT_RST_CH7_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
101#[doc = "Field `TASK_TIMER0_RST_EN` reader - Configures whether or not to enable ledc_timer0_rst task.\\\\0: Disable\\\\1: Enable"]
102pub type TASK_TIMER0_RST_EN_R = crate::BitReader;
103#[doc = "Field `TASK_TIMER0_RST_EN` writer - Configures whether or not to enable ledc_timer0_rst task.\\\\0: Disable\\\\1: Enable"]
104pub type TASK_TIMER0_RST_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
105#[doc = "Field `TASK_TIMER1_RST_EN` reader - Configures whether or not to enable ledc_timer1_rst task.\\\\0: Disable\\\\1: Enable"]
106pub type TASK_TIMER1_RST_EN_R = crate::BitReader;
107#[doc = "Field `TASK_TIMER1_RST_EN` writer - Configures whether or not to enable ledc_timer1_rst task.\\\\0: Disable\\\\1: Enable"]
108pub type TASK_TIMER1_RST_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
109#[doc = "Field `TASK_TIMER2_RST_EN` reader - Configures whether or not to enable ledc_timer2_rst task.\\\\0: Disable\\\\1: Enable"]
110pub type TASK_TIMER2_RST_EN_R = crate::BitReader;
111#[doc = "Field `TASK_TIMER2_RST_EN` writer - Configures whether or not to enable ledc_timer2_rst task.\\\\0: Disable\\\\1: Enable"]
112pub type TASK_TIMER2_RST_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
113#[doc = "Field `TASK_TIMER3_RST_EN` reader - Configures whether or not to enable ledc_timer3_rst task.\\\\0: Disable\\\\1: Enable"]
114pub type TASK_TIMER3_RST_EN_R = crate::BitReader;
115#[doc = "Field `TASK_TIMER3_RST_EN` writer - Configures whether or not to enable ledc_timer3_rst task.\\\\0: Disable\\\\1: Enable"]
116pub type TASK_TIMER3_RST_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
117#[doc = "Field `TASK_TIMER0_PAUSE_RESUME_EN` reader - Configures whether or not to enable ledc_timer0_pause_resume task.\\\\0: Disable\\\\1: Enable"]
118pub type TASK_TIMER0_PAUSE_RESUME_EN_R = crate::BitReader;
119#[doc = "Field `TASK_TIMER0_PAUSE_RESUME_EN` writer - Configures whether or not to enable ledc_timer0_pause_resume task.\\\\0: Disable\\\\1: Enable"]
120pub type TASK_TIMER0_PAUSE_RESUME_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
121#[doc = "Field `TASK_TIMER1_PAUSE_RESUME_EN` reader - Configures whether or not to enable ledc_timer1_pause_resume task.\\\\0: Disable\\\\1: Enable"]
122pub type TASK_TIMER1_PAUSE_RESUME_EN_R = crate::BitReader;
123#[doc = "Field `TASK_TIMER1_PAUSE_RESUME_EN` writer - Configures whether or not to enable ledc_timer1_pause_resume task.\\\\0: Disable\\\\1: Enable"]
124pub type TASK_TIMER1_PAUSE_RESUME_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
125#[doc = "Field `TASK_TIMER2_PAUSE_RESUME_EN` reader - Configures whether or not to enable ledc_timer2_pause_resume task.\\\\0: Disable\\\\1: Enable"]
126pub type TASK_TIMER2_PAUSE_RESUME_EN_R = crate::BitReader;
127#[doc = "Field `TASK_TIMER2_PAUSE_RESUME_EN` writer - Configures whether or not to enable ledc_timer2_pause_resume task.\\\\0: Disable\\\\1: Enable"]
128pub type TASK_TIMER2_PAUSE_RESUME_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
129#[doc = "Field `TASK_TIMER3_PAUSE_RESUME_EN` reader - Configures whether or not to enable ledc_timer3_pause_resume task.\\\\0: Disable\\\\1: Enable"]
130pub type TASK_TIMER3_PAUSE_RESUME_EN_R = crate::BitReader;
131#[doc = "Field `TASK_TIMER3_PAUSE_RESUME_EN` writer - Configures whether or not to enable ledc_timer3_pause_resume task.\\\\0: Disable\\\\1: Enable"]
132pub type TASK_TIMER3_PAUSE_RESUME_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
133impl R {
134 #[doc = "Bit 0 - Configures whether or not to enable ledc_timer0_res_update task.\\\\0: Disable\\\\1: Enable"]
135 #[inline(always)]
136 pub fn task_timer0_res_update_en(&self) -> TASK_TIMER0_RES_UPDATE_EN_R {
137 TASK_TIMER0_RES_UPDATE_EN_R::new((self.bits & 1) != 0)
138 }
139 #[doc = "Bit 1 - Configures whether or not to enable ledc_timer1_res_update task.\\\\0: Disable\\\\1: Enable"]
140 #[inline(always)]
141 pub fn task_timer1_res_update_en(&self) -> TASK_TIMER1_RES_UPDATE_EN_R {
142 TASK_TIMER1_RES_UPDATE_EN_R::new(((self.bits >> 1) & 1) != 0)
143 }
144 #[doc = "Bit 2 - Configures whether or not to enable ledc_timer2_res_update task.\\\\0: Disable\\\\1: Enable"]
145 #[inline(always)]
146 pub fn task_timer2_res_update_en(&self) -> TASK_TIMER2_RES_UPDATE_EN_R {
147 TASK_TIMER2_RES_UPDATE_EN_R::new(((self.bits >> 2) & 1) != 0)
148 }
149 #[doc = "Bit 3 - Configures whether or not to enable ledc_timer3_res_update task.\\\\0: Disable\\\\1: Enable"]
150 #[inline(always)]
151 pub fn task_timer3_res_update_en(&self) -> TASK_TIMER3_RES_UPDATE_EN_R {
152 TASK_TIMER3_RES_UPDATE_EN_R::new(((self.bits >> 3) & 1) != 0)
153 }
154 #[doc = "Bit 4 - Configures whether or not to enable ledc_timer0_cap task.\\\\0: Disable\\\\1: Enable"]
155 #[inline(always)]
156 pub fn task_timer0_cap_en(&self) -> TASK_TIMER0_CAP_EN_R {
157 TASK_TIMER0_CAP_EN_R::new(((self.bits >> 4) & 1) != 0)
158 }
159 #[doc = "Bit 5 - Configures whether or not to enable ledc_timer1_cap task.\\\\0: Disable\\\\1: Enable"]
160 #[inline(always)]
161 pub fn task_timer1_cap_en(&self) -> TASK_TIMER1_CAP_EN_R {
162 TASK_TIMER1_CAP_EN_R::new(((self.bits >> 5) & 1) != 0)
163 }
164 #[doc = "Bit 6 - Configures whether or not to enable ledc_timer2_cap task.\\\\0: Disable\\\\1: Enable"]
165 #[inline(always)]
166 pub fn task_timer2_cap_en(&self) -> TASK_TIMER2_CAP_EN_R {
167 TASK_TIMER2_CAP_EN_R::new(((self.bits >> 6) & 1) != 0)
168 }
169 #[doc = "Bit 7 - Configures whether or not to enable ledc_timer3_cap task.\\\\0: Disable\\\\1: Enable"]
170 #[inline(always)]
171 pub fn task_timer3_cap_en(&self) -> TASK_TIMER3_CAP_EN_R {
172 TASK_TIMER3_CAP_EN_R::new(((self.bits >> 7) & 1) != 0)
173 }
174 #[doc = "Bit 8 - Configures whether or not to enable ledc_ch0_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
175 #[inline(always)]
176 pub fn task_sig_out_dis_ch0_en(&self) -> TASK_SIG_OUT_DIS_CH0_EN_R {
177 TASK_SIG_OUT_DIS_CH0_EN_R::new(((self.bits >> 8) & 1) != 0)
178 }
179 #[doc = "Bit 9 - Configures whether or not to enable ledc_ch1_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
180 #[inline(always)]
181 pub fn task_sig_out_dis_ch1_en(&self) -> TASK_SIG_OUT_DIS_CH1_EN_R {
182 TASK_SIG_OUT_DIS_CH1_EN_R::new(((self.bits >> 9) & 1) != 0)
183 }
184 #[doc = "Bit 10 - Configures whether or not to enable ledc_ch2_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
185 #[inline(always)]
186 pub fn task_sig_out_dis_ch2_en(&self) -> TASK_SIG_OUT_DIS_CH2_EN_R {
187 TASK_SIG_OUT_DIS_CH2_EN_R::new(((self.bits >> 10) & 1) != 0)
188 }
189 #[doc = "Bit 11 - Configures whether or not to enable ledc_ch3_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
190 #[inline(always)]
191 pub fn task_sig_out_dis_ch3_en(&self) -> TASK_SIG_OUT_DIS_CH3_EN_R {
192 TASK_SIG_OUT_DIS_CH3_EN_R::new(((self.bits >> 11) & 1) != 0)
193 }
194 #[doc = "Bit 12 - Configures whether or not to enable ledc_ch4_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
195 #[inline(always)]
196 pub fn task_sig_out_dis_ch4_en(&self) -> TASK_SIG_OUT_DIS_CH4_EN_R {
197 TASK_SIG_OUT_DIS_CH4_EN_R::new(((self.bits >> 12) & 1) != 0)
198 }
199 #[doc = "Bit 13 - Configures whether or not to enable ledc_ch5_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
200 #[inline(always)]
201 pub fn task_sig_out_dis_ch5_en(&self) -> TASK_SIG_OUT_DIS_CH5_EN_R {
202 TASK_SIG_OUT_DIS_CH5_EN_R::new(((self.bits >> 13) & 1) != 0)
203 }
204 #[doc = "Bit 14 - Configures whether or not to enable ledc_ch6_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
205 #[inline(always)]
206 pub fn task_sig_out_dis_ch6_en(&self) -> TASK_SIG_OUT_DIS_CH6_EN_R {
207 TASK_SIG_OUT_DIS_CH6_EN_R::new(((self.bits >> 14) & 1) != 0)
208 }
209 #[doc = "Bit 15 - Configures whether or not to enable ledc_ch7_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
210 #[inline(always)]
211 pub fn task_sig_out_dis_ch7_en(&self) -> TASK_SIG_OUT_DIS_CH7_EN_R {
212 TASK_SIG_OUT_DIS_CH7_EN_R::new(((self.bits >> 15) & 1) != 0)
213 }
214 #[doc = "Bit 16 - Configures whether or not to enable ledc_ch0_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
215 #[inline(always)]
216 pub fn task_ovf_cnt_rst_ch0_en(&self) -> TASK_OVF_CNT_RST_CH0_EN_R {
217 TASK_OVF_CNT_RST_CH0_EN_R::new(((self.bits >> 16) & 1) != 0)
218 }
219 #[doc = "Bit 17 - Configures whether or not to enable ledc_ch1_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
220 #[inline(always)]
221 pub fn task_ovf_cnt_rst_ch1_en(&self) -> TASK_OVF_CNT_RST_CH1_EN_R {
222 TASK_OVF_CNT_RST_CH1_EN_R::new(((self.bits >> 17) & 1) != 0)
223 }
224 #[doc = "Bit 18 - Configures whether or not to enable ledc_ch2_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
225 #[inline(always)]
226 pub fn task_ovf_cnt_rst_ch2_en(&self) -> TASK_OVF_CNT_RST_CH2_EN_R {
227 TASK_OVF_CNT_RST_CH2_EN_R::new(((self.bits >> 18) & 1) != 0)
228 }
229 #[doc = "Bit 19 - Configures whether or not to enable ledc_ch3_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
230 #[inline(always)]
231 pub fn task_ovf_cnt_rst_ch3_en(&self) -> TASK_OVF_CNT_RST_CH3_EN_R {
232 TASK_OVF_CNT_RST_CH3_EN_R::new(((self.bits >> 19) & 1) != 0)
233 }
234 #[doc = "Bit 20 - Configures whether or not to enable ledc_ch4_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
235 #[inline(always)]
236 pub fn task_ovf_cnt_rst_ch4_en(&self) -> TASK_OVF_CNT_RST_CH4_EN_R {
237 TASK_OVF_CNT_RST_CH4_EN_R::new(((self.bits >> 20) & 1) != 0)
238 }
239 #[doc = "Bit 21 - Configures whether or not to enable ledc_ch5_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
240 #[inline(always)]
241 pub fn task_ovf_cnt_rst_ch5_en(&self) -> TASK_OVF_CNT_RST_CH5_EN_R {
242 TASK_OVF_CNT_RST_CH5_EN_R::new(((self.bits >> 21) & 1) != 0)
243 }
244 #[doc = "Bit 22 - Configures whether or not to enable ledc_ch6_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
245 #[inline(always)]
246 pub fn task_ovf_cnt_rst_ch6_en(&self) -> TASK_OVF_CNT_RST_CH6_EN_R {
247 TASK_OVF_CNT_RST_CH6_EN_R::new(((self.bits >> 22) & 1) != 0)
248 }
249 #[doc = "Bit 23 - Configures whether or not to enable ledc_ch7_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
250 #[inline(always)]
251 pub fn task_ovf_cnt_rst_ch7_en(&self) -> TASK_OVF_CNT_RST_CH7_EN_R {
252 TASK_OVF_CNT_RST_CH7_EN_R::new(((self.bits >> 23) & 1) != 0)
253 }
254 #[doc = "Bit 24 - Configures whether or not to enable ledc_timer0_rst task.\\\\0: Disable\\\\1: Enable"]
255 #[inline(always)]
256 pub fn task_timer0_rst_en(&self) -> TASK_TIMER0_RST_EN_R {
257 TASK_TIMER0_RST_EN_R::new(((self.bits >> 24) & 1) != 0)
258 }
259 #[doc = "Bit 25 - Configures whether or not to enable ledc_timer1_rst task.\\\\0: Disable\\\\1: Enable"]
260 #[inline(always)]
261 pub fn task_timer1_rst_en(&self) -> TASK_TIMER1_RST_EN_R {
262 TASK_TIMER1_RST_EN_R::new(((self.bits >> 25) & 1) != 0)
263 }
264 #[doc = "Bit 26 - Configures whether or not to enable ledc_timer2_rst task.\\\\0: Disable\\\\1: Enable"]
265 #[inline(always)]
266 pub fn task_timer2_rst_en(&self) -> TASK_TIMER2_RST_EN_R {
267 TASK_TIMER2_RST_EN_R::new(((self.bits >> 26) & 1) != 0)
268 }
269 #[doc = "Bit 27 - Configures whether or not to enable ledc_timer3_rst task.\\\\0: Disable\\\\1: Enable"]
270 #[inline(always)]
271 pub fn task_timer3_rst_en(&self) -> TASK_TIMER3_RST_EN_R {
272 TASK_TIMER3_RST_EN_R::new(((self.bits >> 27) & 1) != 0)
273 }
274 #[doc = "Bit 28 - Configures whether or not to enable ledc_timer0_pause_resume task.\\\\0: Disable\\\\1: Enable"]
275 #[inline(always)]
276 pub fn task_timer0_pause_resume_en(&self) -> TASK_TIMER0_PAUSE_RESUME_EN_R {
277 TASK_TIMER0_PAUSE_RESUME_EN_R::new(((self.bits >> 28) & 1) != 0)
278 }
279 #[doc = "Bit 29 - Configures whether or not to enable ledc_timer1_pause_resume task.\\\\0: Disable\\\\1: Enable"]
280 #[inline(always)]
281 pub fn task_timer1_pause_resume_en(&self) -> TASK_TIMER1_PAUSE_RESUME_EN_R {
282 TASK_TIMER1_PAUSE_RESUME_EN_R::new(((self.bits >> 29) & 1) != 0)
283 }
284 #[doc = "Bit 30 - Configures whether or not to enable ledc_timer2_pause_resume task.\\\\0: Disable\\\\1: Enable"]
285 #[inline(always)]
286 pub fn task_timer2_pause_resume_en(&self) -> TASK_TIMER2_PAUSE_RESUME_EN_R {
287 TASK_TIMER2_PAUSE_RESUME_EN_R::new(((self.bits >> 30) & 1) != 0)
288 }
289 #[doc = "Bit 31 - Configures whether or not to enable ledc_timer3_pause_resume task.\\\\0: Disable\\\\1: Enable"]
290 #[inline(always)]
291 pub fn task_timer3_pause_resume_en(&self) -> TASK_TIMER3_PAUSE_RESUME_EN_R {
292 TASK_TIMER3_PAUSE_RESUME_EN_R::new(((self.bits >> 31) & 1) != 0)
293 }
294}
295#[cfg(feature = "impl-register-debug")]
296impl core::fmt::Debug for R {
297 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
298 f.debug_struct("EVT_TASK_EN1")
299 .field(
300 "task_timer0_res_update_en",
301 &format_args!("{}", self.task_timer0_res_update_en().bit()),
302 )
303 .field(
304 "task_timer1_res_update_en",
305 &format_args!("{}", self.task_timer1_res_update_en().bit()),
306 )
307 .field(
308 "task_timer2_res_update_en",
309 &format_args!("{}", self.task_timer2_res_update_en().bit()),
310 )
311 .field(
312 "task_timer3_res_update_en",
313 &format_args!("{}", self.task_timer3_res_update_en().bit()),
314 )
315 .field(
316 "task_timer0_cap_en",
317 &format_args!("{}", self.task_timer0_cap_en().bit()),
318 )
319 .field(
320 "task_timer1_cap_en",
321 &format_args!("{}", self.task_timer1_cap_en().bit()),
322 )
323 .field(
324 "task_timer2_cap_en",
325 &format_args!("{}", self.task_timer2_cap_en().bit()),
326 )
327 .field(
328 "task_timer3_cap_en",
329 &format_args!("{}", self.task_timer3_cap_en().bit()),
330 )
331 .field(
332 "task_sig_out_dis_ch0_en",
333 &format_args!("{}", self.task_sig_out_dis_ch0_en().bit()),
334 )
335 .field(
336 "task_sig_out_dis_ch1_en",
337 &format_args!("{}", self.task_sig_out_dis_ch1_en().bit()),
338 )
339 .field(
340 "task_sig_out_dis_ch2_en",
341 &format_args!("{}", self.task_sig_out_dis_ch2_en().bit()),
342 )
343 .field(
344 "task_sig_out_dis_ch3_en",
345 &format_args!("{}", self.task_sig_out_dis_ch3_en().bit()),
346 )
347 .field(
348 "task_sig_out_dis_ch4_en",
349 &format_args!("{}", self.task_sig_out_dis_ch4_en().bit()),
350 )
351 .field(
352 "task_sig_out_dis_ch5_en",
353 &format_args!("{}", self.task_sig_out_dis_ch5_en().bit()),
354 )
355 .field(
356 "task_sig_out_dis_ch6_en",
357 &format_args!("{}", self.task_sig_out_dis_ch6_en().bit()),
358 )
359 .field(
360 "task_sig_out_dis_ch7_en",
361 &format_args!("{}", self.task_sig_out_dis_ch7_en().bit()),
362 )
363 .field(
364 "task_ovf_cnt_rst_ch0_en",
365 &format_args!("{}", self.task_ovf_cnt_rst_ch0_en().bit()),
366 )
367 .field(
368 "task_ovf_cnt_rst_ch1_en",
369 &format_args!("{}", self.task_ovf_cnt_rst_ch1_en().bit()),
370 )
371 .field(
372 "task_ovf_cnt_rst_ch2_en",
373 &format_args!("{}", self.task_ovf_cnt_rst_ch2_en().bit()),
374 )
375 .field(
376 "task_ovf_cnt_rst_ch3_en",
377 &format_args!("{}", self.task_ovf_cnt_rst_ch3_en().bit()),
378 )
379 .field(
380 "task_ovf_cnt_rst_ch4_en",
381 &format_args!("{}", self.task_ovf_cnt_rst_ch4_en().bit()),
382 )
383 .field(
384 "task_ovf_cnt_rst_ch5_en",
385 &format_args!("{}", self.task_ovf_cnt_rst_ch5_en().bit()),
386 )
387 .field(
388 "task_ovf_cnt_rst_ch6_en",
389 &format_args!("{}", self.task_ovf_cnt_rst_ch6_en().bit()),
390 )
391 .field(
392 "task_ovf_cnt_rst_ch7_en",
393 &format_args!("{}", self.task_ovf_cnt_rst_ch7_en().bit()),
394 )
395 .field(
396 "task_timer0_rst_en",
397 &format_args!("{}", self.task_timer0_rst_en().bit()),
398 )
399 .field(
400 "task_timer1_rst_en",
401 &format_args!("{}", self.task_timer1_rst_en().bit()),
402 )
403 .field(
404 "task_timer2_rst_en",
405 &format_args!("{}", self.task_timer2_rst_en().bit()),
406 )
407 .field(
408 "task_timer3_rst_en",
409 &format_args!("{}", self.task_timer3_rst_en().bit()),
410 )
411 .field(
412 "task_timer0_pause_resume_en",
413 &format_args!("{}", self.task_timer0_pause_resume_en().bit()),
414 )
415 .field(
416 "task_timer1_pause_resume_en",
417 &format_args!("{}", self.task_timer1_pause_resume_en().bit()),
418 )
419 .field(
420 "task_timer2_pause_resume_en",
421 &format_args!("{}", self.task_timer2_pause_resume_en().bit()),
422 )
423 .field(
424 "task_timer3_pause_resume_en",
425 &format_args!("{}", self.task_timer3_pause_resume_en().bit()),
426 )
427 .finish()
428 }
429}
430#[cfg(feature = "impl-register-debug")]
431impl core::fmt::Debug for crate::generic::Reg<EVT_TASK_EN1_SPEC> {
432 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
433 core::fmt::Debug::fmt(&self.read(), f)
434 }
435}
436impl W {
437 #[doc = "Bit 0 - Configures whether or not to enable ledc_timer0_res_update task.\\\\0: Disable\\\\1: Enable"]
438 #[inline(always)]
439 #[must_use]
440 pub fn task_timer0_res_update_en(&mut self) -> TASK_TIMER0_RES_UPDATE_EN_W<EVT_TASK_EN1_SPEC> {
441 TASK_TIMER0_RES_UPDATE_EN_W::new(self, 0)
442 }
443 #[doc = "Bit 1 - Configures whether or not to enable ledc_timer1_res_update task.\\\\0: Disable\\\\1: Enable"]
444 #[inline(always)]
445 #[must_use]
446 pub fn task_timer1_res_update_en(&mut self) -> TASK_TIMER1_RES_UPDATE_EN_W<EVT_TASK_EN1_SPEC> {
447 TASK_TIMER1_RES_UPDATE_EN_W::new(self, 1)
448 }
449 #[doc = "Bit 2 - Configures whether or not to enable ledc_timer2_res_update task.\\\\0: Disable\\\\1: Enable"]
450 #[inline(always)]
451 #[must_use]
452 pub fn task_timer2_res_update_en(&mut self) -> TASK_TIMER2_RES_UPDATE_EN_W<EVT_TASK_EN1_SPEC> {
453 TASK_TIMER2_RES_UPDATE_EN_W::new(self, 2)
454 }
455 #[doc = "Bit 3 - Configures whether or not to enable ledc_timer3_res_update task.\\\\0: Disable\\\\1: Enable"]
456 #[inline(always)]
457 #[must_use]
458 pub fn task_timer3_res_update_en(&mut self) -> TASK_TIMER3_RES_UPDATE_EN_W<EVT_TASK_EN1_SPEC> {
459 TASK_TIMER3_RES_UPDATE_EN_W::new(self, 3)
460 }
461 #[doc = "Bit 4 - Configures whether or not to enable ledc_timer0_cap task.\\\\0: Disable\\\\1: Enable"]
462 #[inline(always)]
463 #[must_use]
464 pub fn task_timer0_cap_en(&mut self) -> TASK_TIMER0_CAP_EN_W<EVT_TASK_EN1_SPEC> {
465 TASK_TIMER0_CAP_EN_W::new(self, 4)
466 }
467 #[doc = "Bit 5 - Configures whether or not to enable ledc_timer1_cap task.\\\\0: Disable\\\\1: Enable"]
468 #[inline(always)]
469 #[must_use]
470 pub fn task_timer1_cap_en(&mut self) -> TASK_TIMER1_CAP_EN_W<EVT_TASK_EN1_SPEC> {
471 TASK_TIMER1_CAP_EN_W::new(self, 5)
472 }
473 #[doc = "Bit 6 - Configures whether or not to enable ledc_timer2_cap task.\\\\0: Disable\\\\1: Enable"]
474 #[inline(always)]
475 #[must_use]
476 pub fn task_timer2_cap_en(&mut self) -> TASK_TIMER2_CAP_EN_W<EVT_TASK_EN1_SPEC> {
477 TASK_TIMER2_CAP_EN_W::new(self, 6)
478 }
479 #[doc = "Bit 7 - Configures whether or not to enable ledc_timer3_cap task.\\\\0: Disable\\\\1: Enable"]
480 #[inline(always)]
481 #[must_use]
482 pub fn task_timer3_cap_en(&mut self) -> TASK_TIMER3_CAP_EN_W<EVT_TASK_EN1_SPEC> {
483 TASK_TIMER3_CAP_EN_W::new(self, 7)
484 }
485 #[doc = "Bit 8 - Configures whether or not to enable ledc_ch0_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
486 #[inline(always)]
487 #[must_use]
488 pub fn task_sig_out_dis_ch0_en(&mut self) -> TASK_SIG_OUT_DIS_CH0_EN_W<EVT_TASK_EN1_SPEC> {
489 TASK_SIG_OUT_DIS_CH0_EN_W::new(self, 8)
490 }
491 #[doc = "Bit 9 - Configures whether or not to enable ledc_ch1_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
492 #[inline(always)]
493 #[must_use]
494 pub fn task_sig_out_dis_ch1_en(&mut self) -> TASK_SIG_OUT_DIS_CH1_EN_W<EVT_TASK_EN1_SPEC> {
495 TASK_SIG_OUT_DIS_CH1_EN_W::new(self, 9)
496 }
497 #[doc = "Bit 10 - Configures whether or not to enable ledc_ch2_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
498 #[inline(always)]
499 #[must_use]
500 pub fn task_sig_out_dis_ch2_en(&mut self) -> TASK_SIG_OUT_DIS_CH2_EN_W<EVT_TASK_EN1_SPEC> {
501 TASK_SIG_OUT_DIS_CH2_EN_W::new(self, 10)
502 }
503 #[doc = "Bit 11 - Configures whether or not to enable ledc_ch3_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
504 #[inline(always)]
505 #[must_use]
506 pub fn task_sig_out_dis_ch3_en(&mut self) -> TASK_SIG_OUT_DIS_CH3_EN_W<EVT_TASK_EN1_SPEC> {
507 TASK_SIG_OUT_DIS_CH3_EN_W::new(self, 11)
508 }
509 #[doc = "Bit 12 - Configures whether or not to enable ledc_ch4_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
510 #[inline(always)]
511 #[must_use]
512 pub fn task_sig_out_dis_ch4_en(&mut self) -> TASK_SIG_OUT_DIS_CH4_EN_W<EVT_TASK_EN1_SPEC> {
513 TASK_SIG_OUT_DIS_CH4_EN_W::new(self, 12)
514 }
515 #[doc = "Bit 13 - Configures whether or not to enable ledc_ch5_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
516 #[inline(always)]
517 #[must_use]
518 pub fn task_sig_out_dis_ch5_en(&mut self) -> TASK_SIG_OUT_DIS_CH5_EN_W<EVT_TASK_EN1_SPEC> {
519 TASK_SIG_OUT_DIS_CH5_EN_W::new(self, 13)
520 }
521 #[doc = "Bit 14 - Configures whether or not to enable ledc_ch6_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
522 #[inline(always)]
523 #[must_use]
524 pub fn task_sig_out_dis_ch6_en(&mut self) -> TASK_SIG_OUT_DIS_CH6_EN_W<EVT_TASK_EN1_SPEC> {
525 TASK_SIG_OUT_DIS_CH6_EN_W::new(self, 14)
526 }
527 #[doc = "Bit 15 - Configures whether or not to enable ledc_ch7_sig_out_dis task.\\\\0: Disable\\\\1: Enable"]
528 #[inline(always)]
529 #[must_use]
530 pub fn task_sig_out_dis_ch7_en(&mut self) -> TASK_SIG_OUT_DIS_CH7_EN_W<EVT_TASK_EN1_SPEC> {
531 TASK_SIG_OUT_DIS_CH7_EN_W::new(self, 15)
532 }
533 #[doc = "Bit 16 - Configures whether or not to enable ledc_ch0_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
534 #[inline(always)]
535 #[must_use]
536 pub fn task_ovf_cnt_rst_ch0_en(&mut self) -> TASK_OVF_CNT_RST_CH0_EN_W<EVT_TASK_EN1_SPEC> {
537 TASK_OVF_CNT_RST_CH0_EN_W::new(self, 16)
538 }
539 #[doc = "Bit 17 - Configures whether or not to enable ledc_ch1_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
540 #[inline(always)]
541 #[must_use]
542 pub fn task_ovf_cnt_rst_ch1_en(&mut self) -> TASK_OVF_CNT_RST_CH1_EN_W<EVT_TASK_EN1_SPEC> {
543 TASK_OVF_CNT_RST_CH1_EN_W::new(self, 17)
544 }
545 #[doc = "Bit 18 - Configures whether or not to enable ledc_ch2_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
546 #[inline(always)]
547 #[must_use]
548 pub fn task_ovf_cnt_rst_ch2_en(&mut self) -> TASK_OVF_CNT_RST_CH2_EN_W<EVT_TASK_EN1_SPEC> {
549 TASK_OVF_CNT_RST_CH2_EN_W::new(self, 18)
550 }
551 #[doc = "Bit 19 - Configures whether or not to enable ledc_ch3_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
552 #[inline(always)]
553 #[must_use]
554 pub fn task_ovf_cnt_rst_ch3_en(&mut self) -> TASK_OVF_CNT_RST_CH3_EN_W<EVT_TASK_EN1_SPEC> {
555 TASK_OVF_CNT_RST_CH3_EN_W::new(self, 19)
556 }
557 #[doc = "Bit 20 - Configures whether or not to enable ledc_ch4_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
558 #[inline(always)]
559 #[must_use]
560 pub fn task_ovf_cnt_rst_ch4_en(&mut self) -> TASK_OVF_CNT_RST_CH4_EN_W<EVT_TASK_EN1_SPEC> {
561 TASK_OVF_CNT_RST_CH4_EN_W::new(self, 20)
562 }
563 #[doc = "Bit 21 - Configures whether or not to enable ledc_ch5_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
564 #[inline(always)]
565 #[must_use]
566 pub fn task_ovf_cnt_rst_ch5_en(&mut self) -> TASK_OVF_CNT_RST_CH5_EN_W<EVT_TASK_EN1_SPEC> {
567 TASK_OVF_CNT_RST_CH5_EN_W::new(self, 21)
568 }
569 #[doc = "Bit 22 - Configures whether or not to enable ledc_ch6_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
570 #[inline(always)]
571 #[must_use]
572 pub fn task_ovf_cnt_rst_ch6_en(&mut self) -> TASK_OVF_CNT_RST_CH6_EN_W<EVT_TASK_EN1_SPEC> {
573 TASK_OVF_CNT_RST_CH6_EN_W::new(self, 22)
574 }
575 #[doc = "Bit 23 - Configures whether or not to enable ledc_ch7_ovf_cnt_rst task.\\\\0: Disable\\\\1: Enable"]
576 #[inline(always)]
577 #[must_use]
578 pub fn task_ovf_cnt_rst_ch7_en(&mut self) -> TASK_OVF_CNT_RST_CH7_EN_W<EVT_TASK_EN1_SPEC> {
579 TASK_OVF_CNT_RST_CH7_EN_W::new(self, 23)
580 }
581 #[doc = "Bit 24 - Configures whether or not to enable ledc_timer0_rst task.\\\\0: Disable\\\\1: Enable"]
582 #[inline(always)]
583 #[must_use]
584 pub fn task_timer0_rst_en(&mut self) -> TASK_TIMER0_RST_EN_W<EVT_TASK_EN1_SPEC> {
585 TASK_TIMER0_RST_EN_W::new(self, 24)
586 }
587 #[doc = "Bit 25 - Configures whether or not to enable ledc_timer1_rst task.\\\\0: Disable\\\\1: Enable"]
588 #[inline(always)]
589 #[must_use]
590 pub fn task_timer1_rst_en(&mut self) -> TASK_TIMER1_RST_EN_W<EVT_TASK_EN1_SPEC> {
591 TASK_TIMER1_RST_EN_W::new(self, 25)
592 }
593 #[doc = "Bit 26 - Configures whether or not to enable ledc_timer2_rst task.\\\\0: Disable\\\\1: Enable"]
594 #[inline(always)]
595 #[must_use]
596 pub fn task_timer2_rst_en(&mut self) -> TASK_TIMER2_RST_EN_W<EVT_TASK_EN1_SPEC> {
597 TASK_TIMER2_RST_EN_W::new(self, 26)
598 }
599 #[doc = "Bit 27 - Configures whether or not to enable ledc_timer3_rst task.\\\\0: Disable\\\\1: Enable"]
600 #[inline(always)]
601 #[must_use]
602 pub fn task_timer3_rst_en(&mut self) -> TASK_TIMER3_RST_EN_W<EVT_TASK_EN1_SPEC> {
603 TASK_TIMER3_RST_EN_W::new(self, 27)
604 }
605 #[doc = "Bit 28 - Configures whether or not to enable ledc_timer0_pause_resume task.\\\\0: Disable\\\\1: Enable"]
606 #[inline(always)]
607 #[must_use]
608 pub fn task_timer0_pause_resume_en(
609 &mut self,
610 ) -> TASK_TIMER0_PAUSE_RESUME_EN_W<EVT_TASK_EN1_SPEC> {
611 TASK_TIMER0_PAUSE_RESUME_EN_W::new(self, 28)
612 }
613 #[doc = "Bit 29 - Configures whether or not to enable ledc_timer1_pause_resume task.\\\\0: Disable\\\\1: Enable"]
614 #[inline(always)]
615 #[must_use]
616 pub fn task_timer1_pause_resume_en(
617 &mut self,
618 ) -> TASK_TIMER1_PAUSE_RESUME_EN_W<EVT_TASK_EN1_SPEC> {
619 TASK_TIMER1_PAUSE_RESUME_EN_W::new(self, 29)
620 }
621 #[doc = "Bit 30 - Configures whether or not to enable ledc_timer2_pause_resume task.\\\\0: Disable\\\\1: Enable"]
622 #[inline(always)]
623 #[must_use]
624 pub fn task_timer2_pause_resume_en(
625 &mut self,
626 ) -> TASK_TIMER2_PAUSE_RESUME_EN_W<EVT_TASK_EN1_SPEC> {
627 TASK_TIMER2_PAUSE_RESUME_EN_W::new(self, 30)
628 }
629 #[doc = "Bit 31 - Configures whether or not to enable ledc_timer3_pause_resume task.\\\\0: Disable\\\\1: Enable"]
630 #[inline(always)]
631 #[must_use]
632 pub fn task_timer3_pause_resume_en(
633 &mut self,
634 ) -> TASK_TIMER3_PAUSE_RESUME_EN_W<EVT_TASK_EN1_SPEC> {
635 TASK_TIMER3_PAUSE_RESUME_EN_W::new(self, 31)
636 }
637}
638#[doc = "Ledc event task enable bit register1.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`evt_task_en1::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`evt_task_en1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
639pub struct EVT_TASK_EN1_SPEC;
640impl crate::RegisterSpec for EVT_TASK_EN1_SPEC {
641 type Ux = u32;
642}
643#[doc = "`read()` method returns [`evt_task_en1::R`](R) reader structure"]
644impl crate::Readable for EVT_TASK_EN1_SPEC {}
645#[doc = "`write(|w| ..)` method takes [`evt_task_en1::W`](W) writer structure"]
646impl crate::Writable for EVT_TASK_EN1_SPEC {
647 type Safety = crate::Unsafe;
648 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
649 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
650}
651#[doc = "`reset()` method sets EVT_TASK_EN1 to value 0"]
652impl crate::Resettable for EVT_TASK_EN1_SPEC {
653 const RESET_VALUE: u32 = 0;
654}