stm32f4/stm32f469/rtc/bkpr.rs
1///Register `BKP%sR` reader
2pub type R = crate::R<BKPRrs>;
3///Register `BKP%sR` writer
4pub type W = crate::W<BKPRrs>;
5///Field `BKP` reader - BKP
6pub type BKP_R = crate::FieldReader<u32>;
7///Field `BKP` writer - BKP
8pub type BKP_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32, crate::Safe>;
9impl R {
10 ///Bits 0:31 - BKP
11 #[inline(always)]
12 pub fn bkp(&self) -> BKP_R {
13 BKP_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("BKPR").field("bkp", &self.bkp()).finish()
19 }
20}
21impl W {
22 ///Bits 0:31 - BKP
23 #[inline(always)]
24 pub fn bkp(&mut self) -> BKP_W<BKPRrs> {
25 BKP_W::new(self, 0)
26 }
27}
28/**backup register
29
30You can [`read`](crate::Reg::read) this register and get [`bkpr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`bkpr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
31
32See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F469.html#RTC:BKP[0]R)*/
33pub struct BKPRrs;
34impl crate::RegisterSpec for BKPRrs {
35 type Ux = u32;
36}
37///`read()` method returns [`bkpr::R`](R) reader structure
38impl crate::Readable for BKPRrs {}
39///`write(|w| ..)` method takes [`bkpr::W`](W) writer structure
40impl crate::Writable for BKPRrs {
41 type Safety = crate::Safe;
42}
43///`reset()` method sets BKP%sR to value 0
44impl crate::Resettable for BKPRrs {}