stm32f1_staging/stm32f101/fsmc/
eccr2.rs

1///Register `ECCR2` reader
2pub type R = crate::R<ECCR2rs>;
3///Field `ECCx` reader - ECC result
4pub type ECCX_R = crate::FieldReader<u32>;
5impl R {
6    ///Bits 0:31 - ECC result
7    #[inline(always)]
8    pub fn eccx(&self) -> ECCX_R {
9        ECCX_R::new(self.bits)
10    }
11}
12impl core::fmt::Debug for R {
13    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
14        f.debug_struct("ECCR2").field("eccx", &self.eccx()).finish()
15    }
16}
17/**ECC result register 2
18
19You can [`read`](crate::Reg::read) this register and get [`eccr2::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
20
21See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F101.html#FSMC:ECCR2)*/
22pub struct ECCR2rs;
23impl crate::RegisterSpec for ECCR2rs {
24    type Ux = u32;
25}
26///`read()` method returns [`eccr2::R`](R) reader structure
27impl crate::Readable for ECCR2rs {}
28///`reset()` method sets ECCR2 to value 0
29impl crate::Resettable for ECCR2rs {}