esp32p4/assist_debug/
core_0_iram0_exception_monitor_0.rs1#[doc = "Register `CORE_0_IRAM0_EXCEPTION_MONITOR_0` reader"]
2pub type R = crate::R<CORE_0_IRAM0_EXCEPTION_MONITOR_0_SPEC>;
3#[doc = "Field `CORE_0_IRAM0_RECORDING_ADDR_0` reader - reg_core_0_iram0_recording_addr_0"]
4pub type CORE_0_IRAM0_RECORDING_ADDR_0_R = crate::FieldReader<u32>;
5#[doc = "Field `CORE_0_IRAM0_RECORDING_WR_0` reader - reg_core_0_iram0_recording_wr_0"]
6pub type CORE_0_IRAM0_RECORDING_WR_0_R = crate::BitReader;
7#[doc = "Field `CORE_0_IRAM0_RECORDING_LOADSTORE_0` reader - reg_core_0_iram0_recording_loadstore_0"]
8pub type CORE_0_IRAM0_RECORDING_LOADSTORE_0_R = crate::BitReader;
9impl R {
10 #[doc = "Bits 0:23 - reg_core_0_iram0_recording_addr_0"]
11 #[inline(always)]
12 pub fn core_0_iram0_recording_addr_0(&self) -> CORE_0_IRAM0_RECORDING_ADDR_0_R {
13 CORE_0_IRAM0_RECORDING_ADDR_0_R::new(self.bits & 0x00ff_ffff)
14 }
15 #[doc = "Bit 24 - reg_core_0_iram0_recording_wr_0"]
16 #[inline(always)]
17 pub fn core_0_iram0_recording_wr_0(&self) -> CORE_0_IRAM0_RECORDING_WR_0_R {
18 CORE_0_IRAM0_RECORDING_WR_0_R::new(((self.bits >> 24) & 1) != 0)
19 }
20 #[doc = "Bit 25 - reg_core_0_iram0_recording_loadstore_0"]
21 #[inline(always)]
22 pub fn core_0_iram0_recording_loadstore_0(&self) -> CORE_0_IRAM0_RECORDING_LOADSTORE_0_R {
23 CORE_0_IRAM0_RECORDING_LOADSTORE_0_R::new(((self.bits >> 25) & 1) != 0)
24 }
25}
26#[cfg(feature = "impl-register-debug")]
27impl core::fmt::Debug for R {
28 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
29 f.debug_struct("CORE_0_IRAM0_EXCEPTION_MONITOR_0")
30 .field(
31 "core_0_iram0_recording_addr_0",
32 &format_args!("{}", self.core_0_iram0_recording_addr_0().bits()),
33 )
34 .field(
35 "core_0_iram0_recording_wr_0",
36 &format_args!("{}", self.core_0_iram0_recording_wr_0().bit()),
37 )
38 .field(
39 "core_0_iram0_recording_loadstore_0",
40 &format_args!("{}", self.core_0_iram0_recording_loadstore_0().bit()),
41 )
42 .finish()
43 }
44}
45#[cfg(feature = "impl-register-debug")]
46impl core::fmt::Debug for crate::generic::Reg<CORE_0_IRAM0_EXCEPTION_MONITOR_0_SPEC> {
47 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
48 core::fmt::Debug::fmt(&self.read(), f)
49 }
50}
51#[doc = "exception monitor status register0\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`core_0_iram0_exception_monitor_0::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
52pub struct CORE_0_IRAM0_EXCEPTION_MONITOR_0_SPEC;
53impl crate::RegisterSpec for CORE_0_IRAM0_EXCEPTION_MONITOR_0_SPEC {
54 type Ux = u32;
55}
56#[doc = "`read()` method returns [`core_0_iram0_exception_monitor_0::R`](R) reader structure"]
57impl crate::Readable for CORE_0_IRAM0_EXCEPTION_MONITOR_0_SPEC {}
58#[doc = "`reset()` method sets CORE_0_IRAM0_EXCEPTION_MONITOR_0 to value 0"]
59impl crate::Resettable for CORE_0_IRAM0_EXCEPTION_MONITOR_0_SPEC {
60 const RESET_VALUE: u32 = 0;
61}