esp32p4/pmu/
hp_modem_sysclk.rs

1#[doc = "Register `HP_MODEM_SYSCLK` writer"]
2pub type W = crate::W<HP_MODEM_SYSCLK_SPEC>;
3#[doc = "Field `HP_MODEM_DIG_SYS_CLK_NO_DIV` writer - need_des"]
4pub type HP_MODEM_DIG_SYS_CLK_NO_DIV_W<'a, REG> = crate::BitWriter<'a, REG>;
5#[doc = "Field `HP_MODEM_ICG_SYS_CLOCK_EN` writer - need_des"]
6pub type HP_MODEM_ICG_SYS_CLOCK_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
7#[doc = "Field `HP_MODEM_SYS_CLK_SLP_SEL` writer - need_des"]
8pub type HP_MODEM_SYS_CLK_SLP_SEL_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `HP_MODEM_ICG_SLP_SEL` writer - need_des"]
10pub type HP_MODEM_ICG_SLP_SEL_W<'a, REG> = crate::BitWriter<'a, REG>;
11#[doc = "Field `HP_MODEM_DIG_SYS_CLK_SEL` writer - need_des"]
12pub type HP_MODEM_DIG_SYS_CLK_SEL_W<'a, REG> = crate::FieldWriter<'a, REG, 2>;
13#[cfg(feature = "impl-register-debug")]
14impl core::fmt::Debug for crate::generic::Reg<HP_MODEM_SYSCLK_SPEC> {
15    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
16        write!(f, "(not readable)")
17    }
18}
19impl W {
20    #[doc = "Bit 26 - need_des"]
21    #[inline(always)]
22    #[must_use]
23    pub fn hp_modem_dig_sys_clk_no_div(
24        &mut self,
25    ) -> HP_MODEM_DIG_SYS_CLK_NO_DIV_W<HP_MODEM_SYSCLK_SPEC> {
26        HP_MODEM_DIG_SYS_CLK_NO_DIV_W::new(self, 26)
27    }
28    #[doc = "Bit 27 - need_des"]
29    #[inline(always)]
30    #[must_use]
31    pub fn hp_modem_icg_sys_clock_en(
32        &mut self,
33    ) -> HP_MODEM_ICG_SYS_CLOCK_EN_W<HP_MODEM_SYSCLK_SPEC> {
34        HP_MODEM_ICG_SYS_CLOCK_EN_W::new(self, 27)
35    }
36    #[doc = "Bit 28 - need_des"]
37    #[inline(always)]
38    #[must_use]
39    pub fn hp_modem_sys_clk_slp_sel(&mut self) -> HP_MODEM_SYS_CLK_SLP_SEL_W<HP_MODEM_SYSCLK_SPEC> {
40        HP_MODEM_SYS_CLK_SLP_SEL_W::new(self, 28)
41    }
42    #[doc = "Bit 29 - need_des"]
43    #[inline(always)]
44    #[must_use]
45    pub fn hp_modem_icg_slp_sel(&mut self) -> HP_MODEM_ICG_SLP_SEL_W<HP_MODEM_SYSCLK_SPEC> {
46        HP_MODEM_ICG_SLP_SEL_W::new(self, 29)
47    }
48    #[doc = "Bits 30:31 - need_des"]
49    #[inline(always)]
50    #[must_use]
51    pub fn hp_modem_dig_sys_clk_sel(&mut self) -> HP_MODEM_DIG_SYS_CLK_SEL_W<HP_MODEM_SYSCLK_SPEC> {
52        HP_MODEM_DIG_SYS_CLK_SEL_W::new(self, 30)
53    }
54}
55#[doc = "need_des\n\nYou can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`hp_modem_sysclk::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
56pub struct HP_MODEM_SYSCLK_SPEC;
57impl crate::RegisterSpec for HP_MODEM_SYSCLK_SPEC {
58    type Ux = u32;
59}
60#[doc = "`write(|w| ..)` method takes [`hp_modem_sysclk::W`](W) writer structure"]
61impl crate::Writable for HP_MODEM_SYSCLK_SPEC {
62    type Safety = crate::Unsafe;
63    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
64    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
65}
66#[doc = "`reset()` method sets HP_MODEM_SYSCLK to value 0"]
67impl crate::Resettable for HP_MODEM_SYSCLK_SPEC {
68    const RESET_VALUE: u32 = 0;
69}