esp32p4/h264_dma/in_ch/
link_conf.rs1#[doc = "Register `LINK_CONF` reader"]
2pub type R = crate::R<LINK_CONF_SPEC>;
3#[doc = "Register `LINK_CONF` writer"]
4pub type W = crate::W<LINK_CONF_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` reader - Set this bit to stop dealing with the inlink descriptors."]
10pub type INLINK_STOP_R = crate::BitReader;
11#[doc = "Field `INLINK_STOP` writer - Set this bit to stop dealing with the inlink descriptors."]
12pub type INLINK_STOP_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `INLINK_START` reader - Set this bit to start dealing with the inlink descriptors."]
14pub type INLINK_START_R = crate::BitReader;
15#[doc = "Field `INLINK_START` writer - Set this bit to start dealing with the inlink descriptors."]
16pub type INLINK_START_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `INLINK_RESTART` reader - Set this bit to mount a new inlink descriptor."]
18pub type INLINK_RESTART_R = crate::BitReader;
19#[doc = "Field `INLINK_RESTART` writer - Set this bit to mount a new inlink descriptor."]
20pub type INLINK_RESTART_W<'a, REG> = crate::BitWriter<'a, REG>;
21#[doc = "Field `INLINK_PARK` reader - 1: the inlink descriptor's FSM is in idle state. 0: the inlink descriptor's FSM is working."]
22pub type INLINK_PARK_R = crate::BitReader;
23impl R {
24 #[doc = "Bit 20 - Set this bit to return to current inlink descriptor's address, when there are some errors in current receiving data."]
25 #[inline(always)]
26 pub fn inlink_auto_ret(&self) -> INLINK_AUTO_RET_R {
27 INLINK_AUTO_RET_R::new(((self.bits >> 20) & 1) != 0)
28 }
29 #[doc = "Bit 21 - Set this bit to stop dealing with the inlink descriptors."]
30 #[inline(always)]
31 pub fn inlink_stop(&self) -> INLINK_STOP_R {
32 INLINK_STOP_R::new(((self.bits >> 21) & 1) != 0)
33 }
34 #[doc = "Bit 22 - Set this bit to start dealing with the inlink descriptors."]
35 #[inline(always)]
36 pub fn inlink_start(&self) -> INLINK_START_R {
37 INLINK_START_R::new(((self.bits >> 22) & 1) != 0)
38 }
39 #[doc = "Bit 23 - Set this bit to mount a new inlink descriptor."]
40 #[inline(always)]
41 pub fn inlink_restart(&self) -> INLINK_RESTART_R {
42 INLINK_RESTART_R::new(((self.bits >> 23) & 1) != 0)
43 }
44 #[doc = "Bit 24 - 1: the inlink descriptor's FSM is in idle state. 0: the inlink descriptor's FSM is working."]
45 #[inline(always)]
46 pub fn inlink_park(&self) -> INLINK_PARK_R {
47 INLINK_PARK_R::new(((self.bits >> 24) & 1) != 0)
48 }
49}
50#[cfg(feature = "impl-register-debug")]
51impl core::fmt::Debug for R {
52 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
53 f.debug_struct("LINK_CONF")
54 .field(
55 "inlink_auto_ret",
56 &format_args!("{}", self.inlink_auto_ret().bit()),
57 )
58 .field("inlink_stop", &format_args!("{}", self.inlink_stop().bit()))
59 .field(
60 "inlink_start",
61 &format_args!("{}", self.inlink_start().bit()),
62 )
63 .field(
64 "inlink_restart",
65 &format_args!("{}", self.inlink_restart().bit()),
66 )
67 .field("inlink_park", &format_args!("{}", self.inlink_park().bit()))
68 .finish()
69 }
70}
71#[cfg(feature = "impl-register-debug")]
72impl core::fmt::Debug for crate::generic::Reg<LINK_CONF_SPEC> {
73 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
74 core::fmt::Debug::fmt(&self.read(), f)
75 }
76}
77impl W {
78 #[doc = "Bit 20 - Set this bit to return to current inlink descriptor's address, when there are some errors in current receiving data."]
79 #[inline(always)]
80 #[must_use]
81 pub fn inlink_auto_ret(&mut self) -> INLINK_AUTO_RET_W<LINK_CONF_SPEC> {
82 INLINK_AUTO_RET_W::new(self, 20)
83 }
84 #[doc = "Bit 21 - Set this bit to stop dealing with the inlink descriptors."]
85 #[inline(always)]
86 #[must_use]
87 pub fn inlink_stop(&mut self) -> INLINK_STOP_W<LINK_CONF_SPEC> {
88 INLINK_STOP_W::new(self, 21)
89 }
90 #[doc = "Bit 22 - Set this bit to start dealing with the inlink descriptors."]
91 #[inline(always)]
92 #[must_use]
93 pub fn inlink_start(&mut self) -> INLINK_START_W<LINK_CONF_SPEC> {
94 INLINK_START_W::new(self, 22)
95 }
96 #[doc = "Bit 23 - Set this bit to mount a new inlink descriptor."]
97 #[inline(always)]
98 #[must_use]
99 pub fn inlink_restart(&mut self) -> INLINK_RESTART_W<LINK_CONF_SPEC> {
100 INLINK_RESTART_W::new(self, 23)
101 }
102}
103#[doc = "RX CHx in_link dscr ctrl register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`link_conf::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 [`link_conf::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
104pub struct LINK_CONF_SPEC;
105impl crate::RegisterSpec for LINK_CONF_SPEC {
106 type Ux = u32;
107}
108#[doc = "`read()` method returns [`link_conf::R`](R) reader structure"]
109impl crate::Readable for LINK_CONF_SPEC {}
110#[doc = "`write(|w| ..)` method takes [`link_conf::W`](W) writer structure"]
111impl crate::Writable for LINK_CONF_SPEC {
112 type Safety = crate::Unsafe;
113 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
114 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
115}
116#[doc = "`reset()` method sets LINK_CONF to value 0x0110_0000"]
117impl crate::Resettable for LINK_CONF_SPEC {
118 const RESET_VALUE: u32 = 0x0110_0000;
119}