esp32p4/lp_timer/
main_buf1_low.rs

1#[doc = "Register `MAIN_BUF1_LOW` reader"]
2pub type R = crate::R<MAIN_BUF1_LOW_SPEC>;
3#[doc = "Field `MAIN_TIMER_BUF1_LOW` reader - need_des"]
4pub type MAIN_TIMER_BUF1_LOW_R = crate::FieldReader<u32>;
5impl R {
6    #[doc = "Bits 0:31 - need_des"]
7    #[inline(always)]
8    pub fn main_timer_buf1_low(&self) -> MAIN_TIMER_BUF1_LOW_R {
9        MAIN_TIMER_BUF1_LOW_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("MAIN_BUF1_LOW")
16            .field(
17                "main_timer_buf1_low",
18                &format_args!("{}", self.main_timer_buf1_low().bits()),
19            )
20            .finish()
21    }
22}
23#[cfg(feature = "impl-register-debug")]
24impl core::fmt::Debug for crate::generic::Reg<MAIN_BUF1_LOW_SPEC> {
25    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
26        core::fmt::Debug::fmt(&self.read(), f)
27    }
28}
29#[doc = "need_des\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`main_buf1_low::R`](R).  See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
30pub struct MAIN_BUF1_LOW_SPEC;
31impl crate::RegisterSpec for MAIN_BUF1_LOW_SPEC {
32    type Ux = u32;
33}
34#[doc = "`read()` method returns [`main_buf1_low::R`](R) reader structure"]
35impl crate::Readable for MAIN_BUF1_LOW_SPEC {}
36#[doc = "`reset()` method sets MAIN_BUF1_LOW to value 0"]
37impl crate::Resettable for MAIN_BUF1_LOW_SPEC {
38    const RESET_VALUE: u32 = 0;
39}