esp32c6/clint/
utime.rs

1#[doc = "Register `UTIME` reader"]
2pub type R = crate::R<UTIME_SPEC>;
3#[doc = "Field `UTIME` reader - Represents the read-only 64-bit CLINT timer counter value."]
4pub type UTIME_R = crate::FieldReader<u64>;
5impl R {
6    #[doc = "Bits 0:63 - Represents the read-only 64-bit CLINT timer counter value."]
7    #[inline(always)]
8    pub fn utime(&self) -> UTIME_R {
9        UTIME_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("UTIME")
16            .field("utime", &self.utime())
17            .finish()
18    }
19}
20#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`utime::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct UTIME_SPEC;
22impl crate::RegisterSpec for UTIME_SPEC {
23    type Ux = u64;
24}
25#[doc = "`read()` method returns [`utime::R`](R) reader structure"]
26impl crate::Readable for UTIME_SPEC {}
27#[doc = "`reset()` method sets UTIME to value 0"]
28impl crate::Resettable for UTIME_SPEC {
29    const RESET_VALUE: u64 = 0;
30}