stm32f1_staging/stm32f103/flash/
wrpr.rs

1///Register `WRPR` reader
2pub type R = crate::R<WRPRrs>;
3///Field `WRP` reader - Write protect
4pub type WRP_R = crate::FieldReader<u32>;
5impl R {
6    ///Bits 0:31 - Write protect
7    #[inline(always)]
8    pub fn wrp(&self) -> WRP_R {
9        WRP_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("WRPR").field("wrp", &self.wrp()).finish()
15    }
16}
17/**Write protection register
18
19You can [`read`](crate::Reg::read) this register and get [`wrpr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
20
21See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#FLASH:WRPR)*/
22pub struct WRPRrs;
23impl crate::RegisterSpec for WRPRrs {
24    type Ux = u32;
25}
26///`read()` method returns [`wrpr::R`](R) reader structure
27impl crate::Readable for WRPRrs {}
28///`reset()` method sets WRPR to value 0xffff_ffff
29impl crate::Resettable for WRPRrs {
30    const RESET_VALUE: u32 = 0xffff_ffff;
31}