esp32p4/pau/
regdma_etm_ctrl.rs1#[doc = "Register `REGDMA_ETM_CTRL` writer"]
2pub type W = crate::W<REGDMA_ETM_CTRL_SPEC>;
3#[doc = "Field `ETM_START_0` writer - etm_start_0 reg"]
4pub type ETM_START_0_W<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `ETM_START_1` writer - etm_start_1 reg"]
6pub type ETM_START_1_W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `ETM_START_2` writer - etm_start_2 reg"]
8pub type ETM_START_2_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `ETM_START_3` writer - etm_start_3 reg"]
10pub type ETM_START_3_W<'a, REG> = crate::BitWriter<'a, REG>;
11#[cfg(feature = "impl-register-debug")]
12impl core::fmt::Debug for crate::generic::Reg<REGDMA_ETM_CTRL_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 - etm_start_0 reg"]
19 #[inline(always)]
20 #[must_use]
21 pub fn etm_start_0(&mut self) -> ETM_START_0_W<REGDMA_ETM_CTRL_SPEC> {
22 ETM_START_0_W::new(self, 0)
23 }
24 #[doc = "Bit 1 - etm_start_1 reg"]
25 #[inline(always)]
26 #[must_use]
27 pub fn etm_start_1(&mut self) -> ETM_START_1_W<REGDMA_ETM_CTRL_SPEC> {
28 ETM_START_1_W::new(self, 1)
29 }
30 #[doc = "Bit 2 - etm_start_2 reg"]
31 #[inline(always)]
32 #[must_use]
33 pub fn etm_start_2(&mut self) -> ETM_START_2_W<REGDMA_ETM_CTRL_SPEC> {
34 ETM_START_2_W::new(self, 2)
35 }
36 #[doc = "Bit 3 - etm_start_3 reg"]
37 #[inline(always)]
38 #[must_use]
39 pub fn etm_start_3(&mut self) -> ETM_START_3_W<REGDMA_ETM_CTRL_SPEC> {
40 ETM_START_3_W::new(self, 3)
41 }
42}
43#[doc = "ETM start ctrl reg\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 [`regdma_etm_ctrl::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
44pub struct REGDMA_ETM_CTRL_SPEC;
45impl crate::RegisterSpec for REGDMA_ETM_CTRL_SPEC {
46 type Ux = u32;
47}
48#[doc = "`write(|w| ..)` method takes [`regdma_etm_ctrl::W`](W) writer structure"]
49impl crate::Writable for REGDMA_ETM_CTRL_SPEC {
50 type Safety = crate::Unsafe;
51 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
52 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
53}
54#[doc = "`reset()` method sets REGDMA_ETM_CTRL to value 0"]
55impl crate::Resettable for REGDMA_ETM_CTRL_SPEC {
56 const RESET_VALUE: u32 = 0;
57}