esp32c2/assist_debug/
core_0_lastpc_before_exception.rs

1#[doc = "Register `CORE_0_LASTPC_BEFORE_EXCEPTION` reader"]
2pub type R = crate::R<CORE_0_LASTPC_BEFORE_EXCEPTION_SPEC>;
3#[doc = "Field `CORE_0_LASTPC_BEFORE_EXC` reader - cpu's lastpc before exception"]
4pub type CORE_0_LASTPC_BEFORE_EXC_R = crate::FieldReader<u32>;
5impl R {
6    #[doc = "Bits 0:31 - cpu's lastpc before exception"]
7    #[inline(always)]
8    pub fn core_0_lastpc_before_exc(&self) -> CORE_0_LASTPC_BEFORE_EXC_R {
9        CORE_0_LASTPC_BEFORE_EXC_R::new(self.bits)
10    }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15        f.debug_struct("CORE_0_LASTPC_BEFORE_EXCEPTION")
16            .field("core_0_lastpc_before_exc", &self.core_0_lastpc_before_exc())
17            .finish()
18    }
19}
20#[doc = "cpu status register\n\nYou can [`read`](crate::Reg::read) this register and get [`core_0_lastpc_before_exception::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct CORE_0_LASTPC_BEFORE_EXCEPTION_SPEC;
22impl crate::RegisterSpec for CORE_0_LASTPC_BEFORE_EXCEPTION_SPEC {
23    type Ux = u32;
24}
25#[doc = "`read()` method returns [`core_0_lastpc_before_exception::R`](R) reader structure"]
26impl crate::Readable for CORE_0_LASTPC_BEFORE_EXCEPTION_SPEC {}
27#[doc = "`reset()` method sets CORE_0_LASTPC_BEFORE_EXCEPTION to value 0"]
28impl crate::Resettable for CORE_0_LASTPC_BEFORE_EXCEPTION_SPEC {
29    const RESET_VALUE: u32 = 0;
30}