stm32l4/stm32l4x5/rcc/
apb1rstr2.rs1pub type R = crate::R<APB1RSTR2rs>;
3pub type W = crate::W<APB1RSTR2rs>;
5pub type LPUART1RST_R = crate::BitReader;
7pub type LPUART1RST_W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type SWPMI1RST_R = crate::BitReader;
11pub type SWPMI1RST_W<'a, REG> = crate::BitWriter<'a, REG>;
13pub type LPTIM2RST_R = crate::BitReader;
15pub type LPTIM2RST_W<'a, REG> = crate::BitWriter<'a, REG>;
17impl R {
18 #[inline(always)]
20 pub fn lpuart1rst(&self) -> LPUART1RST_R {
21 LPUART1RST_R::new((self.bits & 1) != 0)
22 }
23 #[inline(always)]
25 pub fn swpmi1rst(&self) -> SWPMI1RST_R {
26 SWPMI1RST_R::new(((self.bits >> 2) & 1) != 0)
27 }
28 #[inline(always)]
30 pub fn lptim2rst(&self) -> LPTIM2RST_R {
31 LPTIM2RST_R::new(((self.bits >> 5) & 1) != 0)
32 }
33}
34impl core::fmt::Debug for R {
35 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
36 f.debug_struct("APB1RSTR2")
37 .field("lptim2rst", &self.lptim2rst())
38 .field("swpmi1rst", &self.swpmi1rst())
39 .field("lpuart1rst", &self.lpuart1rst())
40 .finish()
41 }
42}
43impl W {
44 #[inline(always)]
46 pub fn lpuart1rst(&mut self) -> LPUART1RST_W<APB1RSTR2rs> {
47 LPUART1RST_W::new(self, 0)
48 }
49 #[inline(always)]
51 pub fn swpmi1rst(&mut self) -> SWPMI1RST_W<APB1RSTR2rs> {
52 SWPMI1RST_W::new(self, 2)
53 }
54 #[inline(always)]
56 pub fn lptim2rst(&mut self) -> LPTIM2RST_W<APB1RSTR2rs> {
57 LPTIM2RST_W::new(self, 5)
58 }
59}
60pub struct APB1RSTR2rs;
66impl crate::RegisterSpec for APB1RSTR2rs {
67 type Ux = u32;
68}
69impl crate::Readable for APB1RSTR2rs {}
71impl crate::Writable for APB1RSTR2rs {
73 type Safety = crate::Unsafe;
74}
75impl crate::Resettable for APB1RSTR2rs {}