1#[doc = "Register `APC_STA_0` reader"]
2pub struct R(crate::R<APC_STA_0_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<APC_STA_0_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<APC_STA_0_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<APC_STA_0_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `porz` reader - Please refer to the Technical Reference Manual for detail, NO SYNC, FW need to read it twice to ensure the value."]
17pub struct PORZ_R(crate::FieldReader<bool, bool>);
18impl PORZ_R {
19 #[inline(always)]
20 pub(crate) fn new(bits: bool) -> Self {
21 PORZ_R(crate::FieldReader::new(bits))
22 }
23}
24impl core::ops::Deref for PORZ_R {
25 type Target = crate::FieldReader<bool, bool>;
26 #[inline(always)]
27 fn deref(&self) -> &Self::Target {
28 &self.0
29 }
30}
31#[doc = "Field `digtestbus` reader - Please refer to the Technical Reference Manual for detail, NO SYNC, FW need to read it twice to ensure the value."]
32pub struct DIGTESTBUS_R(crate::FieldReader<bool, bool>);
33impl DIGTESTBUS_R {
34 #[inline(always)]
35 pub(crate) fn new(bits: bool) -> Self {
36 DIGTESTBUS_R(crate::FieldReader::new(bits))
37 }
38}
39impl core::ops::Deref for DIGTESTBUS_R {
40 type Target = crate::FieldReader<bool, bool>;
41 #[inline(always)]
42 fn deref(&self) -> &Self::Target {
43 &self.0
44 }
45}
46#[doc = "Field `testreq` reader - Please refer to the Technical Reference Manual for detail, NO SYNC, FW need to read it twice to ensure the value."]
47pub struct TESTREQ_R(crate::FieldReader<bool, bool>);
48impl TESTREQ_R {
49 #[inline(always)]
50 pub(crate) fn new(bits: bool) -> Self {
51 TESTREQ_R(crate::FieldReader::new(bits))
52 }
53}
54impl core::ops::Deref for TESTREQ_R {
55 type Target = crate::FieldReader<bool, bool>;
56 #[inline(always)]
57 fn deref(&self) -> &Self::Target {
58 &self.0
59 }
60}
61impl R {
62 #[doc = "Bit 2 - Please refer to the Technical Reference Manual for detail, NO SYNC, FW need to read it twice to ensure the value."]
63 #[inline(always)]
64 pub fn porz(&self) -> PORZ_R {
65 PORZ_R::new(((self.bits >> 2) & 0x01) != 0)
66 }
67 #[doc = "Bit 3 - Please refer to the Technical Reference Manual for detail, NO SYNC, FW need to read it twice to ensure the value."]
68 #[inline(always)]
69 pub fn digtestbus(&self) -> DIGTESTBUS_R {
70 DIGTESTBUS_R::new(((self.bits >> 3) & 0x01) != 0)
71 }
72 #[doc = "Bit 4 - Please refer to the Technical Reference Manual for detail, NO SYNC, FW need to read it twice to ensure the value."]
73 #[inline(always)]
74 pub fn testreq(&self) -> TESTREQ_R {
75 TESTREQ_R::new(((self.bits >> 4) & 0x01) != 0)
76 }
77}
78#[doc = "APC status register 0\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 [apc_sta_0](index.html) module"]
79pub struct APC_STA_0_SPEC;
80impl crate::RegisterSpec for APC_STA_0_SPEC {
81 type Ux = u32;
82}
83#[doc = "`read()` method returns [apc_sta_0::R](R) reader structure"]
84impl crate::Readable for APC_STA_0_SPEC {
85 type Reader = R;
86}
87#[doc = "`reset()` method sets APC_STA_0 to value 0"]
88impl crate::Resettable for APC_STA_0_SPEC {
89 #[inline(always)]
90 fn reset_value() -> Self::Ux {
91 0
92 }
93}