1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108
#[doc = "Register `RSTCTL_PSSRESET_STAT` reader"] pub struct R(crate::R<RSTCTL_PSSRESET_STAT_SPEC>); impl core::ops::Deref for R { type Target = crate::R<RSTCTL_PSSRESET_STAT_SPEC>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } impl core::convert::From<crate::R<RSTCTL_PSSRESET_STAT_SPEC>> for R { fn from(reader: crate::R<RSTCTL_PSSRESET_STAT_SPEC>) -> Self { R(reader) } } #[doc = "Field `SVSMH` reader - Indicates if POR was caused by an SVSMH trip condition int the PSS"] pub struct SVSMH_R(crate::FieldReader<bool, bool>); impl SVSMH_R { pub(crate) fn new(bits: bool) -> Self { SVSMH_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for SVSMH_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `BGREF` reader - Indicates if POR was caused by a BGREF not okay condition in the PSS"] pub struct BGREF_R(crate::FieldReader<bool, bool>); impl BGREF_R { pub(crate) fn new(bits: bool) -> Self { BGREF_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for BGREF_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `VCCDET` reader - Indicates if POR was caused by a VCCDET trip condition in the PSS"] pub struct VCCDET_R(crate::FieldReader<bool, bool>); impl VCCDET_R { pub(crate) fn new(bits: bool) -> Self { VCCDET_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for VCCDET_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } #[doc = "Field `SVSL` reader - Indicates if POR was caused by an SVSL trip condition in the PSS"] pub struct SVSL_R(crate::FieldReader<bool, bool>); impl SVSL_R { pub(crate) fn new(bits: bool) -> Self { SVSL_R(crate::FieldReader::new(bits)) } } impl core::ops::Deref for SVSL_R { type Target = crate::FieldReader<bool, bool>; #[inline(always)] fn deref(&self) -> &Self::Target { &self.0 } } impl R { #[doc = "Bit 1 - Indicates if POR was caused by an SVSMH trip condition int the PSS"] #[inline(always)] pub fn svsmh(&self) -> SVSMH_R { SVSMH_R::new(((self.bits >> 1) & 0x01) != 0) } #[doc = "Bit 2 - Indicates if POR was caused by a BGREF not okay condition in the PSS"] #[inline(always)] pub fn bgref(&self) -> BGREF_R { BGREF_R::new(((self.bits >> 2) & 0x01) != 0) } #[doc = "Bit 3 - Indicates if POR was caused by a VCCDET trip condition in the PSS"] #[inline(always)] pub fn vccdet(&self) -> VCCDET_R { VCCDET_R::new(((self.bits >> 3) & 0x01) != 0) } #[doc = "Bit 0 - Indicates if POR was caused by an SVSL trip condition in the PSS"] #[inline(always)] pub fn svsl(&self) -> SVSL_R { SVSL_R::new((self.bits & 0x01) != 0) } } #[doc = "PSS Reset Status Register\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 [rstctl_pssreset_stat](index.html) module"] pub struct RSTCTL_PSSRESET_STAT_SPEC; impl crate::RegisterSpec for RSTCTL_PSSRESET_STAT_SPEC { type Ux = u32; } #[doc = "`read()` method returns [rstctl_pssreset_stat::R](R) reader structure"] impl crate::Readable for RSTCTL_PSSRESET_STAT_SPEC { type Reader = R; } #[doc = "`reset()` method sets RSTCTL_PSSRESET_STAT to value 0x0f"] impl crate::Resettable for RSTCTL_PSSRESET_STAT_SPEC { #[inline(always)] fn reset_value() -> Self::Ux { 0x0f } }