esp32/dport/
pro_boot_remap_ctrl.rs1#[doc = "Register `PRO_BOOT_REMAP_CTRL` reader"]
2pub type R = crate::R<PRO_BOOT_REMAP_CTRL_SPEC>;
3#[doc = "Register `PRO_BOOT_REMAP_CTRL` writer"]
4pub type W = crate::W<PRO_BOOT_REMAP_CTRL_SPEC>;
5#[doc = "Field `PRO_BOOT_REMAP` reader - "]
6pub type PRO_BOOT_REMAP_R = crate::BitReader;
7#[doc = "Field `PRO_BOOT_REMAP` writer - "]
8pub type PRO_BOOT_REMAP_W<'a, REG> = crate::BitWriter<'a, REG>;
9impl R {
10 #[doc = "Bit 0"]
11 #[inline(always)]
12 pub fn pro_boot_remap(&self) -> PRO_BOOT_REMAP_R {
13 PRO_BOOT_REMAP_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("PRO_BOOT_REMAP_CTRL")
20 .field("pro_boot_remap", &self.pro_boot_remap())
21 .finish()
22 }
23}
24impl W {
25 #[doc = "Bit 0"]
26 #[inline(always)]
27 pub fn pro_boot_remap(&mut self) -> PRO_BOOT_REMAP_W<PRO_BOOT_REMAP_CTRL_SPEC> {
28 PRO_BOOT_REMAP_W::new(self, 0)
29 }
30}
31#[doc = "\n\nYou can [`read`](crate::Reg::read) this register and get [`pro_boot_remap_ctrl::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`pro_boot_remap_ctrl::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct PRO_BOOT_REMAP_CTRL_SPEC;
33impl crate::RegisterSpec for PRO_BOOT_REMAP_CTRL_SPEC {
34 type Ux = u32;
35}
36#[doc = "`read()` method returns [`pro_boot_remap_ctrl::R`](R) reader structure"]
37impl crate::Readable for PRO_BOOT_REMAP_CTRL_SPEC {}
38#[doc = "`write(|w| ..)` method takes [`pro_boot_remap_ctrl::W`](W) writer structure"]
39impl crate::Writable for PRO_BOOT_REMAP_CTRL_SPEC {
40 type Safety = crate::Unsafe;
41}
42#[doc = "`reset()` method sets PRO_BOOT_REMAP_CTRL to value 0"]
43impl crate::Resettable for PRO_BOOT_REMAP_CTRL_SPEC {}