esp32c3/assist_debug/
core_0_iram0_exception_monitor_1.rs

1#[doc = "Register `CORE_0_IRAM0_EXCEPTION_MONITOR_1` reader"]
2pub type R = crate::R<CORE_0_IRAM0_EXCEPTION_MONITOR_1_SPEC>;
3#[doc = "Field `CORE_0_IRAM0_RECORDING_ADDR_1` reader - reg_core_0_iram0_recording_addr_1"]
4pub type CORE_0_IRAM0_RECORDING_ADDR_1_R = crate::FieldReader<u32>;
5#[doc = "Field `CORE_0_IRAM0_RECORDING_WR_1` reader - reg_core_0_iram0_recording_wr_1"]
6pub type CORE_0_IRAM0_RECORDING_WR_1_R = crate::BitReader;
7#[doc = "Field `CORE_0_IRAM0_RECORDING_LOADSTORE_1` reader - reg_core_0_iram0_recording_loadstore_1"]
8pub type CORE_0_IRAM0_RECORDING_LOADSTORE_1_R = crate::BitReader;
9impl R {
10    #[doc = "Bits 0:23 - reg_core_0_iram0_recording_addr_1"]
11    #[inline(always)]
12    pub fn core_0_iram0_recording_addr_1(&self) -> CORE_0_IRAM0_RECORDING_ADDR_1_R {
13        CORE_0_IRAM0_RECORDING_ADDR_1_R::new(self.bits & 0x00ff_ffff)
14    }
15    #[doc = "Bit 24 - reg_core_0_iram0_recording_wr_1"]
16    #[inline(always)]
17    pub fn core_0_iram0_recording_wr_1(&self) -> CORE_0_IRAM0_RECORDING_WR_1_R {
18        CORE_0_IRAM0_RECORDING_WR_1_R::new(((self.bits >> 24) & 1) != 0)
19    }
20    #[doc = "Bit 25 - reg_core_0_iram0_recording_loadstore_1"]
21    #[inline(always)]
22    pub fn core_0_iram0_recording_loadstore_1(&self) -> CORE_0_IRAM0_RECORDING_LOADSTORE_1_R {
23        CORE_0_IRAM0_RECORDING_LOADSTORE_1_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_1")
30            .field(
31                "core_0_iram0_recording_addr_1",
32                &self.core_0_iram0_recording_addr_1(),
33            )
34            .field(
35                "core_0_iram0_recording_wr_1",
36                &self.core_0_iram0_recording_wr_1(),
37            )
38            .field(
39                "core_0_iram0_recording_loadstore_1",
40                &self.core_0_iram0_recording_loadstore_1(),
41            )
42            .finish()
43    }
44}
45#[doc = "ASSIST_DEBUG_CORE_0_IRAM0_EXCEPTION_MONITOR_1_REG\n\nYou can [`read`](crate::Reg::read) this register and get [`core_0_iram0_exception_monitor_1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
46pub struct CORE_0_IRAM0_EXCEPTION_MONITOR_1_SPEC;
47impl crate::RegisterSpec for CORE_0_IRAM0_EXCEPTION_MONITOR_1_SPEC {
48    type Ux = u32;
49}
50#[doc = "`read()` method returns [`core_0_iram0_exception_monitor_1::R`](R) reader structure"]
51impl crate::Readable for CORE_0_IRAM0_EXCEPTION_MONITOR_1_SPEC {}
52#[doc = "`reset()` method sets CORE_0_IRAM0_EXCEPTION_MONITOR_1 to value 0"]
53impl crate::Resettable for CORE_0_IRAM0_EXCEPTION_MONITOR_1_SPEC {
54    const RESET_VALUE: u32 = 0;
55}