esp32s3/wcl/
core_1_statustable6.rs1#[doc = "Register `Core_1_STATUSTABLE6` reader"]
2pub type R = crate::R<CORE_1_STATUSTABLE6_SPEC>;
3#[doc = "Register `Core_1_STATUSTABLE6` writer"]
4pub type W = crate::W<CORE_1_STATUSTABLE6_SPEC>;
5#[doc = "Field `CORE_1_FROM_WORLD_6` reader - This bit is used to confirm world before enter entry 6"]
6pub type CORE_1_FROM_WORLD_6_R = crate::BitReader;
7#[doc = "Field `CORE_1_FROM_WORLD_6` writer - This bit is used to confirm world before enter entry 6"]
8pub type CORE_1_FROM_WORLD_6_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `CORE_1_FROM_ENTRY_6` reader - This filed is used to confirm in which entry before enter entry 6"]
10pub type CORE_1_FROM_ENTRY_6_R = crate::FieldReader;
11#[doc = "Field `CORE_1_FROM_ENTRY_6` writer - This filed is used to confirm in which entry before enter entry 6"]
12pub type CORE_1_FROM_ENTRY_6_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
13#[doc = "Field `CORE_1_CURRENT_6` reader - This bit is used to confirm whether the current state is in entry 6"]
14pub type CORE_1_CURRENT_6_R = crate::BitReader;
15#[doc = "Field `CORE_1_CURRENT_6` writer - This bit is used to confirm whether the current state is in entry 6"]
16pub type CORE_1_CURRENT_6_W<'a, REG> = crate::BitWriter<'a, REG>;
17impl R {
18 #[doc = "Bit 0 - This bit is used to confirm world before enter entry 6"]
19 #[inline(always)]
20 pub fn core_1_from_world_6(&self) -> CORE_1_FROM_WORLD_6_R {
21 CORE_1_FROM_WORLD_6_R::new((self.bits & 1) != 0)
22 }
23 #[doc = "Bits 1:4 - This filed is used to confirm in which entry before enter entry 6"]
24 #[inline(always)]
25 pub fn core_1_from_entry_6(&self) -> CORE_1_FROM_ENTRY_6_R {
26 CORE_1_FROM_ENTRY_6_R::new(((self.bits >> 1) & 0x0f) as u8)
27 }
28 #[doc = "Bit 5 - This bit is used to confirm whether the current state is in entry 6"]
29 #[inline(always)]
30 pub fn core_1_current_6(&self) -> CORE_1_CURRENT_6_R {
31 CORE_1_CURRENT_6_R::new(((self.bits >> 5) & 1) != 0)
32 }
33}
34#[cfg(feature = "impl-register-debug")]
35impl core::fmt::Debug for R {
36 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
37 f.debug_struct("Core_1_STATUSTABLE6")
38 .field("core_1_from_world_6", &self.core_1_from_world_6())
39 .field("core_1_from_entry_6", &self.core_1_from_entry_6())
40 .field("core_1_current_6", &self.core_1_current_6())
41 .finish()
42 }
43}
44impl W {
45 #[doc = "Bit 0 - This bit is used to confirm world before enter entry 6"]
46 #[inline(always)]
47 pub fn core_1_from_world_6(&mut self) -> CORE_1_FROM_WORLD_6_W<CORE_1_STATUSTABLE6_SPEC> {
48 CORE_1_FROM_WORLD_6_W::new(self, 0)
49 }
50 #[doc = "Bits 1:4 - This filed is used to confirm in which entry before enter entry 6"]
51 #[inline(always)]
52 pub fn core_1_from_entry_6(&mut self) -> CORE_1_FROM_ENTRY_6_W<CORE_1_STATUSTABLE6_SPEC> {
53 CORE_1_FROM_ENTRY_6_W::new(self, 1)
54 }
55 #[doc = "Bit 5 - This bit is used to confirm whether the current state is in entry 6"]
56 #[inline(always)]
57 pub fn core_1_current_6(&mut self) -> CORE_1_CURRENT_6_W<CORE_1_STATUSTABLE6_SPEC> {
58 CORE_1_CURRENT_6_W::new(self, 5)
59 }
60}
61#[doc = "Status register of world switch of entry 6\n\nYou can [`read`](crate::Reg::read) this register and get [`core_1_statustable6::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`core_1_statustable6::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
62pub struct CORE_1_STATUSTABLE6_SPEC;
63impl crate::RegisterSpec for CORE_1_STATUSTABLE6_SPEC {
64 type Ux = u32;
65}
66#[doc = "`read()` method returns [`core_1_statustable6::R`](R) reader structure"]
67impl crate::Readable for CORE_1_STATUSTABLE6_SPEC {}
68#[doc = "`write(|w| ..)` method takes [`core_1_statustable6::W`](W) writer structure"]
69impl crate::Writable for CORE_1_STATUSTABLE6_SPEC {
70 type Safety = crate::Unsafe;
71 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
72 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
73}
74#[doc = "`reset()` method sets Core_1_STATUSTABLE6 to value 0"]
75impl crate::Resettable for CORE_1_STATUSTABLE6_SPEC {
76 const RESET_VALUE: u32 = 0;
77}