esp32c2/sensitive/
pif_access_monitor_2.rs

1#[doc = "Register `PIF_ACCESS_MONITOR_2` reader"]
2pub type R = crate::R<PIF_ACCESS_MONITOR_2_SPEC>;
3#[doc = "Field `PIF_ACCESS_MONITOR_NONWORD_VIOLATE_INTR` reader - Need add description"]
4pub type PIF_ACCESS_MONITOR_NONWORD_VIOLATE_INTR_R = crate::BitReader;
5#[doc = "Field `PIF_ACCESS_MONITOR_NONWORD_VIOLATE_STATUS_HSIZE` reader - Need add description"]
6pub type PIF_ACCESS_MONITOR_NONWORD_VIOLATE_STATUS_HSIZE_R = crate::FieldReader;
7impl R {
8    #[doc = "Bit 0 - Need add description"]
9    #[inline(always)]
10    pub fn pif_access_monitor_nonword_violate_intr(
11        &self,
12    ) -> PIF_ACCESS_MONITOR_NONWORD_VIOLATE_INTR_R {
13        PIF_ACCESS_MONITOR_NONWORD_VIOLATE_INTR_R::new((self.bits & 1) != 0)
14    }
15    #[doc = "Bits 1:2 - Need add description"]
16    #[inline(always)]
17    pub fn pif_access_monitor_nonword_violate_status_hsize(
18        &self,
19    ) -> PIF_ACCESS_MONITOR_NONWORD_VIOLATE_STATUS_HSIZE_R {
20        PIF_ACCESS_MONITOR_NONWORD_VIOLATE_STATUS_HSIZE_R::new(((self.bits >> 1) & 3) as u8)
21    }
22}
23#[cfg(feature = "impl-register-debug")]
24impl core::fmt::Debug for R {
25    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
26        f.debug_struct("PIF_ACCESS_MONITOR_2")
27            .field(
28                "pif_access_monitor_nonword_violate_intr",
29                &self.pif_access_monitor_nonword_violate_intr(),
30            )
31            .field(
32                "pif_access_monitor_nonword_violate_status_hsize",
33                &self.pif_access_monitor_nonword_violate_status_hsize(),
34            )
35            .finish()
36    }
37}
38#[doc = "register description\n\nYou can [`read`](crate::Reg::read) this register and get [`pif_access_monitor_2::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
39pub struct PIF_ACCESS_MONITOR_2_SPEC;
40impl crate::RegisterSpec for PIF_ACCESS_MONITOR_2_SPEC {
41    type Ux = u32;
42}
43#[doc = "`read()` method returns [`pif_access_monitor_2::R`](R) reader structure"]
44impl crate::Readable for PIF_ACCESS_MONITOR_2_SPEC {}
45#[doc = "`reset()` method sets PIF_ACCESS_MONITOR_2 to value 0"]
46impl crate::Resettable for PIF_ACCESS_MONITOR_2_SPEC {}