esp32p4/axi_dma/in_ch/
in_link1.rs1#[doc = "Register `IN_LINK1` reader"]
2pub type R = crate::R<IN_LINK1_SPEC>;
3#[doc = "Register `IN_LINK1` writer"]
4pub type W = crate::W<IN_LINK1_SPEC>;
5#[doc = "Field `INLINK_AUTO_RET` reader - Set this bit to return to current inlink descriptor's address when there are some errors in current receiving data."]
6pub type INLINK_AUTO_RET_R = crate::BitReader;
7#[doc = "Field `INLINK_AUTO_RET` writer - Set this bit to return to current inlink descriptor's address when there are some errors in current receiving data."]
8pub type INLINK_AUTO_RET_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `INLINK_STOP` writer - Set this bit to stop dealing with the inlink descriptors."]
10pub type INLINK_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `INLINK_START` writer - Set this bit to start dealing with the inlink descriptors."]
12pub type INLINK_START_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `INLINK_RESTART` writer - Set this bit to mount a new inlink descriptor."]
14pub type INLINK_RESTART_W<'a, REG> = crate::BitWriter<'a, REG>;
15#[doc = "Field `INLINK_PARK` reader - 1: the inlink descriptor's FSM is in idle state. 0: the inlink descriptor's FSM is working."]
16pub type INLINK_PARK_R = crate::BitReader;
17impl R {
18 #[doc = "Bit 0 - Set this bit to return to current inlink descriptor's address when there are some errors in current receiving data."]
19 #[inline(always)]
20 pub fn inlink_auto_ret(&self) -> INLINK_AUTO_RET_R {
21 INLINK_AUTO_RET_R::new((self.bits & 1) != 0)
22 }
23 #[doc = "Bit 4 - 1: the inlink descriptor's FSM is in idle state. 0: the inlink descriptor's FSM is working."]
24 #[inline(always)]
25 pub fn inlink_park(&self) -> INLINK_PARK_R {
26 INLINK_PARK_R::new(((self.bits >> 4) & 1) != 0)
27 }
28}
29#[cfg(feature = "impl-register-debug")]
30impl core::fmt::Debug for R {
31 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
32 f.debug_struct("IN_LINK1")
33 .field(
34 "inlink_auto_ret",
35 &format_args!("{}", self.inlink_auto_ret().bit()),
36 )
37 .field("inlink_park", &format_args!("{}", self.inlink_park().bit()))
38 .finish()
39 }
40}
41#[cfg(feature = "impl-register-debug")]
42impl core::fmt::Debug for crate::generic::Reg<IN_LINK1_SPEC> {
43 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
44 core::fmt::Debug::fmt(&self.read(), f)
45 }
46}
47impl W {
48 #[doc = "Bit 0 - Set this bit to return to current inlink descriptor's address when there are some errors in current receiving data."]
49 #[inline(always)]
50 #[must_use]
51 pub fn inlink_auto_ret(&mut self) -> INLINK_AUTO_RET_W<IN_LINK1_SPEC> {
52 INLINK_AUTO_RET_W::new(self, 0)
53 }
54 #[doc = "Bit 1 - Set this bit to stop dealing with the inlink descriptors."]
55 #[inline(always)]
56 #[must_use]
57 pub fn inlink_stop(&mut self) -> INLINK_STOP_W<IN_LINK1_SPEC> {
58 INLINK_STOP_W::new(self, 1)
59 }
60 #[doc = "Bit 2 - Set this bit to start dealing with the inlink descriptors."]
61 #[inline(always)]
62 #[must_use]
63 pub fn inlink_start(&mut self) -> INLINK_START_W<IN_LINK1_SPEC> {
64 INLINK_START_W::new(self, 2)
65 }
66 #[doc = "Bit 3 - Set this bit to mount a new inlink descriptor."]
67 #[inline(always)]
68 #[must_use]
69 pub fn inlink_restart(&mut self) -> INLINK_RESTART_W<IN_LINK1_SPEC> {
70 INLINK_RESTART_W::new(self, 3)
71 }
72}
73#[doc = "Link descriptor configure and control register of Rx channel 0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`in_link1::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 [`in_link1::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
74pub struct IN_LINK1_SPEC;
75impl crate::RegisterSpec for IN_LINK1_SPEC {
76 type Ux = u32;
77}
78#[doc = "`read()` method returns [`in_link1::R`](R) reader structure"]
79impl crate::Readable for IN_LINK1_SPEC {}
80#[doc = "`write(|w| ..)` method takes [`in_link1::W`](W) writer structure"]
81impl crate::Writable for IN_LINK1_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 IN_LINK1 to value 0x11"]
87impl crate::Resettable for IN_LINK1_SPEC {
88 const RESET_VALUE: u32 = 0x11;
89}