stm32f1_staging/stm32f101/pwr/
csr.rs1pub type R = crate::R<CSRrs>;
3pub type W = crate::W<CSRrs>;
5pub type WUF_R = crate::BitReader;
7pub type SBF_R = crate::BitReader;
9pub type PVDO_R = crate::BitReader;
11pub type EWUP_R = crate::BitReader;
13pub type EWUP_W<'a, REG> = crate::BitWriter<'a, REG>;
15impl R {
16 #[inline(always)]
18 pub fn wuf(&self) -> WUF_R {
19 WUF_R::new((self.bits & 1) != 0)
20 }
21 #[inline(always)]
23 pub fn sbf(&self) -> SBF_R {
24 SBF_R::new(((self.bits >> 1) & 1) != 0)
25 }
26 #[inline(always)]
28 pub fn pvdo(&self) -> PVDO_R {
29 PVDO_R::new(((self.bits >> 2) & 1) != 0)
30 }
31 #[inline(always)]
33 pub fn ewup(&self) -> EWUP_R {
34 EWUP_R::new(((self.bits >> 8) & 1) != 0)
35 }
36}
37impl core::fmt::Debug for R {
38 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
39 f.debug_struct("CSR")
40 .field("wuf", &self.wuf())
41 .field("sbf", &self.sbf())
42 .field("pvdo", &self.pvdo())
43 .field("ewup", &self.ewup())
44 .finish()
45 }
46}
47impl W {
48 #[inline(always)]
50 pub fn ewup(&mut self) -> EWUP_W<CSRrs> {
51 EWUP_W::new(self, 8)
52 }
53}
54pub struct CSRrs;
60impl crate::RegisterSpec for CSRrs {
61 type Ux = u32;
62}
63impl crate::Readable for CSRrs {}
65impl crate::Writable for CSRrs {
67 type Safety = crate::Unsafe;
68}
69impl crate::Resettable for CSRrs {}