efm32pg22_pac/efm32pg22c200/devinfo/
meminfo.rs1#[doc = "Register `MEMINFO` reader"]
2pub struct R(crate::R<MEMINFO_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<MEMINFO_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<MEMINFO_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<MEMINFO_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `FLASHPAGESIZE` reader - Flash Page Size"]
17pub type FLASHPAGESIZE_R = crate::FieldReader<u8, u8>;
18#[doc = "Field `UDPAGESIZE` reader - User Data Page Size"]
19pub type UDPAGESIZE_R = crate::FieldReader<u8, u8>;
20#[doc = "Field `DILEN` reader - Length of DI Page"]
21pub type DILEN_R = crate::FieldReader<u16, u16>;
22impl R {
23 #[doc = "Bits 0:7 - Flash Page Size"]
24 #[inline(always)]
25 pub fn flashpagesize(&self) -> FLASHPAGESIZE_R {
26 FLASHPAGESIZE_R::new((self.bits & 0xff) as u8)
27 }
28 #[doc = "Bits 8:15 - User Data Page Size"]
29 #[inline(always)]
30 pub fn udpagesize(&self) -> UDPAGESIZE_R {
31 UDPAGESIZE_R::new(((self.bits >> 8) & 0xff) as u8)
32 }
33 #[doc = "Bits 16:31 - Length of DI Page"]
34 #[inline(always)]
35 pub fn dilen(&self) -> DILEN_R {
36 DILEN_R::new(((self.bits >> 16) & 0xffff) as u16)
37 }
38}
39#[doc = "Flash page size and misc. chip information\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [meminfo](index.html) module"]
40pub struct MEMINFO_SPEC;
41impl crate::RegisterSpec for MEMINFO_SPEC {
42 type Ux = u32;
43}
44#[doc = "`read()` method returns [meminfo::R](R) reader structure"]
45impl crate::Readable for MEMINFO_SPEC {
46 type Reader = R;
47}
48#[doc = "`reset()` method sets MEMINFO to value 0"]
49impl crate::Resettable for MEMINFO_SPEC {
50 const RESET_VALUE: Self::Ux = 0;
51}