Skip to main content

mcxa_pac/eqdc0/
uposh3.rs

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