mcxa_pac/erm0/
ear0.rs

1#[doc = "Register `EAR0` reader"]
2pub type R = crate::R<Ear0Spec>;
3#[doc = "Field `EAR` reader - EAR"]
4pub type EarR = crate::FieldReader<u32>;
5impl R {
6    #[doc = "Bits 0:31 - EAR"]
7    #[inline(always)]
8    pub fn ear(&self) -> EarR {
9        EarR::new(self.bits)
10    }
11}
12#[cfg(feature = "debug")]
13impl core::fmt::Debug for R {
14    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15        f.debug_struct("EAR0").field("ear", &self.ear()).finish()
16    }
17}
18#[doc = "ERM Memory 0 Error Address Register\n\nYou can [`read`](crate::Reg::read) this register and get [`ear0::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
19pub struct Ear0Spec;
20impl crate::RegisterSpec for Ear0Spec {
21    type Ux = u32;
22}
23#[doc = "`read()` method returns [`ear0::R`](R) reader structure"]
24impl crate::Readable for Ear0Spec {}
25#[doc = "`reset()` method sets EAR0 to value 0"]
26impl crate::Resettable for Ear0Spec {}