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