esp32p4/ahb_dma/ch/
out_link.rs1#[doc = "Register `OUT_LINK` reader"]
2pub type R = crate::R<OUT_LINK_SPEC>;
3#[doc = "Register `OUT_LINK` writer"]
4pub type W = crate::W<OUT_LINK_SPEC>;
5#[doc = "Field `OUTLINK_STOP` writer - Set this bit to stop dealing with the outlink descriptors."]
6pub type OUTLINK_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `OUTLINK_START` writer - Set this bit to start dealing with the outlink descriptors."]
8pub type OUTLINK_START_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `OUTLINK_RESTART` writer - Set this bit to restart a new outlink from the last address."]
10pub type OUTLINK_RESTART_W<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `OUTLINK_PARK` reader - 1: the outlink descriptor's FSM is in idle state. 0: the outlink descriptor's FSM is working."]
12pub type OUTLINK_PARK_R = crate::BitReader;
13impl R {
14 #[doc = "Bit 3 - 1: the outlink descriptor's FSM is in idle state. 0: the outlink descriptor's FSM is working."]
15 #[inline(always)]
16 pub fn outlink_park(&self) -> OUTLINK_PARK_R {
17 OUTLINK_PARK_R::new(((self.bits >> 3) & 1) != 0)
18 }
19}
20#[cfg(feature = "impl-register-debug")]
21impl core::fmt::Debug for R {
22 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
23 f.debug_struct("OUT_LINK")
24 .field(
25 "outlink_park",
26 &format_args!("{}", self.outlink_park().bit()),
27 )
28 .finish()
29 }
30}
31#[cfg(feature = "impl-register-debug")]
32impl core::fmt::Debug for crate::generic::Reg<OUT_LINK_SPEC> {
33 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
34 core::fmt::Debug::fmt(&self.read(), f)
35 }
36}
37impl W {
38 #[doc = "Bit 0 - Set this bit to stop dealing with the outlink descriptors."]
39 #[inline(always)]
40 #[must_use]
41 pub fn outlink_stop(&mut self) -> OUTLINK_STOP_W<OUT_LINK_SPEC> {
42 OUTLINK_STOP_W::new(self, 0)
43 }
44 #[doc = "Bit 1 - Set this bit to start dealing with the outlink descriptors."]
45 #[inline(always)]
46 #[must_use]
47 pub fn outlink_start(&mut self) -> OUTLINK_START_W<OUT_LINK_SPEC> {
48 OUTLINK_START_W::new(self, 1)
49 }
50 #[doc = "Bit 2 - Set this bit to restart a new outlink from the last address."]
51 #[inline(always)]
52 #[must_use]
53 pub fn outlink_restart(&mut self) -> OUTLINK_RESTART_W<OUT_LINK_SPEC> {
54 OUTLINK_RESTART_W::new(self, 2)
55 }
56}
57#[doc = "Link descriptor configure and control register of Tx channel 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`out_link::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 [`out_link::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
58pub struct OUT_LINK_SPEC;
59impl crate::RegisterSpec for OUT_LINK_SPEC {
60 type Ux = u32;
61}
62#[doc = "`read()` method returns [`out_link::R`](R) reader structure"]
63impl crate::Readable for OUT_LINK_SPEC {}
64#[doc = "`write(|w| ..)` method takes [`out_link::W`](W) writer structure"]
65impl crate::Writable for OUT_LINK_SPEC {
66 type Safety = crate::Unsafe;
67 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
68 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
69}
70#[doc = "`reset()` method sets OUT_LINK to value 0x08"]
71impl crate::Resettable for OUT_LINK_SPEC {
72 const RESET_VALUE: u32 = 0x08;
73}