esp32c6_lp/lp_timer/
main_buf1_high.rs1#[doc = "Register `MAIN_BUF1_HIGH` reader"]
2pub type R = crate::R<MAIN_BUF1_HIGH_SPEC>;
3#[doc = "Field `MAIN_TIMER_BUF1_HIGH` reader - need_des"]
4pub type MAIN_TIMER_BUF1_HIGH_R = crate::FieldReader<u16>;
5impl R {
6 #[doc = "Bits 0:15 - need_des"]
7 #[inline(always)]
8 pub fn main_timer_buf1_high(&self) -> MAIN_TIMER_BUF1_HIGH_R {
9 MAIN_TIMER_BUF1_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("MAIN_BUF1_HIGH")
16 .field("main_timer_buf1_high", &self.main_timer_buf1_high())
17 .finish()
18 }
19}
20#[doc = "need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`main_buf1_high::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct MAIN_BUF1_HIGH_SPEC;
22impl crate::RegisterSpec for MAIN_BUF1_HIGH_SPEC {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`main_buf1_high::R`](R) reader structure"]
26impl crate::Readable for MAIN_BUF1_HIGH_SPEC {}
27#[doc = "`reset()` method sets MAIN_BUF1_HIGH to value 0"]
28impl crate::Resettable for MAIN_BUF1_HIGH_SPEC {
29 const RESET_VALUE: u32 = 0;
30}