stm32wl/stm32wle5/tim1/
cnt.rs1pub type R = crate::R<CNTrs>;
3pub type W = crate::W<CNTrs>;
5pub type CNT_R = crate::FieldReader<u16>;
7pub type CNT_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16, crate::Safe>;
9pub type UIFCPY_R = crate::BitReader;
11impl R {
12 #[inline(always)]
14 pub fn cnt(&self) -> CNT_R {
15 CNT_R::new((self.bits & 0xffff) as u16)
16 }
17 #[inline(always)]
19 pub fn uifcpy(&self) -> UIFCPY_R {
20 UIFCPY_R::new(((self.bits >> 31) & 1) != 0)
21 }
22}
23impl core::fmt::Debug for R {
24 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
25 f.debug_struct("CNT")
26 .field("uifcpy", &self.uifcpy())
27 .field("cnt", &self.cnt())
28 .finish()
29 }
30}
31impl W {
32 #[inline(always)]
34 pub fn cnt(&mut self) -> CNT_W<CNTrs> {
35 CNT_W::new(self, 0)
36 }
37}
38pub struct CNTrs;
44impl crate::RegisterSpec for CNTrs {
45 type Ux = u32;
46}
47impl crate::Readable for CNTrs {}
49impl crate::Writable for CNTrs {
51 type Safety = crate::Unsafe;
52}
53impl crate::Resettable for CNTrs {}