mcxa_pac/eqdc0/
posdper.rs1#[doc = "Register `POSDPER` reader"]
2pub type R = crate::R<PosdperSpec>;
3#[doc = "Field `POSDPER` reader - Position difference period"]
4pub type PosdperR = crate::FieldReader<u16>;
5impl R {
6 #[doc = "Bits 0:15 - Position difference period"]
7 #[inline(always)]
8 pub fn posdper(&self) -> PosdperR {
9 PosdperR::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("POSDPER").field("posdper", &self.posdper()).finish()
16 }
17}
18#[doc = "Position Difference Period Counter Register\n\nYou can [`read`](crate::Reg::read) this register and get [`posdper::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
19pub struct PosdperSpec;
20impl crate::RegisterSpec for PosdperSpec {
21 type Ux = u16;
22}
23#[doc = "`read()` method returns [`posdper::R`](R) reader structure"]
24impl crate::Readable for PosdperSpec {}
25#[doc = "`reset()` method sets POSDPER to value 0xffff"]
26impl crate::Resettable for PosdperSpec {
27 const RESET_VALUE: u16 = 0xffff;
28}