stm32u5/stm32u5a5/rtc/
scr.rs1pub type W = crate::W<SCRrs>;
3#[cfg_attr(feature = "defmt", derive(defmt::Format))]
7#[derive(Clone, Copy, Debug, PartialEq, Eq)]
8pub enum CALRAF {
9 Clear = 1,
11}
12impl From<CALRAF> for bool {
13 #[inline(always)]
14 fn from(variant: CALRAF) -> Self {
15 variant as u8 != 0
16 }
17}
18pub type CALRAF_W<'a, REG> = crate::BitWriter<'a, REG, CALRAF>;
20impl<'a, REG> CALRAF_W<'a, REG>
21where
22 REG: crate::Writable + crate::RegisterSpec,
23{
24 #[inline(always)]
26 pub fn clear(self) -> &'a mut crate::W<REG> {
27 self.variant(CALRAF::Clear)
28 }
29}
30pub use CALRAF_W as CALRBF_W;
32pub use CALRAF_W as CWUTF_W;
34pub use CALRAF_W as CTSF_W;
36pub use CALRAF_W as CTSOVF_W;
38pub use CALRAF_W as CITSF_W;
40pub use CALRAF_W as CSSRUF_W;
42impl core::fmt::Debug for crate::generic::Reg<SCRrs> {
43 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
44 write!(f, "(not readable)")
45 }
46}
47impl W {
48 #[inline(always)]
50 pub fn calraf(&mut self) -> CALRAF_W<SCRrs> {
51 CALRAF_W::new(self, 0)
52 }
53 #[inline(always)]
55 pub fn calrbf(&mut self) -> CALRBF_W<SCRrs> {
56 CALRBF_W::new(self, 1)
57 }
58 #[inline(always)]
60 pub fn cwutf(&mut self) -> CWUTF_W<SCRrs> {
61 CWUTF_W::new(self, 2)
62 }
63 #[inline(always)]
65 pub fn ctsf(&mut self) -> CTSF_W<SCRrs> {
66 CTSF_W::new(self, 3)
67 }
68 #[inline(always)]
70 pub fn ctsovf(&mut self) -> CTSOVF_W<SCRrs> {
71 CTSOVF_W::new(self, 4)
72 }
73 #[inline(always)]
75 pub fn citsf(&mut self) -> CITSF_W<SCRrs> {
76 CITSF_W::new(self, 5)
77 }
78 #[inline(always)]
80 pub fn cssruf(&mut self) -> CSSRUF_W<SCRrs> {
81 CSSRUF_W::new(self, 6)
82 }
83}
84pub struct SCRrs;
90impl crate::RegisterSpec for SCRrs {
91 type Ux = u32;
92}
93impl crate::Writable for SCRrs {
95 type Safety = crate::Unsafe;
96}
97impl crate::Resettable for SCRrs {}