esp32c3/rtc_cntl/
time_high1.rs1#[doc = "Register `TIME_HIGH1` reader"]
2pub type R = crate::R<TIME_HIGH1_SPEC>;
3#[doc = "Field `TIMER_VALUE1_HIGH` reader - RTC timer high 16 bits"]
4pub type TIMER_VALUE1_HIGH_R = crate::FieldReader<u16>;
5impl R {
6 #[doc = "Bits 0:15 - RTC timer high 16 bits"]
7 #[inline(always)]
8 pub fn timer_value1_high(&self) -> TIMER_VALUE1_HIGH_R {
9 TIMER_VALUE1_HIGH_R::new((self.bits & 0xffff) as u16)
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_HIGH1")
16 .field("timer_value1_high", &self.timer_value1_high())
17 .finish()
18 }
19}
20#[doc = "rtc configure register\n\nYou can [`read`](crate::Reg::read) this register and get [`time_high1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct TIME_HIGH1_SPEC;
22impl crate::RegisterSpec for TIME_HIGH1_SPEC {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`time_high1::R`](R) reader structure"]
26impl crate::Readable for TIME_HIGH1_SPEC {}
27#[doc = "`reset()` method sets TIME_HIGH1 to value 0"]
28impl crate::Resettable for TIME_HIGH1_SPEC {
29 const RESET_VALUE: u32 = 0;
30}