stm32l4x2_pac/dfsdm/flt/
cnvtimr.rs

1#[doc = r" Value read from the register"]
2pub struct R {
3    bits: u32,
4}
5impl super::CNVTIMR {
6    #[doc = r" Reads the contents of the register"]
7    #[inline]
8    pub fn read(&self) -> R {
9        R {
10            bits: self.register.get(),
11        }
12    }
13}
14#[doc = r" Value of the field"]
15pub struct CNVCNTR {
16    bits: u32,
17}
18impl CNVCNTR {
19    #[doc = r" Value of the field as raw bits"]
20    #[inline]
21    pub fn bits(&self) -> u32 {
22        self.bits
23    }
24}
25impl R {
26    #[doc = r" Value of the register as raw bits"]
27    #[inline]
28    pub fn bits(&self) -> u32 {
29        self.bits
30    }
31    #[doc = "Bits 4:31 - 28-bit timer counting conversion time t = CNVCNT\\[27:0\\] / fDFSDM_CKIN"]
32    #[inline]
33    pub fn cnvcnt(&self) -> CNVCNTR {
34        let bits = {
35            const MASK: u32 = 268435455;
36            const OFFSET: u8 = 4;
37            ((self.bits >> OFFSET) & MASK as u32) as u32
38        };
39        CNVCNTR { bits }
40    }
41}