1#[doc = "Register `INT_ST` reader"]
2pub type R = crate::R<INT_ST_SPEC>;
3#[doc = "Field `LP_CPU_EXC` reader - need_des"]
4pub type LP_CPU_EXC_R = crate::BitReader;
5#[doc = "Field `SDIO_IDLE` reader - need_des"]
6pub type SDIO_IDLE_R = crate::BitReader;
7#[doc = "Field `SW` reader - need_des"]
8pub type SW_R = crate::BitReader;
9#[doc = "Field `SOC_SLEEP_REJECT` reader - need_des"]
10pub type SOC_SLEEP_REJECT_R = crate::BitReader;
11#[doc = "Field `SOC_WAKEUP` reader - need_des"]
12pub type SOC_WAKEUP_R = crate::BitReader;
13impl R {
14 #[doc = "Bit 27 - need_des"]
15 #[inline(always)]
16 pub fn lp_cpu_exc(&self) -> LP_CPU_EXC_R {
17 LP_CPU_EXC_R::new(((self.bits >> 27) & 1) != 0)
18 }
19 #[doc = "Bit 28 - need_des"]
20 #[inline(always)]
21 pub fn sdio_idle(&self) -> SDIO_IDLE_R {
22 SDIO_IDLE_R::new(((self.bits >> 28) & 1) != 0)
23 }
24 #[doc = "Bit 29 - need_des"]
25 #[inline(always)]
26 pub fn sw(&self) -> SW_R {
27 SW_R::new(((self.bits >> 29) & 1) != 0)
28 }
29 #[doc = "Bit 30 - need_des"]
30 #[inline(always)]
31 pub fn soc_sleep_reject(&self) -> SOC_SLEEP_REJECT_R {
32 SOC_SLEEP_REJECT_R::new(((self.bits >> 30) & 1) != 0)
33 }
34 #[doc = "Bit 31 - need_des"]
35 #[inline(always)]
36 pub fn soc_wakeup(&self) -> SOC_WAKEUP_R {
37 SOC_WAKEUP_R::new(((self.bits >> 31) & 1) != 0)
38 }
39}
40#[cfg(feature = "impl-register-debug")]
41impl core::fmt::Debug for R {
42 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
43 f.debug_struct("INT_ST")
44 .field("lp_cpu_exc", &self.lp_cpu_exc())
45 .field("sdio_idle", &self.sdio_idle())
46 .field("sw", &self.sw())
47 .field("soc_sleep_reject", &self.soc_sleep_reject())
48 .field("soc_wakeup", &self.soc_wakeup())
49 .finish()
50 }
51}
52#[doc = "need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`int_st::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
53pub struct INT_ST_SPEC;
54impl crate::RegisterSpec for INT_ST_SPEC {
55 type Ux = u32;
56}
57#[doc = "`read()` method returns [`int_st::R`](R) reader structure"]
58impl crate::Readable for INT_ST_SPEC {}
59#[doc = "`reset()` method sets INT_ST to value 0"]
60impl crate::Resettable for INT_ST_SPEC {
61 const RESET_VALUE: u32 = 0;
62}