stm32f3_staging/stm32f373/cec/
cr.rs1pub type R = crate::R<CRrs>;
3pub type W = crate::W<CRrs>;
5pub type CECEN_R = crate::BitReader;
7pub type CECEN_W<'a, REG> = crate::BitWriter<'a, REG>;
9pub type TXSOM_R = crate::BitReader;
11pub type TXSOM_W<'a, REG> = crate::BitWriter<'a, REG>;
13pub type TXEOM_R = crate::BitReader;
15pub type TXEOM_W<'a, REG> = crate::BitWriter<'a, REG>;
17impl R {
18 #[inline(always)]
20 pub fn cecen(&self) -> CECEN_R {
21 CECEN_R::new((self.bits & 1) != 0)
22 }
23 #[inline(always)]
25 pub fn txsom(&self) -> TXSOM_R {
26 TXSOM_R::new(((self.bits >> 1) & 1) != 0)
27 }
28 #[inline(always)]
30 pub fn txeom(&self) -> TXEOM_R {
31 TXEOM_R::new(((self.bits >> 2) & 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("CR")
37 .field("txeom", &self.txeom())
38 .field("txsom", &self.txsom())
39 .field("cecen", &self.cecen())
40 .finish()
41 }
42}
43impl W {
44 #[inline(always)]
46 pub fn cecen(&mut self) -> CECEN_W<CRrs> {
47 CECEN_W::new(self, 0)
48 }
49 #[inline(always)]
51 pub fn txsom(&mut self) -> TXSOM_W<CRrs> {
52 TXSOM_W::new(self, 1)
53 }
54 #[inline(always)]
56 pub fn txeom(&mut self) -> TXEOM_W<CRrs> {
57 TXEOM_W::new(self, 2)
58 }
59}
60pub struct CRrs;
66impl crate::RegisterSpec for CRrs {
67 type Ux = u32;
68}
69impl crate::Readable for CRrs {}
71impl crate::Writable for CRrs {
73 type Safety = crate::Unsafe;
74 const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
75 const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
76}
77impl crate::Resettable for CRrs {
79 const RESET_VALUE: u32 = 0;
80}