stm32g4/stm32g484/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;
40impl core::fmt::Debug for crate::generic::Reg<SCRrs> {
41 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
42 write!(f, "(not readable)")
43 }
44}
45impl W {
46 #[inline(always)]
48 pub fn calraf(&mut self) -> CALRAF_W<SCRrs> {
49 CALRAF_W::new(self, 0)
50 }
51 #[inline(always)]
53 pub fn calrbf(&mut self) -> CALRBF_W<SCRrs> {
54 CALRBF_W::new(self, 1)
55 }
56 #[inline(always)]
58 pub fn cwutf(&mut self) -> CWUTF_W<SCRrs> {
59 CWUTF_W::new(self, 2)
60 }
61 #[inline(always)]
63 pub fn ctsf(&mut self) -> CTSF_W<SCRrs> {
64 CTSF_W::new(self, 3)
65 }
66 #[inline(always)]
68 pub fn ctsovf(&mut self) -> CTSOVF_W<SCRrs> {
69 CTSOVF_W::new(self, 4)
70 }
71 #[inline(always)]
73 pub fn citsf(&mut self) -> CITSF_W<SCRrs> {
74 CITSF_W::new(self, 5)
75 }
76}
77pub struct SCRrs;
83impl crate::RegisterSpec for SCRrs {
84 type Ux = u32;
85}
86impl crate::Writable for SCRrs {
88 type Safety = crate::Unsafe;
89}
90impl crate::Resettable for SCRrs {}