mcxa_pac/eqdc0/
uposh1.rs

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