esp32/dport/
tag_fo_ctrl.rs1#[doc = "Register `TAG_FO_CTRL` reader"]
2pub type R = crate::R<TAG_FO_CTRL_SPEC>;
3#[doc = "Register `TAG_FO_CTRL` writer"]
4pub type W = crate::W<TAG_FO_CTRL_SPEC>;
5#[doc = "Field `PRO_CACHE_TAG_FORCE_ON` reader - "]
6pub type PRO_CACHE_TAG_FORCE_ON_R = crate::BitReader;
7#[doc = "Field `PRO_CACHE_TAG_FORCE_ON` writer - "]
8pub type PRO_CACHE_TAG_FORCE_ON_W<'a, REG> = crate::BitWriter<'a, REG>;
9#[doc = "Field `PRO_CACHE_TAG_PD` reader - "]
10pub type PRO_CACHE_TAG_PD_R = crate::BitReader;
11#[doc = "Field `PRO_CACHE_TAG_PD` writer - "]
12pub type PRO_CACHE_TAG_PD_W<'a, REG> = crate::BitWriter<'a, REG>;
13#[doc = "Field `APP_CACHE_TAG_FORCE_ON` reader - "]
14pub type APP_CACHE_TAG_FORCE_ON_R = crate::BitReader;
15#[doc = "Field `APP_CACHE_TAG_FORCE_ON` writer - "]
16pub type APP_CACHE_TAG_FORCE_ON_W<'a, REG> = crate::BitWriter<'a, REG>;
17#[doc = "Field `APP_CACHE_TAG_PD` reader - "]
18pub type APP_CACHE_TAG_PD_R = crate::BitReader;
19#[doc = "Field `APP_CACHE_TAG_PD` writer - "]
20pub type APP_CACHE_TAG_PD_W<'a, REG> = crate::BitWriter<'a, REG>;
21impl R {
22 #[doc = "Bit 0"]
23 #[inline(always)]
24 pub fn pro_cache_tag_force_on(&self) -> PRO_CACHE_TAG_FORCE_ON_R {
25 PRO_CACHE_TAG_FORCE_ON_R::new((self.bits & 1) != 0)
26 }
27 #[doc = "Bit 1"]
28 #[inline(always)]
29 pub fn pro_cache_tag_pd(&self) -> PRO_CACHE_TAG_PD_R {
30 PRO_CACHE_TAG_PD_R::new(((self.bits >> 1) & 1) != 0)
31 }
32 #[doc = "Bit 8"]
33 #[inline(always)]
34 pub fn app_cache_tag_force_on(&self) -> APP_CACHE_TAG_FORCE_ON_R {
35 APP_CACHE_TAG_FORCE_ON_R::new(((self.bits >> 8) & 1) != 0)
36 }
37 #[doc = "Bit 9"]
38 #[inline(always)]
39 pub fn app_cache_tag_pd(&self) -> APP_CACHE_TAG_PD_R {
40 APP_CACHE_TAG_PD_R::new(((self.bits >> 9) & 1) != 0)
41 }
42}
43#[cfg(feature = "impl-register-debug")]
44impl core::fmt::Debug for R {
45 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
46 f.debug_struct("TAG_FO_CTRL")
47 .field("pro_cache_tag_force_on", &self.pro_cache_tag_force_on())
48 .field("pro_cache_tag_pd", &self.pro_cache_tag_pd())
49 .field("app_cache_tag_force_on", &self.app_cache_tag_force_on())
50 .field("app_cache_tag_pd", &self.app_cache_tag_pd())
51 .finish()
52 }
53}
54impl W {
55 #[doc = "Bit 0"]
56 #[inline(always)]
57 pub fn pro_cache_tag_force_on(&mut self) -> PRO_CACHE_TAG_FORCE_ON_W<TAG_FO_CTRL_SPEC> {
58 PRO_CACHE_TAG_FORCE_ON_W::new(self, 0)
59 }
60 #[doc = "Bit 1"]
61 #[inline(always)]
62 pub fn pro_cache_tag_pd(&mut self) -> PRO_CACHE_TAG_PD_W<TAG_FO_CTRL_SPEC> {
63 PRO_CACHE_TAG_PD_W::new(self, 1)
64 }
65 #[doc = "Bit 8"]
66 #[inline(always)]
67 pub fn app_cache_tag_force_on(&mut self) -> APP_CACHE_TAG_FORCE_ON_W<TAG_FO_CTRL_SPEC> {
68 APP_CACHE_TAG_FORCE_ON_W::new(self, 8)
69 }
70 #[doc = "Bit 9"]
71 #[inline(always)]
72 pub fn app_cache_tag_pd(&mut self) -> APP_CACHE_TAG_PD_W<TAG_FO_CTRL_SPEC> {
73 APP_CACHE_TAG_PD_W::new(self, 9)
74 }
75}
76#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`tag_fo_ctrl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`tag_fo_ctrl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
77pub struct TAG_FO_CTRL_SPEC;
78impl crate::RegisterSpec for TAG_FO_CTRL_SPEC {
79 type Ux = u32;
80}
81#[doc = "`read()` method returns [`tag_fo_ctrl::R`](R) reader structure"]
82impl crate::Readable for TAG_FO_CTRL_SPEC {}
83#[doc = "`write(|w| ..)` method takes [`tag_fo_ctrl::W`](W) writer structure"]
84impl crate::Writable for TAG_FO_CTRL_SPEC {
85 type Safety = crate::Unsafe;
86 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
87 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
88}
89#[doc = "`reset()` method sets TAG_FO_CTRL to value 0x0101"]
90impl crate::Resettable for TAG_FO_CTRL_SPEC {
91 const RESET_VALUE: u32 = 0x0101;
92}