esp32p4/pmu/
clk_state1.rs1#[doc = "Register `CLK_STATE1` reader"]
2pub type R = crate::R<CLK_STATE1_SPEC>;
3#[doc = "Field `PMU_ICG_FUNC_EN_STATE` reader - need_des"]
4pub type PMU_ICG_FUNC_EN_STATE_R = crate::FieldReader<u32>;
5impl R {
6 #[doc = "Bits 0:31 - need_des"]
7 #[inline(always)]
8 pub fn pmu_icg_func_en_state(&self) -> PMU_ICG_FUNC_EN_STATE_R {
9 PMU_ICG_FUNC_EN_STATE_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("CLK_STATE1")
16 .field(
17 "pmu_icg_func_en_state",
18 &format_args!("{}", self.pmu_icg_func_en_state().bits()),
19 )
20 .finish()
21 }
22}
23#[cfg(feature = "impl-register-debug")]
24impl core::fmt::Debug for crate::generic::Reg<CLK_STATE1_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 [`clk_state1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
30pub struct CLK_STATE1_SPEC;
31impl crate::RegisterSpec for CLK_STATE1_SPEC {
32 type Ux = u32;
33}
34#[doc = "`read()` method returns [`clk_state1::R`](R) reader structure"]
35impl crate::Readable for CLK_STATE1_SPEC {}
36#[doc = "`reset()` method sets CLK_STATE1 to value 0xffff_ffff"]
37impl crate::Resettable for CLK_STATE1_SPEC {
38 const RESET_VALUE: u32 = 0xffff_ffff;
39}