stm32f1_staging/stm32f103/tim6/
egr.rs1pub type W = crate::W<EGRrs>;
3#[cfg_attr(feature = "defmt", derive(defmt::Format))]
7#[derive(Clone, Copy, Debug, PartialEq, Eq)]
8pub enum UG {
9 Update = 1,
11}
12impl From<UG> for bool {
13 #[inline(always)]
14 fn from(variant: UG) -> Self {
15 variant as u8 != 0
16 }
17}
18pub type UG_W<'a, REG> = crate::BitWriter<'a, REG, UG>;
20impl<'a, REG> UG_W<'a, REG>
21where
22 REG: crate::Writable + crate::RegisterSpec,
23{
24 #[inline(always)]
26 pub fn update(self) -> &'a mut crate::W<REG> {
27 self.variant(UG::Update)
28 }
29}
30impl core::fmt::Debug for crate::generic::Reg<EGRrs> {
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 ug(&mut self) -> UG_W<EGRrs> {
39 UG_W::new(self, 0)
40 }
41}
42pub struct EGRrs;
48impl crate::RegisterSpec for EGRrs {
49 type Ux = u32;
50}
51impl crate::Writable for EGRrs {
53 type Safety = crate::Unsafe;
54}
55impl crate::Resettable for EGRrs {}