esp32p4/mipi_csi_host/
int_st_phy.rs

1#[doc = "Register `INT_ST_PHY` reader"]
2pub type R = crate::R<INT_ST_PHY_SPEC>;
3#[doc = "Field `ST_PHY_ERRSOTHS_0` reader - NA"]
4pub type ST_PHY_ERRSOTHS_0_R = crate::BitReader;
5#[doc = "Field `ST_PHY_ERRSOTHS_1` reader - NA"]
6pub type ST_PHY_ERRSOTHS_1_R = crate::BitReader;
7#[doc = "Field `ST_PHY_ERRESC_0` reader - NA"]
8pub type ST_PHY_ERRESC_0_R = crate::BitReader;
9#[doc = "Field `ST_PHY_ERRESC_1` reader - NA"]
10pub type ST_PHY_ERRESC_1_R = crate::BitReader;
11impl R {
12    #[doc = "Bit 0 - NA"]
13    #[inline(always)]
14    pub fn st_phy_errsoths_0(&self) -> ST_PHY_ERRSOTHS_0_R {
15        ST_PHY_ERRSOTHS_0_R::new((self.bits & 1) != 0)
16    }
17    #[doc = "Bit 1 - NA"]
18    #[inline(always)]
19    pub fn st_phy_errsoths_1(&self) -> ST_PHY_ERRSOTHS_1_R {
20        ST_PHY_ERRSOTHS_1_R::new(((self.bits >> 1) & 1) != 0)
21    }
22    #[doc = "Bit 16 - NA"]
23    #[inline(always)]
24    pub fn st_phy_erresc_0(&self) -> ST_PHY_ERRESC_0_R {
25        ST_PHY_ERRESC_0_R::new(((self.bits >> 16) & 1) != 0)
26    }
27    #[doc = "Bit 17 - NA"]
28    #[inline(always)]
29    pub fn st_phy_erresc_1(&self) -> ST_PHY_ERRESC_1_R {
30        ST_PHY_ERRESC_1_R::new(((self.bits >> 17) & 1) != 0)
31    }
32}
33#[cfg(feature = "impl-register-debug")]
34impl core::fmt::Debug for R {
35    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
36        f.debug_struct("INT_ST_PHY")
37            .field(
38                "st_phy_errsoths_0",
39                &format_args!("{}", self.st_phy_errsoths_0().bit()),
40            )
41            .field(
42                "st_phy_errsoths_1",
43                &format_args!("{}", self.st_phy_errsoths_1().bit()),
44            )
45            .field(
46                "st_phy_erresc_0",
47                &format_args!("{}", self.st_phy_erresc_0().bit()),
48            )
49            .field(
50                "st_phy_erresc_1",
51                &format_args!("{}", self.st_phy_erresc_1().bit()),
52            )
53            .finish()
54    }
55}
56#[cfg(feature = "impl-register-debug")]
57impl core::fmt::Debug for crate::generic::Reg<INT_ST_PHY_SPEC> {
58    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
59        core::fmt::Debug::fmt(&self.read(), f)
60    }
61}
62#[doc = "NA\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`int_st_phy::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
63pub struct INT_ST_PHY_SPEC;
64impl crate::RegisterSpec for INT_ST_PHY_SPEC {
65    type Ux = u32;
66}
67#[doc = "`read()` method returns [`int_st_phy::R`](R) reader structure"]
68impl crate::Readable for INT_ST_PHY_SPEC {}
69#[doc = "`reset()` method sets INT_ST_PHY to value 0"]
70impl crate::Resettable for INT_ST_PHY_SPEC {
71    const RESET_VALUE: u32 = 0;
72}