esp32c6_lp/pmu/
power_hp_pad.rs1#[doc = "Register `POWER_HP_PAD` reader"]
2pub type R = crate::R<POWER_HP_PAD_SPEC>;
3#[doc = "Register `POWER_HP_PAD` writer"]
4pub type W = crate::W<POWER_HP_PAD_SPEC>;
5#[doc = "Field `FORCE_HP_PAD_NO_ISO_ALL` reader - need_des"]
6pub type FORCE_HP_PAD_NO_ISO_ALL_R = crate::BitReader;
7#[doc = "Field `FORCE_HP_PAD_NO_ISO_ALL` writer - need_des"]
8pub type FORCE_HP_PAD_NO_ISO_ALL_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `FORCE_HP_PAD_ISO_ALL` reader - need_des"]
10pub type FORCE_HP_PAD_ISO_ALL_R = crate::BitReader;
11#[doc = "Field `FORCE_HP_PAD_ISO_ALL` writer - need_des"]
12pub type FORCE_HP_PAD_ISO_ALL_W<'a, REG> = crate::BitWriter<'a, REG>;
13impl R {
14 #[doc = "Bit 0 - need_des"]
15 #[inline(always)]
16 pub fn force_hp_pad_no_iso_all(&self) -> FORCE_HP_PAD_NO_ISO_ALL_R {
17 FORCE_HP_PAD_NO_ISO_ALL_R::new((self.bits & 1) != 0)
18 }
19 #[doc = "Bit 1 - need_des"]
20 #[inline(always)]
21 pub fn force_hp_pad_iso_all(&self) -> FORCE_HP_PAD_ISO_ALL_R {
22 FORCE_HP_PAD_ISO_ALL_R::new(((self.bits >> 1) & 1) != 0)
23 }
24}
25#[cfg(feature = "impl-register-debug")]
26impl core::fmt::Debug for R {
27 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
28 f.debug_struct("POWER_HP_PAD")
29 .field("force_hp_pad_no_iso_all", &self.force_hp_pad_no_iso_all())
30 .field("force_hp_pad_iso_all", &self.force_hp_pad_iso_all())
31 .finish()
32 }
33}
34impl W {
35 #[doc = "Bit 0 - need_des"]
36 #[inline(always)]
37 #[must_use]
38 pub fn force_hp_pad_no_iso_all(&mut self) -> FORCE_HP_PAD_NO_ISO_ALL_W<POWER_HP_PAD_SPEC> {
39 FORCE_HP_PAD_NO_ISO_ALL_W::new(self, 0)
40 }
41 #[doc = "Bit 1 - need_des"]
42 #[inline(always)]
43 #[must_use]
44 pub fn force_hp_pad_iso_all(&mut self) -> FORCE_HP_PAD_ISO_ALL_W<POWER_HP_PAD_SPEC> {
45 FORCE_HP_PAD_ISO_ALL_W::new(self, 1)
46 }
47}
48#[doc = "need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`power_hp_pad::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`power_hp_pad::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
49pub struct POWER_HP_PAD_SPEC;
50impl crate::RegisterSpec for POWER_HP_PAD_SPEC {
51 type Ux = u32;
52}
53#[doc = "`read()` method returns [`power_hp_pad::R`](R) reader structure"]
54impl crate::Readable for POWER_HP_PAD_SPEC {}
55#[doc = "`write(|w| ..)` method takes [`power_hp_pad::W`](W) writer structure"]
56impl crate::Writable for POWER_HP_PAD_SPEC {
57 type Safety = crate::Unsafe;
58 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
59 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
60}
61#[doc = "`reset()` method sets POWER_HP_PAD to value 0"]
62impl crate::Resettable for POWER_HP_PAD_SPEC {
63 const RESET_VALUE: u32 = 0;
64}