mcxa_pac/eim0/
eichd0_word0.rs1#[doc = "Register `EICHD0_WORD0` reader"]
2pub type R = crate::R<Eichd0Word0Spec>;
3#[doc = "Register `EICHD0_WORD0` writer"]
4pub type W = crate::W<Eichd0Word0Spec>;
5#[doc = "Field `CHKBIT_MASK` reader - Checkbit Mask"]
6pub type ChkbitMaskR = crate::FieldReader;
7#[doc = "Field `CHKBIT_MASK` writer - Checkbit Mask"]
8pub type ChkbitMaskW<'a, REG> = crate::FieldWriter<'a, REG, 7>;
9impl R {
10 #[doc = "Bits 25:31 - Checkbit Mask"]
11 #[inline(always)]
12 pub fn chkbit_mask(&self) -> ChkbitMaskR {
13 ChkbitMaskR::new(((self.bits >> 25) & 0x7f) as u8)
14 }
15}
16#[cfg(feature = "debug")]
17impl core::fmt::Debug for R {
18 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
19 f.debug_struct("EICHD0_WORD0")
20 .field("chkbit_mask", &self.chkbit_mask())
21 .finish()
22 }
23}
24impl W {
25 #[doc = "Bits 25:31 - Checkbit Mask"]
26 #[inline(always)]
27 pub fn chkbit_mask(&mut self) -> ChkbitMaskW<'_, Eichd0Word0Spec> {
28 ChkbitMaskW::new(self, 25)
29 }
30}
31#[doc = "Error Injection Channel Descriptor 0, Word0\n\nYou can [`read`](crate::Reg::read) this register and get [`eichd0_word0::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`eichd0_word0::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
32pub struct Eichd0Word0Spec;
33impl crate::RegisterSpec for Eichd0Word0Spec {
34 type Ux = u32;
35}
36#[doc = "`read()` method returns [`eichd0_word0::R`](R) reader structure"]
37impl crate::Readable for Eichd0Word0Spec {}
38#[doc = "`write(|w| ..)` method takes [`eichd0_word0::W`](W) writer structure"]
39impl crate::Writable for Eichd0Word0Spec {
40 type Safety = crate::Unsafe;
41}
42#[doc = "`reset()` method sets EICHD0_WORD0 to value 0"]
43impl crate::Resettable for Eichd0Word0Spec {}