esp32p4/hp_sys/
apb_sync_postw_en.rs1#[doc = "Register `APB_SYNC_POSTW_EN` reader"]
2pub type R = crate::R<APB_SYNC_POSTW_EN_SPEC>;
3#[doc = "Register `APB_SYNC_POSTW_EN` writer"]
4pub type W = crate::W<APB_SYNC_POSTW_EN_SPEC>;
5#[doc = "Field `GMAC_APB_POSTW_EN` reader - N/A"]
6pub type GMAC_APB_POSTW_EN_R = crate::BitReader;
7#[doc = "Field `GMAC_APB_POSTW_EN` writer - N/A"]
8pub type GMAC_APB_POSTW_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `DSI_HOST_APB_POSTW_EN` reader - N/A"]
10pub type DSI_HOST_APB_POSTW_EN_R = crate::BitReader;
11#[doc = "Field `DSI_HOST_APB_POSTW_EN` writer - N/A"]
12pub type DSI_HOST_APB_POSTW_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `CSI_HOST_APB_SYNC_POSTW_EN` reader - N/A"]
14pub type CSI_HOST_APB_SYNC_POSTW_EN_R = crate::BitReader;
15#[doc = "Field `CSI_HOST_APB_SYNC_POSTW_EN` writer - N/A"]
16pub type CSI_HOST_APB_SYNC_POSTW_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `CSI_HOST_APB_ASYNC_POSTW_EN` reader - N/A"]
18pub type CSI_HOST_APB_ASYNC_POSTW_EN_R = crate::BitReader;
19#[doc = "Field `CSI_HOST_APB_ASYNC_POSTW_EN` writer - N/A"]
20pub type CSI_HOST_APB_ASYNC_POSTW_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
21impl R {
22 #[doc = "Bit 0 - N/A"]
23 #[inline(always)]
24 pub fn gmac_apb_postw_en(&self) -> GMAC_APB_POSTW_EN_R {
25 GMAC_APB_POSTW_EN_R::new((self.bits & 1) != 0)
26 }
27 #[doc = "Bit 1 - N/A"]
28 #[inline(always)]
29 pub fn dsi_host_apb_postw_en(&self) -> DSI_HOST_APB_POSTW_EN_R {
30 DSI_HOST_APB_POSTW_EN_R::new(((self.bits >> 1) & 1) != 0)
31 }
32 #[doc = "Bit 2 - N/A"]
33 #[inline(always)]
34 pub fn csi_host_apb_sync_postw_en(&self) -> CSI_HOST_APB_SYNC_POSTW_EN_R {
35 CSI_HOST_APB_SYNC_POSTW_EN_R::new(((self.bits >> 2) & 1) != 0)
36 }
37 #[doc = "Bit 3 - N/A"]
38 #[inline(always)]
39 pub fn csi_host_apb_async_postw_en(&self) -> CSI_HOST_APB_ASYNC_POSTW_EN_R {
40 CSI_HOST_APB_ASYNC_POSTW_EN_R::new(((self.bits >> 3) & 1) != 0)
41 }
42}
43#[cfg(feature = "impl-register-debug")]
44impl core::fmt::Debug for R {
45 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
46 f.debug_struct("APB_SYNC_POSTW_EN")
47 .field(
48 "gmac_apb_postw_en",
49 &format_args!("{}", self.gmac_apb_postw_en().bit()),
50 )
51 .field(
52 "dsi_host_apb_postw_en",
53 &format_args!("{}", self.dsi_host_apb_postw_en().bit()),
54 )
55 .field(
56 "csi_host_apb_sync_postw_en",
57 &format_args!("{}", self.csi_host_apb_sync_postw_en().bit()),
58 )
59 .field(
60 "csi_host_apb_async_postw_en",
61 &format_args!("{}", self.csi_host_apb_async_postw_en().bit()),
62 )
63 .finish()
64 }
65}
66#[cfg(feature = "impl-register-debug")]
67impl core::fmt::Debug for crate::generic::Reg<APB_SYNC_POSTW_EN_SPEC> {
68 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
69 core::fmt::Debug::fmt(&self.read(), f)
70 }
71}
72impl W {
73 #[doc = "Bit 0 - N/A"]
74 #[inline(always)]
75 #[must_use]
76 pub fn gmac_apb_postw_en(&mut self) -> GMAC_APB_POSTW_EN_W<APB_SYNC_POSTW_EN_SPEC> {
77 GMAC_APB_POSTW_EN_W::new(self, 0)
78 }
79 #[doc = "Bit 1 - N/A"]
80 #[inline(always)]
81 #[must_use]
82 pub fn dsi_host_apb_postw_en(&mut self) -> DSI_HOST_APB_POSTW_EN_W<APB_SYNC_POSTW_EN_SPEC> {
83 DSI_HOST_APB_POSTW_EN_W::new(self, 1)
84 }
85 #[doc = "Bit 2 - N/A"]
86 #[inline(always)]
87 #[must_use]
88 pub fn csi_host_apb_sync_postw_en(
89 &mut self,
90 ) -> CSI_HOST_APB_SYNC_POSTW_EN_W<APB_SYNC_POSTW_EN_SPEC> {
91 CSI_HOST_APB_SYNC_POSTW_EN_W::new(self, 2)
92 }
93 #[doc = "Bit 3 - N/A"]
94 #[inline(always)]
95 #[must_use]
96 pub fn csi_host_apb_async_postw_en(
97 &mut self,
98 ) -> CSI_HOST_APB_ASYNC_POSTW_EN_W<APB_SYNC_POSTW_EN_SPEC> {
99 CSI_HOST_APB_ASYNC_POSTW_EN_W::new(self, 3)
100 }
101}
102#[doc = "N/A\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`apb_sync_postw_en::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 [`apb_sync_postw_en::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
103pub struct APB_SYNC_POSTW_EN_SPEC;
104impl crate::RegisterSpec for APB_SYNC_POSTW_EN_SPEC {
105 type Ux = u32;
106}
107#[doc = "`read()` method returns [`apb_sync_postw_en::R`](R) reader structure"]
108impl crate::Readable for APB_SYNC_POSTW_EN_SPEC {}
109#[doc = "`write(|w| ..)` method takes [`apb_sync_postw_en::W`](W) writer structure"]
110impl crate::Writable for APB_SYNC_POSTW_EN_SPEC {
111 type Safety = crate::Unsafe;
112 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
113 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
114}
115#[doc = "`reset()` method sets APB_SYNC_POSTW_EN to value 0"]
116impl crate::Resettable for APB_SYNC_POSTW_EN_SPEC {
117 const RESET_VALUE: u32 = 0;
118}