ambiq_apollo4p_pac/crypto/
memorymap18.rs1#[doc = "Register `MEMORYMAP18` reader"]
2pub type R = crate::R<Memorymap18Spec>;
3#[doc = "Register `MEMORYMAP18` writer"]
4pub type W = crate::W<Memorymap18Spec>;
5#[doc = "Field `PHYSADDRMAP18` reader - Contains the physical address in memory to map the R18 register."]
6pub type Physaddrmap18R = crate::FieldReader<u16>;
7#[doc = "Field `PHYSADDRMAP18` writer - Contains the physical address in memory to map the R18 register."]
8pub type Physaddrmap18W<'a, REG> = crate::FieldWriter<'a, REG, 10, u16>;
9impl R {
10 #[doc = "Bits 1:10 - Contains the physical address in memory to map the R18 register."]
11 #[inline(always)]
12 pub fn physaddrmap18(&self) -> Physaddrmap18R {
13 Physaddrmap18R::new(((self.bits >> 1) & 0x03ff) as u16)
14 }
15}
16impl W {
17 #[doc = "Bits 1:10 - Contains the physical address in memory to map the R18 register."]
18 #[inline(always)]
19 #[must_use]
20 pub fn physaddrmap18(&mut self) -> Physaddrmap18W<Memorymap18Spec> {
21 Physaddrmap18W::new(self, 1)
22 }
23}
24#[doc = "This register maps the virtual register R18 to a physical address in memory.\n\nYou can [`read`](crate::Reg::read) this register and get [`memorymap18::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`memorymap18::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
25pub struct Memorymap18Spec;
26impl crate::RegisterSpec for Memorymap18Spec {
27 type Ux = u32;
28}
29#[doc = "`read()` method returns [`memorymap18::R`](R) reader structure"]
30impl crate::Readable for Memorymap18Spec {}
31#[doc = "`write(|w| ..)` method takes [`memorymap18::W`](W) writer structure"]
32impl crate::Writable for Memorymap18Spec {
33 type Safety = crate::Unsafe;
34 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
35 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
36}
37#[doc = "`reset()` method sets MEMORYMAP18 to value 0"]
38impl crate::Resettable for Memorymap18Spec {
39 const RESET_VALUE: u32 = 0;
40}