esp32c2/sensitive/
pif_access_monitor_1.rs1#[doc = "Register `PIF_ACCESS_MONITOR_1` reader"]
2pub type R = crate::R<PIF_ACCESS_MONITOR_1_SPEC>;
3#[doc = "Register `PIF_ACCESS_MONITOR_1` writer"]
4pub type W = crate::W<PIF_ACCESS_MONITOR_1_SPEC>;
5#[doc = "Field `PIF_ACCESS_MONITOR_NONWORD_VIOLATE_CLR` reader - Need add description"]
6pub type PIF_ACCESS_MONITOR_NONWORD_VIOLATE_CLR_R = crate::BitReader;
7#[doc = "Field `PIF_ACCESS_MONITOR_NONWORD_VIOLATE_CLR` writer - Need add description"]
8pub type PIF_ACCESS_MONITOR_NONWORD_VIOLATE_CLR_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `PIF_ACCESS_MONITOR_NONWORD_VIOLATE_EN` reader - Need add description"]
10pub type PIF_ACCESS_MONITOR_NONWORD_VIOLATE_EN_R = crate::BitReader;
11#[doc = "Field `PIF_ACCESS_MONITOR_NONWORD_VIOLATE_EN` writer - Need add description"]
12pub type PIF_ACCESS_MONITOR_NONWORD_VIOLATE_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
13impl R {
14 #[doc = "Bit 0 - Need add description"]
15 #[inline(always)]
16 pub fn pif_access_monitor_nonword_violate_clr(
17 &self,
18 ) -> PIF_ACCESS_MONITOR_NONWORD_VIOLATE_CLR_R {
19 PIF_ACCESS_MONITOR_NONWORD_VIOLATE_CLR_R::new((self.bits & 1) != 0)
20 }
21 #[doc = "Bit 1 - Need add description"]
22 #[inline(always)]
23 pub fn pif_access_monitor_nonword_violate_en(&self) -> PIF_ACCESS_MONITOR_NONWORD_VIOLATE_EN_R {
24 PIF_ACCESS_MONITOR_NONWORD_VIOLATE_EN_R::new(((self.bits >> 1) & 1) != 0)
25 }
26}
27#[cfg(feature = "impl-register-debug")]
28impl core::fmt::Debug for R {
29 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
30 f.debug_struct("PIF_ACCESS_MONITOR_1")
31 .field(
32 "pif_access_monitor_nonword_violate_clr",
33 &self.pif_access_monitor_nonword_violate_clr(),
34 )
35 .field(
36 "pif_access_monitor_nonword_violate_en",
37 &self.pif_access_monitor_nonword_violate_en(),
38 )
39 .finish()
40 }
41}
42impl W {
43 #[doc = "Bit 0 - Need add description"]
44 #[inline(always)]
45 pub fn pif_access_monitor_nonword_violate_clr(
46 &mut self,
47 ) -> PIF_ACCESS_MONITOR_NONWORD_VIOLATE_CLR_W<PIF_ACCESS_MONITOR_1_SPEC> {
48 PIF_ACCESS_MONITOR_NONWORD_VIOLATE_CLR_W::new(self, 0)
49 }
50 #[doc = "Bit 1 - Need add description"]
51 #[inline(always)]
52 pub fn pif_access_monitor_nonword_violate_en(
53 &mut self,
54 ) -> PIF_ACCESS_MONITOR_NONWORD_VIOLATE_EN_W<PIF_ACCESS_MONITOR_1_SPEC> {
55 PIF_ACCESS_MONITOR_NONWORD_VIOLATE_EN_W::new(self, 1)
56 }
57}
58#[doc = "register description\n\nYou can [`read`](crate::Reg::read) this register and get [`pif_access_monitor_1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pif_access_monitor_1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
59pub struct PIF_ACCESS_MONITOR_1_SPEC;
60impl crate::RegisterSpec for PIF_ACCESS_MONITOR_1_SPEC {
61 type Ux = u32;
62}
63#[doc = "`read()` method returns [`pif_access_monitor_1::R`](R) reader structure"]
64impl crate::Readable for PIF_ACCESS_MONITOR_1_SPEC {}
65#[doc = "`write(|w| ..)` method takes [`pif_access_monitor_1::W`](W) writer structure"]
66impl crate::Writable for PIF_ACCESS_MONITOR_1_SPEC {
67 type Safety = crate::Unsafe;
68 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
69 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
70}
71#[doc = "`reset()` method sets PIF_ACCESS_MONITOR_1 to value 0x03"]
72impl crate::Resettable for PIF_ACCESS_MONITOR_1_SPEC {
73 const RESET_VALUE: u32 = 0x03;
74}