esp32c6_lp/lp_tee/
force_acc_hp.rs

1#[doc = "Register `FORCE_ACC_HP` reader"]
2pub type R = crate::R<FORCE_ACC_HP_SPEC>;
3#[doc = "Register `FORCE_ACC_HP` writer"]
4pub type W = crate::W<FORCE_ACC_HP_SPEC>;
5#[doc = "Field `LP_AON_FORCE_ACC_HPMEM_EN` reader - need_des"]
6pub type LP_AON_FORCE_ACC_HPMEM_EN_R = crate::BitReader;
7#[doc = "Field `LP_AON_FORCE_ACC_HPMEM_EN` writer - need_des"]
8pub type LP_AON_FORCE_ACC_HPMEM_EN_W<'a, REG> = crate::BitWriter<'a, REG>;
9impl R {
10    #[doc = "Bit 0 - need_des"]
11    #[inline(always)]
12    pub fn lp_aon_force_acc_hpmem_en(&self) -> LP_AON_FORCE_ACC_HPMEM_EN_R {
13        LP_AON_FORCE_ACC_HPMEM_EN_R::new((self.bits & 1) != 0)
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("FORCE_ACC_HP")
20            .field(
21                "lp_aon_force_acc_hpmem_en",
22                &self.lp_aon_force_acc_hpmem_en(),
23            )
24            .finish()
25    }
26}
27impl W {
28    #[doc = "Bit 0 - need_des"]
29    #[inline(always)]
30    #[must_use]
31    pub fn lp_aon_force_acc_hpmem_en(&mut self) -> LP_AON_FORCE_ACC_HPMEM_EN_W<FORCE_ACC_HP_SPEC> {
32        LP_AON_FORCE_ACC_HPMEM_EN_W::new(self, 0)
33    }
34}
35#[doc = "need_des\n\nYou can [`read`](crate::Reg::read) this register and get [`force_acc_hp::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`force_acc_hp::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
36pub struct FORCE_ACC_HP_SPEC;
37impl crate::RegisterSpec for FORCE_ACC_HP_SPEC {
38    type Ux = u32;
39}
40#[doc = "`read()` method returns [`force_acc_hp::R`](R) reader structure"]
41impl crate::Readable for FORCE_ACC_HP_SPEC {}
42#[doc = "`write(|w| ..)` method takes [`force_acc_hp::W`](W) writer structure"]
43impl crate::Writable for FORCE_ACC_HP_SPEC {
44    type Safety = crate::Unsafe;
45    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
46    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
47}
48#[doc = "`reset()` method sets FORCE_ACC_HP to value 0"]
49impl crate::Resettable for FORCE_ACC_HP_SPEC {
50    const RESET_VALUE: u32 = 0;
51}