esp32p4/mipi_dsi_host/
vid_shadow_ctrl.rs1#[doc = "Register `VID_SHADOW_CTRL` reader"]
2pub type R = crate::R<VID_SHADOW_CTRL_SPEC>;
3#[doc = "Register `VID_SHADOW_CTRL` writer"]
4pub type W = crate::W<VID_SHADOW_CTRL_SPEC>;
5#[doc = "Field `VID_SHADOW_EN` reader - NA"]
6pub type VID_SHADOW_EN_R = crate::BitReader;
7#[doc = "Field `VID_SHADOW_EN` writer - NA"]
8pub type VID_SHADOW_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `VID_SHADOW_REQ` reader - NA"]
10pub type VID_SHADOW_REQ_R = crate::BitReader;
11#[doc = "Field `VID_SHADOW_REQ` writer - NA"]
12pub type VID_SHADOW_REQ_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `VID_SHADOW_PIN_REQ` reader - NA"]
14pub type VID_SHADOW_PIN_REQ_R = crate::BitReader;
15#[doc = "Field `VID_SHADOW_PIN_REQ` writer - NA"]
16pub type VID_SHADOW_PIN_REQ_W<'a, REG> = crate::BitWriter<'a, REG>;
17impl R {
18 #[doc = "Bit 0 - NA"]
19 #[inline(always)]
20 pub fn vid_shadow_en(&self) -> VID_SHADOW_EN_R {
21 VID_SHADOW_EN_R::new((self.bits & 1) != 0)
22 }
23 #[doc = "Bit 8 - NA"]
24 #[inline(always)]
25 pub fn vid_shadow_req(&self) -> VID_SHADOW_REQ_R {
26 VID_SHADOW_REQ_R::new(((self.bits >> 8) & 1) != 0)
27 }
28 #[doc = "Bit 16 - NA"]
29 #[inline(always)]
30 pub fn vid_shadow_pin_req(&self) -> VID_SHADOW_PIN_REQ_R {
31 VID_SHADOW_PIN_REQ_R::new(((self.bits >> 16) & 1) != 0)
32 }
33}
34#[cfg(feature = "impl-register-debug")]
35impl core::fmt::Debug for R {
36 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
37 f.debug_struct("VID_SHADOW_CTRL")
38 .field(
39 "vid_shadow_en",
40 &format_args!("{}", self.vid_shadow_en().bit()),
41 )
42 .field(
43 "vid_shadow_req",
44 &format_args!("{}", self.vid_shadow_req().bit()),
45 )
46 .field(
47 "vid_shadow_pin_req",
48 &format_args!("{}", self.vid_shadow_pin_req().bit()),
49 )
50 .finish()
51 }
52}
53#[cfg(feature = "impl-register-debug")]
54impl core::fmt::Debug for crate::generic::Reg<VID_SHADOW_CTRL_SPEC> {
55 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
56 core::fmt::Debug::fmt(&self.read(), f)
57 }
58}
59impl W {
60 #[doc = "Bit 0 - NA"]
61 #[inline(always)]
62 #[must_use]
63 pub fn vid_shadow_en(&mut self) -> VID_SHADOW_EN_W<VID_SHADOW_CTRL_SPEC> {
64 VID_SHADOW_EN_W::new(self, 0)
65 }
66 #[doc = "Bit 8 - NA"]
67 #[inline(always)]
68 #[must_use]
69 pub fn vid_shadow_req(&mut self) -> VID_SHADOW_REQ_W<VID_SHADOW_CTRL_SPEC> {
70 VID_SHADOW_REQ_W::new(self, 8)
71 }
72 #[doc = "Bit 16 - NA"]
73 #[inline(always)]
74 #[must_use]
75 pub fn vid_shadow_pin_req(&mut self) -> VID_SHADOW_PIN_REQ_W<VID_SHADOW_CTRL_SPEC> {
76 VID_SHADOW_PIN_REQ_W::new(self, 16)
77 }
78}
79#[doc = "NA\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`vid_shadow_ctrl::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 [`vid_shadow_ctrl::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
80pub struct VID_SHADOW_CTRL_SPEC;
81impl crate::RegisterSpec for VID_SHADOW_CTRL_SPEC {
82 type Ux = u32;
83}
84#[doc = "`read()` method returns [`vid_shadow_ctrl::R`](R) reader structure"]
85impl crate::Readable for VID_SHADOW_CTRL_SPEC {}
86#[doc = "`write(|w| ..)` method takes [`vid_shadow_ctrl::W`](W) writer structure"]
87impl crate::Writable for VID_SHADOW_CTRL_SPEC {
88 type Safety = crate::Unsafe;
89 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
90 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
91}
92#[doc = "`reset()` method sets VID_SHADOW_CTRL to value 0"]
93impl crate::Resettable for VID_SHADOW_CTRL_SPEC {
94 const RESET_VALUE: u32 = 0;
95}