bl602_pac/glb/
mbist_stat.rs1#[doc = "Register `MBIST_STAT` reader"]
2pub struct R(crate::R<MBIST_STAT_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<MBIST_STAT_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<MBIST_STAT_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<MBIST_STAT_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `irom_mbist_done` reader - "]
17pub type IROM_MBIST_DONE_R = crate::BitReader<bool>;
18#[doc = "Field `hsram_mbist_done` reader - "]
19pub type HSRAM_MBIST_DONE_R = crate::BitReader<bool>;
20#[doc = "Field `tag_mbist_done` reader - "]
21pub type TAG_MBIST_DONE_R = crate::BitReader<bool>;
22#[doc = "Field `ocram_mbist_done` reader - "]
23pub type OCRAM_MBIST_DONE_R = crate::BitReader<bool>;
24#[doc = "Field `wifi_mbist_done` reader - "]
25pub type WIFI_MBIST_DONE_R = crate::BitReader<bool>;
26#[doc = "Field `irom_mbist_fail` reader - "]
27pub type IROM_MBIST_FAIL_R = crate::BitReader<bool>;
28#[doc = "Field `hsram_mbist_fail` reader - "]
29pub type HSRAM_MBIST_FAIL_R = crate::BitReader<bool>;
30#[doc = "Field `tag_mbist_fail` reader - "]
31pub type TAG_MBIST_FAIL_R = crate::BitReader<bool>;
32#[doc = "Field `ocram_mbist_fail` reader - "]
33pub type OCRAM_MBIST_FAIL_R = crate::BitReader<bool>;
34#[doc = "Field `wifi_mbist_fail` reader - "]
35pub type WIFI_MBIST_FAIL_R = crate::BitReader<bool>;
36impl R {
37 #[doc = "Bit 0"]
38 #[inline(always)]
39 pub fn irom_mbist_done(&self) -> IROM_MBIST_DONE_R {
40 IROM_MBIST_DONE_R::new((self.bits & 1) != 0)
41 }
42 #[doc = "Bit 1"]
43 #[inline(always)]
44 pub fn hsram_mbist_done(&self) -> HSRAM_MBIST_DONE_R {
45 HSRAM_MBIST_DONE_R::new(((self.bits >> 1) & 1) != 0)
46 }
47 #[doc = "Bit 2"]
48 #[inline(always)]
49 pub fn tag_mbist_done(&self) -> TAG_MBIST_DONE_R {
50 TAG_MBIST_DONE_R::new(((self.bits >> 2) & 1) != 0)
51 }
52 #[doc = "Bit 3"]
53 #[inline(always)]
54 pub fn ocram_mbist_done(&self) -> OCRAM_MBIST_DONE_R {
55 OCRAM_MBIST_DONE_R::new(((self.bits >> 3) & 1) != 0)
56 }
57 #[doc = "Bit 4"]
58 #[inline(always)]
59 pub fn wifi_mbist_done(&self) -> WIFI_MBIST_DONE_R {
60 WIFI_MBIST_DONE_R::new(((self.bits >> 4) & 1) != 0)
61 }
62 #[doc = "Bit 16"]
63 #[inline(always)]
64 pub fn irom_mbist_fail(&self) -> IROM_MBIST_FAIL_R {
65 IROM_MBIST_FAIL_R::new(((self.bits >> 16) & 1) != 0)
66 }
67 #[doc = "Bit 17"]
68 #[inline(always)]
69 pub fn hsram_mbist_fail(&self) -> HSRAM_MBIST_FAIL_R {
70 HSRAM_MBIST_FAIL_R::new(((self.bits >> 17) & 1) != 0)
71 }
72 #[doc = "Bit 18"]
73 #[inline(always)]
74 pub fn tag_mbist_fail(&self) -> TAG_MBIST_FAIL_R {
75 TAG_MBIST_FAIL_R::new(((self.bits >> 18) & 1) != 0)
76 }
77 #[doc = "Bit 19"]
78 #[inline(always)]
79 pub fn ocram_mbist_fail(&self) -> OCRAM_MBIST_FAIL_R {
80 OCRAM_MBIST_FAIL_R::new(((self.bits >> 19) & 1) != 0)
81 }
82 #[doc = "Bit 20"]
83 #[inline(always)]
84 pub fn wifi_mbist_fail(&self) -> WIFI_MBIST_FAIL_R {
85 WIFI_MBIST_FAIL_R::new(((self.bits >> 20) & 1) != 0)
86 }
87}
88#[doc = "MBIST_STAT.\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [mbist_stat](index.html) module"]
89pub struct MBIST_STAT_SPEC;
90impl crate::RegisterSpec for MBIST_STAT_SPEC {
91 type Ux = u32;
92}
93#[doc = "`read()` method returns [mbist_stat::R](R) reader structure"]
94impl crate::Readable for MBIST_STAT_SPEC {
95 type Reader = R;
96}
97#[doc = "`reset()` method sets MBIST_STAT to value 0"]
98impl crate::Resettable for MBIST_STAT_SPEC {
99 const RESET_VALUE: Self::Ux = 0;
100}