mcxa_pac/eqdc0/
lposh2.rs

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