esp32c3/rtc_cntl/
time_low0.rs

1#[doc = "Register `TIME_LOW0` reader"]
2pub type R = crate::R<TIME_LOW0_SPEC>;
3#[doc = "Field `TIMER_VALUE0_LOW` reader - RTC timer low 32 bits"]
4pub type TIMER_VALUE0_LOW_R = crate::FieldReader<u32>;
5impl R {
6    #[doc = "Bits 0:31 - RTC timer low 32 bits"]
7    #[inline(always)]
8    pub fn timer_value0_low(&self) -> TIMER_VALUE0_LOW_R {
9        TIMER_VALUE0_LOW_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("TIME_LOW0")
16            .field("timer_value0_low", &self.timer_value0_low())
17            .finish()
18    }
19}
20#[doc = "rtc configure register\n\nYou can [`read`](crate::Reg::read) this register and get [`time_low0::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct TIME_LOW0_SPEC;
22impl crate::RegisterSpec for TIME_LOW0_SPEC {
23    type Ux = u32;
24}
25#[doc = "`read()` method returns [`time_low0::R`](R) reader structure"]
26impl crate::Readable for TIME_LOW0_SPEC {}
27#[doc = "`reset()` method sets TIME_LOW0 to value 0"]
28impl crate::Resettable for TIME_LOW0_SPEC {
29    const RESET_VALUE: u32 = 0;
30}