mcxa_pac/eqdc0/
lposh.rs

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