esp32c3/rtc_cntl/
sw_cpu_stall.rs1#[doc = "Register `SW_CPU_STALL` reader"]
2pub type R = crate::R<SW_CPU_STALL_SPEC>;
3#[doc = "Register `SW_CPU_STALL` writer"]
4pub type W = crate::W<SW_CPU_STALL_SPEC>;
5#[doc = "Field `SW_STALL_APPCPU_C1` reader - {reg_sw_stall_appcpu_c1\\[5:0\\]"]
6pub type SW_STALL_APPCPU_C1_R = crate::FieldReader;
7#[doc = "Field `SW_STALL_APPCPU_C1` writer - {reg_sw_stall_appcpu_c1\\[5:0\\]"]
8pub type SW_STALL_APPCPU_C1_W<'a, REG> = crate::FieldWriter<'a, REG, 6>;
9#[doc = "Field `SW_STALL_PROCPU_C1` reader - stall cpu by software"]
10pub type SW_STALL_PROCPU_C1_R = crate::FieldReader;
11#[doc = "Field `SW_STALL_PROCPU_C1` writer - stall cpu by software"]
12pub type SW_STALL_PROCPU_C1_W<'a, REG> = crate::FieldWriter<'a, REG, 6>;
13impl R {
14 #[doc = "Bits 20:25 - {reg_sw_stall_appcpu_c1\\[5:0\\]"]
15 #[inline(always)]
16 pub fn sw_stall_appcpu_c1(&self) -> SW_STALL_APPCPU_C1_R {
17 SW_STALL_APPCPU_C1_R::new(((self.bits >> 20) & 0x3f) as u8)
18 }
19 #[doc = "Bits 26:31 - stall cpu by software"]
20 #[inline(always)]
21 pub fn sw_stall_procpu_c1(&self) -> SW_STALL_PROCPU_C1_R {
22 SW_STALL_PROCPU_C1_R::new(((self.bits >> 26) & 0x3f) as u8)
23 }
24}
25#[cfg(feature = "impl-register-debug")]
26impl core::fmt::Debug for R {
27 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
28 f.debug_struct("SW_CPU_STALL")
29 .field("sw_stall_appcpu_c1", &self.sw_stall_appcpu_c1())
30 .field("sw_stall_procpu_c1", &self.sw_stall_procpu_c1())
31 .finish()
32 }
33}
34impl W {
35 #[doc = "Bits 20:25 - {reg_sw_stall_appcpu_c1\\[5:0\\]"]
36 #[inline(always)]
37 pub fn sw_stall_appcpu_c1(&mut self) -> SW_STALL_APPCPU_C1_W<SW_CPU_STALL_SPEC> {
38 SW_STALL_APPCPU_C1_W::new(self, 20)
39 }
40 #[doc = "Bits 26:31 - stall cpu by software"]
41 #[inline(always)]
42 pub fn sw_stall_procpu_c1(&mut self) -> SW_STALL_PROCPU_C1_W<SW_CPU_STALL_SPEC> {
43 SW_STALL_PROCPU_C1_W::new(self, 26)
44 }
45}
46#[doc = "rtc configure register\n\nYou can [`read`](crate::Reg::read) this register and get [`sw_cpu_stall::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`sw_cpu_stall::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
47pub struct SW_CPU_STALL_SPEC;
48impl crate::RegisterSpec for SW_CPU_STALL_SPEC {
49 type Ux = u32;
50}
51#[doc = "`read()` method returns [`sw_cpu_stall::R`](R) reader structure"]
52impl crate::Readable for SW_CPU_STALL_SPEC {}
53#[doc = "`write(|w| ..)` method takes [`sw_cpu_stall::W`](W) writer structure"]
54impl crate::Writable for SW_CPU_STALL_SPEC {
55 type Safety = crate::Unsafe;
56}
57#[doc = "`reset()` method sets SW_CPU_STALL to value 0"]
58impl crate::Resettable for SW_CPU_STALL_SPEC {}