Skip to main content

mcxa_pac/eqdc0/
posdperbfr.rs

1#[doc = "Register `POSDPERBFR` reader"]
2pub type R = crate::R<PosdperbfrSpec>;
3#[doc = "Field `POSDPERBFR` reader - Position difference period buffer"]
4pub type PosdperbfrR = crate::FieldReader<u16>;
5impl R {
6    #[doc = "Bits 0:15 - Position difference period buffer"]
7    #[inline(always)]
8    pub fn posdperbfr(&self) -> PosdperbfrR {
9        PosdperbfrR::new(self.bits)
10    }
11}
12#[cfg(feature = "debug")]
13impl core::fmt::Debug for R {
14    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15        f.debug_struct("POSDPERBFR")
16            .field("posdperbfr", &self.posdperbfr())
17            .finish()
18    }
19}
20#[doc = "Position Difference Period Buffer Register\n\nYou can [`read`](crate::Reg::read) this register and get [`posdperbfr::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct PosdperbfrSpec;
22impl crate::RegisterSpec for PosdperbfrSpec {
23    type Ux = u16;
24}
25#[doc = "`read()` method returns [`posdperbfr::R`](R) reader structure"]
26impl crate::Readable for PosdperbfrSpec {}
27#[doc = "`reset()` method sets POSDPERBFR to value 0xffff"]
28impl crate::Resettable for PosdperbfrSpec {
29    const RESET_VALUE: u16 = 0xffff;
30}