esp32c6_lp/pmu/
hp_modem_backup_clk.rs

1#[doc = "Register `HP_MODEM_BACKUP_CLK` reader"]
2pub type R = crate::R<HP_MODEM_BACKUP_CLK_SPEC>;
3#[doc = "Register `HP_MODEM_BACKUP_CLK` writer"]
4pub type W = crate::W<HP_MODEM_BACKUP_CLK_SPEC>;
5#[doc = "Field `HP_MODEM_BACKUP_ICG_FUNC_EN` reader - need_des"]
6pub type HP_MODEM_BACKUP_ICG_FUNC_EN_R = crate::FieldReader<u32>;
7#[doc = "Field `HP_MODEM_BACKUP_ICG_FUNC_EN` writer - need_des"]
8pub type HP_MODEM_BACKUP_ICG_FUNC_EN_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10    #[doc = "Bits 0:31 - need_des"]
11    #[inline(always)]
12    pub fn hp_modem_backup_icg_func_en(&self) -> HP_MODEM_BACKUP_ICG_FUNC_EN_R {
13        HP_MODEM_BACKUP_ICG_FUNC_EN_R::new(self.bits)
14    }
15}
16#[cfg(feature = "impl-register-debug")]
17impl core::fmt::Debug for R {
18    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19        f.debug_struct("HP_MODEM_BACKUP_CLK")
20            .field(
21                "hp_modem_backup_icg_func_en",
22                &self.hp_modem_backup_icg_func_en(),
23            )
24            .finish()
25    }
26}
27impl W {
28    #[doc = "Bits 0:31 - need_des"]
29    #[inline(always)]
30    #[must_use]
31    pub fn hp_modem_backup_icg_func_en(
32        &mut self,
33    ) -> HP_MODEM_BACKUP_ICG_FUNC_EN_W<HP_MODEM_BACKUP_CLK_SPEC> {
34        HP_MODEM_BACKUP_ICG_FUNC_EN_W::new(self, 0)
35    }
36}
37#[doc = "need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`hp_modem_backup_clk::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`hp_modem_backup_clk::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
38pub struct HP_MODEM_BACKUP_CLK_SPEC;
39impl crate::RegisterSpec for HP_MODEM_BACKUP_CLK_SPEC {
40    type Ux = u32;
41}
42#[doc = "`read()` method returns [`hp_modem_backup_clk::R`](R) reader structure"]
43impl crate::Readable for HP_MODEM_BACKUP_CLK_SPEC {}
44#[doc = "`write(|w| ..)` method takes [`hp_modem_backup_clk::W`](W) writer structure"]
45impl crate::Writable for HP_MODEM_BACKUP_CLK_SPEC {
46    type Safety = crate::Unsafe;
47    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
48    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
49}
50#[doc = "`reset()` method sets HP_MODEM_BACKUP_CLK to value 0"]
51impl crate::Resettable for HP_MODEM_BACKUP_CLK_SPEC {
52    const RESET_VALUE: u32 = 0;
53}