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