esp32c6_lp/lp_timer/
lp_int_st.rs

1#[doc = "Register `LP_INT_ST` reader"]
2pub type R = crate::R<LP_INT_ST_SPEC>;
3#[doc = "Field `MAIN_TIMER_OVERFLOW` reader - need_des"]
4pub type MAIN_TIMER_OVERFLOW_R = crate::BitReader;
5#[doc = "Field `MAIN_TIMER` reader - need_des"]
6pub type MAIN_TIMER_R = crate::BitReader;
7impl R {
8    #[doc = "Bit 30 - need_des"]
9    #[inline(always)]
10    pub fn main_timer_overflow(&self) -> MAIN_TIMER_OVERFLOW_R {
11        MAIN_TIMER_OVERFLOW_R::new(((self.bits >> 30) & 1) != 0)
12    }
13    #[doc = "Bit 31 - need_des"]
14    #[inline(always)]
15    pub fn main_timer(&self) -> MAIN_TIMER_R {
16        MAIN_TIMER_R::new(((self.bits >> 31) & 1) != 0)
17    }
18}
19#[cfg(feature = "impl-register-debug")]
20impl core::fmt::Debug for R {
21    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
22        f.debug_struct("LP_INT_ST")
23            .field("main_timer_overflow", &self.main_timer_overflow())
24            .field("main_timer", &self.main_timer())
25            .finish()
26    }
27}
28#[doc = "need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`lp_int_st::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct LP_INT_ST_SPEC;
30impl crate::RegisterSpec for LP_INT_ST_SPEC {
31    type Ux = u32;
32}
33#[doc = "`read()` method returns [`lp_int_st::R`](R) reader structure"]
34impl crate::Readable for LP_INT_ST_SPEC {}
35#[doc = "`reset()` method sets LP_INT_ST to value 0"]
36impl crate::Resettable for LP_INT_ST_SPEC {
37    const RESET_VALUE: u32 = 0;
38}