stm32mp1/stm32mp157/ddrperfm/
tcnt.rs

1///Register `TCNT` reader
2pub type R = crate::R<TCNTrs>;
3///Field `CNT` reader - CNT
4pub type CNT_R = crate::FieldReader<u32>;
5impl R {
6    ///Bits 0:31 - CNT
7    #[inline(always)]
8    pub fn cnt(&self) -> CNT_R {
9        CNT_R::new(self.bits)
10    }
11}
12impl core::fmt::Debug for R {
13    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
14        f.debug_struct("TCNT").field("cnt", &self.cnt()).finish()
15    }
16}
17/**DDRPERFM time counter register
18
19You can [`read`](crate::Reg::read) this register and get [`tcnt::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
20
21See register [structure](https://stm32-rs.github.io/stm32-rs/STM32MP157.html#DDRPERFM:TCNT)*/
22pub struct TCNTrs;
23impl crate::RegisterSpec for TCNTrs {
24    type Ux = u32;
25}
26///`read()` method returns [`tcnt::R`](R) reader structure
27impl crate::Readable for TCNTrs {}
28///`reset()` method sets TCNT to value 0
29impl crate::Resettable for TCNTrs {}