efm32pg22_pac/efm32pg22c200/devinfo/
modulename6.rs

1#[doc = "Register `MODULENAME6` reader"]
2pub struct R(crate::R<MODULENAME6_SPEC>);
3impl core::ops::Deref for R {
4    type Target = crate::R<MODULENAME6_SPEC>;
5    #[inline(always)]
6    fn deref(&self) -> &Self::Target {
7        &self.0
8    }
9}
10impl From<crate::R<MODULENAME6_SPEC>> for R {
11    #[inline(always)]
12    fn from(reader: crate::R<MODULENAME6_SPEC>) -> Self {
13        R(reader)
14    }
15}
16#[doc = "Field `MODCHAR25` reader - No Description"]
17pub type MODCHAR25_R = crate::FieldReader<u8, u8>;
18#[doc = "Field `MODCHAR26` reader - No Description"]
19pub type MODCHAR26_R = crate::FieldReader<u8, u8>;
20#[doc = "Field `RSV` reader - No Description"]
21pub type RSV_R = crate::FieldReader<u16, u16>;
22impl R {
23    #[doc = "Bits 0:7 - No Description"]
24    #[inline(always)]
25    pub fn modchar25(&self) -> MODCHAR25_R {
26        MODCHAR25_R::new((self.bits & 0xff) as u8)
27    }
28    #[doc = "Bits 8:15 - No Description"]
29    #[inline(always)]
30    pub fn modchar26(&self) -> MODCHAR26_R {
31        MODCHAR26_R::new(((self.bits >> 8) & 0xff) as u8)
32    }
33    #[doc = "Bits 16:31 - No Description"]
34    #[inline(always)]
35    pub fn rsv(&self) -> RSV_R {
36        RSV_R::new(((self.bits >> 16) & 0xffff) as u16)
37    }
38}
39#[doc = "Characters 25-26 of Module Name stored as a null terminated string\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 [modulename6](index.html) module"]
40pub struct MODULENAME6_SPEC;
41impl crate::RegisterSpec for MODULENAME6_SPEC {
42    type Ux = u32;
43}
44#[doc = "`read()` method returns [modulename6::R](R) reader structure"]
45impl crate::Readable for MODULENAME6_SPEC {
46    type Reader = R;
47}
48#[doc = "`reset()` method sets MODULENAME6 to value 0xffff_ffff"]
49impl crate::Resettable for MODULENAME6_SPEC {
50    const RESET_VALUE: Self::Ux = 0xffff_ffff;
51}