esp32p4/assist_debug/
core_1_dram0_exception_monitor_3.rs

1#[doc = "Register `CORE_1_DRAM0_EXCEPTION_MONITOR_3` reader"]
2pub type R = crate::R<CORE_1_DRAM0_EXCEPTION_MONITOR_3_SPEC>;
3#[doc = "Field `CORE_1_DRAM0_RECORDING_WR_1` reader - reg_core_1_dram0_recording_wr_1"]
4pub type CORE_1_DRAM0_RECORDING_WR_1_R = crate::BitReader;
5#[doc = "Field `CORE_1_DRAM0_RECORDING_BYTEEN_1` reader - reg_core_1_dram0_recording_byteen_1"]
6pub type CORE_1_DRAM0_RECORDING_BYTEEN_1_R = crate::FieldReader<u16>;
7impl R {
8    #[doc = "Bit 0 - reg_core_1_dram0_recording_wr_1"]
9    #[inline(always)]
10    pub fn core_1_dram0_recording_wr_1(&self) -> CORE_1_DRAM0_RECORDING_WR_1_R {
11        CORE_1_DRAM0_RECORDING_WR_1_R::new((self.bits & 1) != 0)
12    }
13    #[doc = "Bits 1:16 - reg_core_1_dram0_recording_byteen_1"]
14    #[inline(always)]
15    pub fn core_1_dram0_recording_byteen_1(&self) -> CORE_1_DRAM0_RECORDING_BYTEEN_1_R {
16        CORE_1_DRAM0_RECORDING_BYTEEN_1_R::new(((self.bits >> 1) & 0xffff) as u16)
17    }
18}
19#[cfg(feature = "impl-register-debug")]
20impl core::fmt::Debug for R {
21    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
22        f.debug_struct("CORE_1_DRAM0_EXCEPTION_MONITOR_3")
23            .field(
24                "core_1_dram0_recording_wr_1",
25                &format_args!("{}", self.core_1_dram0_recording_wr_1().bit()),
26            )
27            .field(
28                "core_1_dram0_recording_byteen_1",
29                &format_args!("{}", self.core_1_dram0_recording_byteen_1().bits()),
30            )
31            .finish()
32    }
33}
34#[cfg(feature = "impl-register-debug")]
35impl core::fmt::Debug for crate::generic::Reg<CORE_1_DRAM0_EXCEPTION_MONITOR_3_SPEC> {
36    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
37        core::fmt::Debug::fmt(&self.read(), f)
38    }
39}
40#[doc = "exception monitor status register5\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`core_1_dram0_exception_monitor_3::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
41pub struct CORE_1_DRAM0_EXCEPTION_MONITOR_3_SPEC;
42impl crate::RegisterSpec for CORE_1_DRAM0_EXCEPTION_MONITOR_3_SPEC {
43    type Ux = u32;
44}
45#[doc = "`read()` method returns [`core_1_dram0_exception_monitor_3::R`](R) reader structure"]
46impl crate::Readable for CORE_1_DRAM0_EXCEPTION_MONITOR_3_SPEC {}
47#[doc = "`reset()` method sets CORE_1_DRAM0_EXCEPTION_MONITOR_3 to value 0"]
48impl crate::Resettable for CORE_1_DRAM0_EXCEPTION_MONITOR_3_SPEC {
49    const RESET_VALUE: u32 = 0;
50}