stm32f4/stm32f407/dma2/st/par.rs
1///Register `PAR` reader
2pub type R = crate::R<PARrs>;
3///Register `PAR` writer
4pub type W = crate::W<PARrs>;
5///Field `PA` reader - Peripheral address
6pub type PA_R = crate::FieldReader<u32>;
7///Field `PA` writer - Peripheral address
8pub type PA_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10    ///Bits 0:31 - Peripheral address
11    #[inline(always)]
12    pub fn pa(&self) -> PA_R {
13        PA_R::new(self.bits)
14    }
15}
16impl core::fmt::Debug for R {
17    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
18        f.debug_struct("PAR").field("pa", &self.pa()).finish()
19    }
20}
21impl W {
22    ///Bits 0:31 - Peripheral address
23    #[inline(always)]
24    pub fn pa(&mut self) -> PA_W<PARrs> {
25        PA_W::new(self, 0)
26    }
27}
28/**stream x peripheral address register
29
30You can [`read`](crate::Reg::read) this register and get [`par::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`par::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
31pub struct PARrs;
32impl crate::RegisterSpec for PARrs {
33    type Ux = u32;
34}
35///`read()` method returns [`par::R`](R) reader structure
36impl crate::Readable for PARrs {}
37///`write(|w| ..)` method takes [`par::W`](W) writer structure
38impl crate::Writable for PARrs {
39    type Safety = crate::Unsafe;
40}
41///`reset()` method sets PAR to value 0
42impl crate::Resettable for PARrs {}