esp32/rtc_cntl/
int_raw.rs1#[doc = "Register `INT_RAW` reader"]
2pub type R = crate::R<INT_RAW_SPEC>;
3#[doc = "Field `SLP_WAKEUP` reader - sleep wakeup interrupt raw"]
4pub type SLP_WAKEUP_R = crate::BitReader;
5#[doc = "Field `SLP_REJECT` reader - sleep reject interrupt raw"]
6pub type SLP_REJECT_R = crate::BitReader;
7#[doc = "Field `SDIO_IDLE` reader - SDIO idle interrupt raw"]
8pub type SDIO_IDLE_R = crate::BitReader;
9#[doc = "Field `WDT` reader - RTC WDT interrupt raw"]
10pub type WDT_R = crate::BitReader;
11#[doc = "Field `TIME_VALID` reader - RTC time valid interrupt raw"]
12pub type TIME_VALID_R = crate::BitReader;
13#[doc = "Field `ULP_CP` reader - ULP-coprocessor interrupt raw"]
14pub type ULP_CP_R = crate::BitReader;
15#[doc = "Field `TOUCH` reader - touch interrupt raw"]
16pub type TOUCH_R = crate::BitReader;
17#[doc = "Field `BROWN_OUT` reader - brown out interrupt raw"]
18pub type BROWN_OUT_R = crate::BitReader;
19#[doc = "Field `MAIN_TIMER` reader - RTC main timer interrupt raw"]
20pub type MAIN_TIMER_R = crate::BitReader;
21impl R {
22 #[doc = "Bit 0 - sleep wakeup interrupt raw"]
23 #[inline(always)]
24 pub fn slp_wakeup(&self) -> SLP_WAKEUP_R {
25 SLP_WAKEUP_R::new((self.bits & 1) != 0)
26 }
27 #[doc = "Bit 1 - sleep reject interrupt raw"]
28 #[inline(always)]
29 pub fn slp_reject(&self) -> SLP_REJECT_R {
30 SLP_REJECT_R::new(((self.bits >> 1) & 1) != 0)
31 }
32 #[doc = "Bit 2 - SDIO idle interrupt raw"]
33 #[inline(always)]
34 pub fn sdio_idle(&self) -> SDIO_IDLE_R {
35 SDIO_IDLE_R::new(((self.bits >> 2) & 1) != 0)
36 }
37 #[doc = "Bit 3 - RTC WDT interrupt raw"]
38 #[inline(always)]
39 pub fn wdt(&self) -> WDT_R {
40 WDT_R::new(((self.bits >> 3) & 1) != 0)
41 }
42 #[doc = "Bit 4 - RTC time valid interrupt raw"]
43 #[inline(always)]
44 pub fn time_valid(&self) -> TIME_VALID_R {
45 TIME_VALID_R::new(((self.bits >> 4) & 1) != 0)
46 }
47 #[doc = "Bit 5 - ULP-coprocessor interrupt raw"]
48 #[inline(always)]
49 pub fn ulp_cp(&self) -> ULP_CP_R {
50 ULP_CP_R::new(((self.bits >> 5) & 1) != 0)
51 }
52 #[doc = "Bit 6 - touch interrupt raw"]
53 #[inline(always)]
54 pub fn touch(&self) -> TOUCH_R {
55 TOUCH_R::new(((self.bits >> 6) & 1) != 0)
56 }
57 #[doc = "Bit 7 - brown out interrupt raw"]
58 #[inline(always)]
59 pub fn brown_out(&self) -> BROWN_OUT_R {
60 BROWN_OUT_R::new(((self.bits >> 7) & 1) != 0)
61 }
62 #[doc = "Bit 8 - RTC main timer interrupt raw"]
63 #[inline(always)]
64 pub fn main_timer(&self) -> MAIN_TIMER_R {
65 MAIN_TIMER_R::new(((self.bits >> 8) & 1) != 0)
66 }
67}
68#[cfg(feature = "impl-register-debug")]
69impl core::fmt::Debug for R {
70 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
71 f.debug_struct("INT_RAW")
72 .field("slp_wakeup", &self.slp_wakeup())
73 .field("slp_reject", &self.slp_reject())
74 .field("sdio_idle", &self.sdio_idle())
75 .field("wdt", &self.wdt())
76 .field("time_valid", &self.time_valid())
77 .field("ulp_cp", &self.ulp_cp())
78 .field("touch", &self.touch())
79 .field("brown_out", &self.brown_out())
80 .field("main_timer", &self.main_timer())
81 .finish()
82 }
83}
84#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`int_raw::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
85pub struct INT_RAW_SPEC;
86impl crate::RegisterSpec for INT_RAW_SPEC {
87 type Ux = u32;
88}
89#[doc = "`read()` method returns [`int_raw::R`](R) reader structure"]
90impl crate::Readable for INT_RAW_SPEC {}
91#[doc = "`reset()` method sets INT_RAW to value 0"]
92impl crate::Resettable for INT_RAW_SPEC {
93 const RESET_VALUE: u32 = 0;
94}