esp32p4/rmt/
ref_cnt_rst.rs1#[doc = "Register `REF_CNT_RST` writer"]
2pub type W = crate::W<REF_CNT_RST_SPEC>;
3#[doc = "Field `TX_REF_CNT_RST_CH0` writer - This register is used to reset the clock divider of CHANNEL0."]
4pub type TX_REF_CNT_RST_CH0_W<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `TX_REF_CNT_RST_CH1` writer - This register is used to reset the clock divider of CHANNEL1."]
6pub type TX_REF_CNT_RST_CH1_W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `TX_REF_CNT_RST_CH2` writer - This register is used to reset the clock divider of CHANNEL2."]
8pub type TX_REF_CNT_RST_CH2_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `TX_REF_CNT_RST_CH3` writer - This register is used to reset the clock divider of CHANNEL3."]
10pub type TX_REF_CNT_RST_CH3_W<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `RX_REF_CNT_RST_CH4` writer - This register is used to reset the clock divider of CHANNEL4."]
12pub type RX_REF_CNT_RST_CH4_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `RX_REF_CNT_RST_CH5` writer - This register is used to reset the clock divider of CHANNEL5."]
14pub type RX_REF_CNT_RST_CH5_W<'a, REG> = crate::BitWriter<'a, REG>;
15#[doc = "Field `RX_REF_CNT_RST_CH6` writer - This register is used to reset the clock divider of CHANNEL6."]
16pub type RX_REF_CNT_RST_CH6_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `RX_REF_CNT_RST_CH7` writer - This register is used to reset the clock divider of CHANNEL7."]
18pub type RX_REF_CNT_RST_CH7_W<'a, REG> = crate::BitWriter<'a, REG>;
19#[cfg(feature = "impl-register-debug")]
20impl core::fmt::Debug for crate::generic::Reg<REF_CNT_RST_SPEC> {
21 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
22 write!(f, "(not readable)")
23 }
24}
25impl W {
26 #[doc = "Bit 0 - This register is used to reset the clock divider of CHANNEL0."]
27 #[inline(always)]
28 #[must_use]
29 pub fn tx_ref_cnt_rst_ch0(&mut self) -> TX_REF_CNT_RST_CH0_W<REF_CNT_RST_SPEC> {
30 TX_REF_CNT_RST_CH0_W::new(self, 0)
31 }
32 #[doc = "Bit 1 - This register is used to reset the clock divider of CHANNEL1."]
33 #[inline(always)]
34 #[must_use]
35 pub fn tx_ref_cnt_rst_ch1(&mut self) -> TX_REF_CNT_RST_CH1_W<REF_CNT_RST_SPEC> {
36 TX_REF_CNT_RST_CH1_W::new(self, 1)
37 }
38 #[doc = "Bit 2 - This register is used to reset the clock divider of CHANNEL2."]
39 #[inline(always)]
40 #[must_use]
41 pub fn tx_ref_cnt_rst_ch2(&mut self) -> TX_REF_CNT_RST_CH2_W<REF_CNT_RST_SPEC> {
42 TX_REF_CNT_RST_CH2_W::new(self, 2)
43 }
44 #[doc = "Bit 3 - This register is used to reset the clock divider of CHANNEL3."]
45 #[inline(always)]
46 #[must_use]
47 pub fn tx_ref_cnt_rst_ch3(&mut self) -> TX_REF_CNT_RST_CH3_W<REF_CNT_RST_SPEC> {
48 TX_REF_CNT_RST_CH3_W::new(self, 3)
49 }
50 #[doc = "Bit 4 - This register is used to reset the clock divider of CHANNEL4."]
51 #[inline(always)]
52 #[must_use]
53 pub fn rx_ref_cnt_rst_ch4(&mut self) -> RX_REF_CNT_RST_CH4_W<REF_CNT_RST_SPEC> {
54 RX_REF_CNT_RST_CH4_W::new(self, 4)
55 }
56 #[doc = "Bit 5 - This register is used to reset the clock divider of CHANNEL5."]
57 #[inline(always)]
58 #[must_use]
59 pub fn rx_ref_cnt_rst_ch5(&mut self) -> RX_REF_CNT_RST_CH5_W<REF_CNT_RST_SPEC> {
60 RX_REF_CNT_RST_CH5_W::new(self, 5)
61 }
62 #[doc = "Bit 6 - This register is used to reset the clock divider of CHANNEL6."]
63 #[inline(always)]
64 #[must_use]
65 pub fn rx_ref_cnt_rst_ch6(&mut self) -> RX_REF_CNT_RST_CH6_W<REF_CNT_RST_SPEC> {
66 RX_REF_CNT_RST_CH6_W::new(self, 6)
67 }
68 #[doc = "Bit 7 - This register is used to reset the clock divider of CHANNEL7."]
69 #[inline(always)]
70 #[must_use]
71 pub fn rx_ref_cnt_rst_ch7(&mut self) -> RX_REF_CNT_RST_CH7_W<REF_CNT_RST_SPEC> {
72 RX_REF_CNT_RST_CH7_W::new(self, 7)
73 }
74}
75#[doc = "RMT clock divider reset register\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`ref_cnt_rst::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
76pub struct REF_CNT_RST_SPEC;
77impl crate::RegisterSpec for REF_CNT_RST_SPEC {
78 type Ux = u32;
79}
80#[doc = "`write(|w| ..)` method takes [`ref_cnt_rst::W`](W) writer structure"]
81impl crate::Writable for REF_CNT_RST_SPEC {
82 type Safety = crate::Unsafe;
83 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
84 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
85}
86#[doc = "`reset()` method sets REF_CNT_RST to value 0"]
87impl crate::Resettable for REF_CNT_RST_SPEC {
88 const RESET_VALUE: u32 = 0;
89}