stm32f1_staging/stm32f107/flash/
ar.rs

1///Register `AR` writer
2pub type W = crate::W<ARrs>;
3///Field `FAR` writer - Flash Address
4pub type FAR_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
5impl core::fmt::Debug for crate::generic::Reg<ARrs> {
6    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
7        write!(f, "(not readable)")
8    }
9}
10impl W {
11    ///Bits 0:31 - Flash Address
12    #[inline(always)]
13    pub fn far(&mut self) -> FAR_W<ARrs> {
14        FAR_W::new(self, 0)
15    }
16}
17/**Flash address register
18
19You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`ar::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
20
21See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F107.html#FLASH:AR)*/
22pub struct ARrs;
23impl crate::RegisterSpec for ARrs {
24    type Ux = u32;
25}
26///`write(|w| ..)` method takes [`ar::W`](W) writer structure
27impl crate::Writable for ARrs {
28    type Safety = crate::Unsafe;
29}
30///`reset()` method sets AR to value 0
31impl crate::Resettable for ARrs {}