mcxa_pac/erm0/
corr_err_cnt1.rs1#[doc = "Register `CORR_ERR_CNT1` reader"]
2pub type R = crate::R<CorrErrCnt1Spec>;
3#[doc = "Register `CORR_ERR_CNT1` writer"]
4pub type W = crate::W<CorrErrCnt1Spec>;
5#[doc = "Field `COUNT` reader - Memory n Correctable Error Count"]
6pub type CountR = crate::FieldReader;
7#[doc = "Field `COUNT` writer - Memory n Correctable Error Count"]
8pub type CountW<'a, REG> = crate::FieldWriter<'a, REG, 8>;
9impl R {
10 #[doc = "Bits 0:7 - Memory n Correctable Error Count"]
11 #[inline(always)]
12 pub fn count(&self) -> CountR {
13 CountR::new((self.bits & 0xff) 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("CORR_ERR_CNT1").field("count", &self.count()).finish()
20 }
21}
22impl W {
23 #[doc = "Bits 0:7 - Memory n Correctable Error Count"]
24 #[inline(always)]
25 pub fn count(&mut self) -> CountW<'_, CorrErrCnt1Spec> {
26 CountW::new(self, 0)
27 }
28}
29#[doc = "ERM Memory 1 Correctable Error Count Register\n\nYou can [`read`](crate::Reg::read) this register and get [`corr_err_cnt1::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`corr_err_cnt1::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
30pub struct CorrErrCnt1Spec;
31impl crate::RegisterSpec for CorrErrCnt1Spec {
32 type Ux = u32;
33}
34#[doc = "`read()` method returns [`corr_err_cnt1::R`](R) reader structure"]
35impl crate::Readable for CorrErrCnt1Spec {}
36#[doc = "`write(|w| ..)` method takes [`corr_err_cnt1::W`](W) writer structure"]
37impl crate::Writable for CorrErrCnt1Spec {
38 type Safety = crate::Unsafe;
39}
40#[doc = "`reset()` method sets CORR_ERR_CNT1 to value 0"]
41impl crate::Resettable for CorrErrCnt1Spec {}