esp32p4/mipi_csi_host/
int_force_phy.rs1#[doc = "Register `INT_FORCE_PHY` reader"]
2pub type R = crate::R<INT_FORCE_PHY_SPEC>;
3#[doc = "Register `INT_FORCE_PHY` writer"]
4pub type W = crate::W<INT_FORCE_PHY_SPEC>;
5#[doc = "Field `FORCE_PHY_ERRSOTHS_0` reader - NA"]
6pub type FORCE_PHY_ERRSOTHS_0_R = crate::BitReader;
7#[doc = "Field `FORCE_PHY_ERRSOTHS_0` writer - NA"]
8pub type FORCE_PHY_ERRSOTHS_0_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `FORCE_PHY_ERRSOTHS_1` reader - NA"]
10pub type FORCE_PHY_ERRSOTHS_1_R = crate::BitReader;
11#[doc = "Field `FORCE_PHY_ERRSOTHS_1` writer - NA"]
12pub type FORCE_PHY_ERRSOTHS_1_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `FORCE_PHY_ERRESC_0` reader - NA"]
14pub type FORCE_PHY_ERRESC_0_R = crate::BitReader;
15#[doc = "Field `FORCE_PHY_ERRESC_0` writer - NA"]
16pub type FORCE_PHY_ERRESC_0_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `FORCE_PHY_ERRESC_1` reader - NA"]
18pub type FORCE_PHY_ERRESC_1_R = crate::BitReader;
19#[doc = "Field `FORCE_PHY_ERRESC_1` writer - NA"]
20pub type FORCE_PHY_ERRESC_1_W<'a, REG> = crate::BitWriter<'a, REG>;
21impl R {
22 #[doc = "Bit 0 - NA"]
23 #[inline(always)]
24 pub fn force_phy_errsoths_0(&self) -> FORCE_PHY_ERRSOTHS_0_R {
25 FORCE_PHY_ERRSOTHS_0_R::new((self.bits & 1) != 0)
26 }
27 #[doc = "Bit 1 - NA"]
28 #[inline(always)]
29 pub fn force_phy_errsoths_1(&self) -> FORCE_PHY_ERRSOTHS_1_R {
30 FORCE_PHY_ERRSOTHS_1_R::new(((self.bits >> 1) & 1) != 0)
31 }
32 #[doc = "Bit 16 - NA"]
33 #[inline(always)]
34 pub fn force_phy_erresc_0(&self) -> FORCE_PHY_ERRESC_0_R {
35 FORCE_PHY_ERRESC_0_R::new(((self.bits >> 16) & 1) != 0)
36 }
37 #[doc = "Bit 17 - NA"]
38 #[inline(always)]
39 pub fn force_phy_erresc_1(&self) -> FORCE_PHY_ERRESC_1_R {
40 FORCE_PHY_ERRESC_1_R::new(((self.bits >> 17) & 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("INT_FORCE_PHY")
47 .field(
48 "force_phy_errsoths_0",
49 &format_args!("{}", self.force_phy_errsoths_0().bit()),
50 )
51 .field(
52 "force_phy_errsoths_1",
53 &format_args!("{}", self.force_phy_errsoths_1().bit()),
54 )
55 .field(
56 "force_phy_erresc_0",
57 &format_args!("{}", self.force_phy_erresc_0().bit()),
58 )
59 .field(
60 "force_phy_erresc_1",
61 &format_args!("{}", self.force_phy_erresc_1().bit()),
62 )
63 .finish()
64 }
65}
66#[cfg(feature = "impl-register-debug")]
67impl core::fmt::Debug for crate::generic::Reg<INT_FORCE_PHY_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 - NA"]
74 #[inline(always)]
75 #[must_use]
76 pub fn force_phy_errsoths_0(&mut self) -> FORCE_PHY_ERRSOTHS_0_W<INT_FORCE_PHY_SPEC> {
77 FORCE_PHY_ERRSOTHS_0_W::new(self, 0)
78 }
79 #[doc = "Bit 1 - NA"]
80 #[inline(always)]
81 #[must_use]
82 pub fn force_phy_errsoths_1(&mut self) -> FORCE_PHY_ERRSOTHS_1_W<INT_FORCE_PHY_SPEC> {
83 FORCE_PHY_ERRSOTHS_1_W::new(self, 1)
84 }
85 #[doc = "Bit 16 - NA"]
86 #[inline(always)]
87 #[must_use]
88 pub fn force_phy_erresc_0(&mut self) -> FORCE_PHY_ERRESC_0_W<INT_FORCE_PHY_SPEC> {
89 FORCE_PHY_ERRESC_0_W::new(self, 16)
90 }
91 #[doc = "Bit 17 - NA"]
92 #[inline(always)]
93 #[must_use]
94 pub fn force_phy_erresc_1(&mut self) -> FORCE_PHY_ERRESC_1_W<INT_FORCE_PHY_SPEC> {
95 FORCE_PHY_ERRESC_1_W::new(self, 17)
96 }
97}
98#[doc = "NA\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_force_phy::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 [`int_force_phy::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
99pub struct INT_FORCE_PHY_SPEC;
100impl crate::RegisterSpec for INT_FORCE_PHY_SPEC {
101 type Ux = u32;
102}
103#[doc = "`read()` method returns [`int_force_phy::R`](R) reader structure"]
104impl crate::Readable for INT_FORCE_PHY_SPEC {}
105#[doc = "`write(|w| ..)` method takes [`int_force_phy::W`](W) writer structure"]
106impl crate::Writable for INT_FORCE_PHY_SPEC {
107 type Safety = crate::Unsafe;
108 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
109 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
110}
111#[doc = "`reset()` method sets INT_FORCE_PHY to value 0"]
112impl crate::Resettable for INT_FORCE_PHY_SPEC {
113 const RESET_VALUE: u32 = 0;
114}