esp32c6/systimer/real_target/
hi.rs1#[doc = "Register `HI` reader"]
2pub type R = crate::R<HI_SPEC>;
3#[doc = "Field `HI_RO` reader - actual target value value high 20bits"]
4pub type HI_RO_R = crate::FieldReader<u32>;
5impl R {
6 #[doc = "Bits 0:19 - actual target value value high 20bits"]
7 #[inline(always)]
8 pub fn hi_ro(&self) -> HI_RO_R {
9 HI_RO_R::new(self.bits & 0x000f_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_ro", &self.hi_ro()).finish()
16 }
17}
18#[doc = "system timer comp0 actual target value high register\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}