esp32c3/assist_debug/
core_0_debug_mode.rs

1#[doc = "Register `CORE_0_DEBUG_MODE` reader"]
2pub type R = crate::R<CORE_0_DEBUG_MODE_SPEC>;
3#[doc = "Field `CORE_0_DEBUG_MODE` reader - reg_core_0_debug_mode"]
4pub type CORE_0_DEBUG_MODE_R = crate::BitReader;
5#[doc = "Field `CORE_0_DEBUG_MODULE_ACTIVE` reader - reg_core_0_debug_module_active"]
6pub type CORE_0_DEBUG_MODULE_ACTIVE_R = crate::BitReader;
7impl R {
8    #[doc = "Bit 0 - reg_core_0_debug_mode"]
9    #[inline(always)]
10    pub fn core_0_debug_mode(&self) -> CORE_0_DEBUG_MODE_R {
11        CORE_0_DEBUG_MODE_R::new((self.bits & 1) != 0)
12    }
13    #[doc = "Bit 1 - reg_core_0_debug_module_active"]
14    #[inline(always)]
15    pub fn core_0_debug_module_active(&self) -> CORE_0_DEBUG_MODULE_ACTIVE_R {
16        CORE_0_DEBUG_MODULE_ACTIVE_R::new(((self.bits >> 1) & 1) != 0)
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_0_DEBUG_MODE")
23            .field("core_0_debug_mode", &self.core_0_debug_mode())
24            .field(
25                "core_0_debug_module_active",
26                &self.core_0_debug_module_active(),
27            )
28            .finish()
29    }
30}
31#[doc = "ASSIST_DEBUG_CORE_0_DEBUG_MODE\n\nYou can [`read`](crate::Reg::read) this register and get [`core_0_debug_mode::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct CORE_0_DEBUG_MODE_SPEC;
33impl crate::RegisterSpec for CORE_0_DEBUG_MODE_SPEC {
34    type Ux = u32;
35}
36#[doc = "`read()` method returns [`core_0_debug_mode::R`](R) reader structure"]
37impl crate::Readable for CORE_0_DEBUG_MODE_SPEC {}
38#[doc = "`reset()` method sets CORE_0_DEBUG_MODE to value 0"]
39impl crate::Resettable for CORE_0_DEBUG_MODE_SPEC {
40    const RESET_VALUE: u32 = 0;
41}