esp32c6_lp/pmu/
slp_wakeup_status0.rs1#[doc = "Register `SLP_WAKEUP_STATUS0` reader"]
2pub type R = crate::R<SLP_WAKEUP_STATUS0_SPEC>;
3#[doc = "Field `WAKEUP_CAUSE` reader - need_des"]
4pub type WAKEUP_CAUSE_R = crate::FieldReader<u32>;
5impl R {
6 #[doc = "Bits 0:31 - need_des"]
7 #[inline(always)]
8 pub fn wakeup_cause(&self) -> WAKEUP_CAUSE_R {
9 WAKEUP_CAUSE_R::new(self.bits)
10 }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15 f.debug_struct("SLP_WAKEUP_STATUS0")
16 .field("wakeup_cause", &self.wakeup_cause())
17 .finish()
18 }
19}
20#[doc = "need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`slp_wakeup_status0::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct SLP_WAKEUP_STATUS0_SPEC;
22impl crate::RegisterSpec for SLP_WAKEUP_STATUS0_SPEC {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`slp_wakeup_status0::R`](R) reader structure"]
26impl crate::Readable for SLP_WAKEUP_STATUS0_SPEC {}
27#[doc = "`reset()` method sets SLP_WAKEUP_STATUS0 to value 0"]
28impl crate::Resettable for SLP_WAKEUP_STATUS0_SPEC {
29 const RESET_VALUE: u32 = 0;
30}