stm32f1_staging/stm32f103/crc/
cr.rs1pub type W = crate::W<CRrs>;
3#[cfg_attr(feature = "defmt", derive(defmt::Format))]
7#[derive(Clone, Copy, Debug, PartialEq, Eq)]
8pub enum RESETW {
9 Reset = 1,
11}
12impl From<RESETW> for bool {
13 #[inline(always)]
14 fn from(variant: RESETW) -> Self {
15 variant as u8 != 0
16 }
17}
18pub type RESET_W<'a, REG> = crate::BitWriter<'a, REG, RESETW>;
20impl<'a, REG> RESET_W<'a, REG>
21where
22 REG: crate::Writable + crate::RegisterSpec,
23{
24 #[inline(always)]
26 pub fn reset(self) -> &'a mut crate::W<REG> {
27 self.variant(RESETW::Reset)
28 }
29}
30impl core::fmt::Debug for crate::generic::Reg<CRrs> {
31 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
32 write!(f, "(not readable)")
33 }
34}
35impl W {
36 #[inline(always)]
38 pub fn reset(&mut self) -> RESET_W<CRrs> {
39 RESET_W::new(self, 0)
40 }
41}
42pub struct CRrs;
48impl crate::RegisterSpec for CRrs {
49 type Ux = u32;
50}
51impl crate::Writable for CRrs {
53 type Safety = crate::Unsafe;
54}
55impl crate::Resettable for CRrs {}