max78000_pac/gcr/
eccced.rs1#[doc = "Register `ECCCED` reader"]
2pub type R = crate::R<EcccedSpec>;
3#[doc = "Register `ECCCED` writer"]
4pub type W = crate::W<EcccedSpec>;
5#[doc = "Field `RAM` reader - ECC System RAM0 Error Flag. Write 1 to clear."]
6pub type RamR = crate::BitReader;
7#[doc = "Field `RAM` writer - ECC System RAM0 Error Flag. Write 1 to clear."]
8pub type RamW<'a, REG> = crate::BitWriter<'a, REG>;
9impl R {
10 #[doc = "Bit 0 - ECC System RAM0 Error Flag. Write 1 to clear."]
11 #[inline(always)]
12 pub fn ram(&self) -> RamR {
13 RamR::new((self.bits & 1) != 0)
14 }
15}
16impl W {
17 #[doc = "Bit 0 - ECC System RAM0 Error Flag. Write 1 to clear."]
18 #[inline(always)]
19 pub fn ram(&mut self) -> RamW<EcccedSpec> {
20 RamW::new(self, 0)
21 }
22}
23#[doc = "ECC Not Double Error Detect Register\n\nYou can [`read`](crate::Reg::read) this register and get [`eccced::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`eccced::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
24pub struct EcccedSpec;
25impl crate::RegisterSpec for EcccedSpec {
26 type Ux = u32;
27}
28#[doc = "`read()` method returns [`eccced::R`](R) reader structure"]
29impl crate::Readable for EcccedSpec {}
30#[doc = "`write(|w| ..)` method takes [`eccced::W`](W) writer structure"]
31impl crate::Writable for EcccedSpec {
32 type Safety = crate::Unsafe;
33 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
34 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
35}
36#[doc = "`reset()` method sets ECCCED to value 0"]
37impl crate::Resettable for EcccedSpec {
38 const RESET_VALUE: u32 = 0;
39}