1#[doc = "Register `Core_1_STATUSTABLE5` reader"]
2pub type R = crate::R<CORE_1_STATUSTABLE5_SPEC>;
3#[doc = "Register `Core_1_STATUSTABLE5` writer"]
4pub type W = crate::W<CORE_1_STATUSTABLE5_SPEC>;
5#[doc = "Field `CORE_1_FROM_WORLD_5` reader - This bit is used to confirm world before enter entry 5"]
6pub type CORE_1_FROM_WORLD_5_R = crate::BitReader;
7#[doc = "Field `CORE_1_FROM_WORLD_5` writer - This bit is used to confirm world before enter entry 5"]
8pub type CORE_1_FROM_WORLD_5_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `CORE_1_FROM_ENTRY_5` reader - This filed is used to confirm in which entry before enter entry 5"]
10pub type CORE_1_FROM_ENTRY_5_R = crate::FieldReader;
11#[doc = "Field `CORE_1_FROM_ENTRY_5` writer - This filed is used to confirm in which entry before enter entry 5"]
12pub type CORE_1_FROM_ENTRY_5_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
13#[doc = "Field `CORE_1_CURRENT_5` reader - This bit is used to confirm whether the current state is in entry 5"]
14pub type CORE_1_CURRENT_5_R = crate::BitReader;
15#[doc = "Field `CORE_1_CURRENT_5` writer - This bit is used to confirm whether the current state is in entry 5"]
16pub type CORE_1_CURRENT_5_W<'a, REG> = crate::BitWriter<'a, REG>;
17impl R {
18#[doc = "Bit 0 - This bit is used to confirm world before enter entry 5"]
19 #[inline(always)]
20pub fn core_1_from_world_5(&self) -> CORE_1_FROM_WORLD_5_R {
21 CORE_1_FROM_WORLD_5_R::new((self.bits & 1) != 0)
22 }
23#[doc = "Bits 1:4 - This filed is used to confirm in which entry before enter entry 5"]
24 #[inline(always)]
25pub fn core_1_from_entry_5(&self) -> CORE_1_FROM_ENTRY_5_R {
26 CORE_1_FROM_ENTRY_5_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 5"]
29 #[inline(always)]
30pub fn core_1_current_5(&self) -> CORE_1_CURRENT_5_R {
31 CORE_1_CURRENT_5_R::new(((self.bits >> 5) & 1) != 0)
32 }
33}
34#[cfg(feature = "impl-register-debug")]
35impl core::fmt::Debug for R {
36fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
37 f.debug_struct("Core_1_STATUSTABLE5")
38 .field("core_1_from_world_5", &self.core_1_from_world_5())
39 .field("core_1_from_entry_5", &self.core_1_from_entry_5())
40 .field("core_1_current_5", &self.core_1_current_5())
41 .finish()
42 }
43}
44impl W {
45#[doc = "Bit 0 - This bit is used to confirm world before enter entry 5"]
46 #[inline(always)]
47pub fn core_1_from_world_5(&mut self) -> CORE_1_FROM_WORLD_5_W<CORE_1_STATUSTABLE5_SPEC> {
48 CORE_1_FROM_WORLD_5_W::new(self, 0)
49 }
50#[doc = "Bits 1:4 - This filed is used to confirm in which entry before enter entry 5"]
51 #[inline(always)]
52pub fn core_1_from_entry_5(&mut self) -> CORE_1_FROM_ENTRY_5_W<CORE_1_STATUSTABLE5_SPEC> {
53 CORE_1_FROM_ENTRY_5_W::new(self, 1)
54 }
55#[doc = "Bit 5 - This bit is used to confirm whether the current state is in entry 5"]
56 #[inline(always)]
57pub fn core_1_current_5(&mut self) -> CORE_1_CURRENT_5_W<CORE_1_STATUSTABLE5_SPEC> {
58 CORE_1_CURRENT_5_W::new(self, 5)
59 }
60}
61#[doc = "Status register of world switch of entry 5\n\nYou can [`read`](crate::Reg::read) this register and get [`core_1_statustable5::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_statustable5::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_STATUSTABLE5_SPEC;
63impl crate::RegisterSpec for CORE_1_STATUSTABLE5_SPEC {
64type Ux = u32;
65}
66#[doc = "`read()` method returns [`core_1_statustable5::R`](R) reader structure"]
67impl crate::Readable for CORE_1_STATUSTABLE5_SPEC {}
68#[doc = "`write(|w| ..)` method takes [`core_1_statustable5::W`](W) writer structure"]
69impl crate::Writable for CORE_1_STATUSTABLE5_SPEC {
70type Safety = crate::Unsafe;
71const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
72const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
73}
74#[doc = "`reset()` method sets Core_1_STATUSTABLE5 to value 0"]
75impl crate::Resettable for CORE_1_STATUSTABLE5_SPEC {
76const RESET_VALUE: u32 = 0;
77}