esp32c3/rmt/
ref_cnt_rst.rs1#[doc = "Register `REF_CNT_RST` writer"]
2pub type W = crate::W<REF_CNT_RST_SPEC>;
3#[doc = "Field `CH0` writer - reg_ref_cnt_rst_ch0."]
4pub type CH0_W<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `CH1` writer - reg_ref_cnt_rst_ch1."]
6pub type CH1_W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `CH2` writer - reg_ref_cnt_rst_ch2."]
8pub type CH2_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `CH3` writer - reg_ref_cnt_rst_ch3."]
10pub type CH3_W<'a, REG> = crate::BitWriter<'a, REG>;
11#[cfg(feature = "impl-register-debug")]
12impl core::fmt::Debug for crate::generic::Reg<REF_CNT_RST_SPEC> {
13 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
14 write!(f, "(not readable)")
15 }
16}
17impl W {
18 #[doc = "Bit 0 - reg_ref_cnt_rst_ch0."]
19 #[inline(always)]
20 pub fn ch0(&mut self) -> CH0_W<REF_CNT_RST_SPEC> {
21 CH0_W::new(self, 0)
22 }
23 #[doc = "Bit 1 - reg_ref_cnt_rst_ch1."]
24 #[inline(always)]
25 pub fn ch1(&mut self) -> CH1_W<REF_CNT_RST_SPEC> {
26 CH1_W::new(self, 1)
27 }
28 #[doc = "Bit 2 - reg_ref_cnt_rst_ch2."]
29 #[inline(always)]
30 pub fn ch2(&mut self) -> CH2_W<REF_CNT_RST_SPEC> {
31 CH2_W::new(self, 2)
32 }
33 #[doc = "Bit 3 - reg_ref_cnt_rst_ch3."]
34 #[inline(always)]
35 pub fn ch3(&mut self) -> CH3_W<REF_CNT_RST_SPEC> {
36 CH3_W::new(self, 3)
37 }
38}
39#[doc = "RMT_REF_CNT_RST_REG.\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ref_cnt_rst::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
40pub struct REF_CNT_RST_SPEC;
41impl crate::RegisterSpec for REF_CNT_RST_SPEC {
42 type Ux = u32;
43}
44#[doc = "`write(|w| ..)` method takes [`ref_cnt_rst::W`](W) writer structure"]
45impl crate::Writable for REF_CNT_RST_SPEC {
46 type Safety = crate::Unsafe;
47}
48#[doc = "`reset()` method sets REF_CNT_RST to value 0"]
49impl crate::Resettable for REF_CNT_RST_SPEC {}