esp32c6/timg0/t/
hi.rs

1#[doc = "Register `HI` reader"]
2pub type R = crate::R<HI_SPEC>;
3#[doc = "Field `HI` reader - After writing to TIMG_T%sUPDATE_REG, the high 22 bits of the time-base counter of timer %s can be read here."]
4pub type HI_R = crate::FieldReader<u32>;
5impl R {
6    #[doc = "Bits 0:21 - After writing to TIMG_T%sUPDATE_REG, the high 22 bits of the time-base counter of timer %s can be read here."]
7    #[inline(always)]
8    pub fn hi(&self) -> HI_R {
9        HI_R::new(self.bits & 0x003f_ffff)
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("HI").field("hi", &self.hi()).finish()
16    }
17}
18#[doc = "Timer %s current value, high 22 bits\n\nYou can [`read`](crate::Reg::read) this register and get [`hi::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
19pub struct HI_SPEC;
20impl crate::RegisterSpec for HI_SPEC {
21    type Ux = u32;
22}
23#[doc = "`read()` method returns [`hi::R`](R) reader structure"]
24impl crate::Readable for HI_SPEC {}
25#[doc = "`reset()` method sets HI to value 0"]
26impl crate::Resettable for HI_SPEC {
27    const RESET_VALUE: u32 = 0;
28}