stm32f1_staging/stm32f103/fsmc/
eccr2.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
///Register `ECCR2` reader
pub type R = crate::R<ECCR2rs>;
///Field `ECCx` reader - ECC result
pub type ECCX_R = crate::FieldReader<u32>;
impl R {
    ///Bits 0:31 - ECC result
    #[inline(always)]
    pub fn eccx(&self) -> ECCX_R {
        ECCX_R::new(self.bits)
    }
}
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("ECCR2").field("eccx", &self.eccx()).finish()
    }
}
/**ECC result register 2

You can [`read`](crate::Reg::read) this register and get [`eccr2::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).

See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#FSMC:ECCR2)*/
pub struct ECCR2rs;
impl crate::RegisterSpec for ECCR2rs {
    type Ux = u32;
}
///`read()` method returns [`eccr2::R`](R) reader structure
impl crate::Readable for ECCR2rs {}
///`reset()` method sets ECCR2 to value 0
impl crate::Resettable for ECCR2rs {
    const RESET_VALUE: u32 = 0;
}