1#[doc = "Register `STRAP` reader"]
2pub type R = crate::R<STRAP_SPEC>;
3#[doc = "Field `STRAPPING` reader - pad strapping register"]
4pub type STRAPPING_R = crate::FieldReader<u16>;
5impl R {
6 #[doc = "Bits 0:15 - pad strapping register"]
7 #[inline(always)]
8 pub fn strapping(&self) -> STRAPPING_R {
9 STRAPPING_R::new((self.bits & 0xffff) as u16)
10 }
11}
12#[cfg(feature = "impl-register-debug")]
13impl core::fmt::Debug for R {
14 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
15 f.debug_struct("STRAP")
16 .field("strapping", &self.strapping())
17 .finish()
18 }
19}
20#[doc = "pad strapping register\n\nYou can [`read`](crate::Reg::read) this register and get [`strap::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
21pub struct STRAP_SPEC;
22impl crate::RegisterSpec for STRAP_SPEC {
23 type Ux = u32;
24}
25#[doc = "`read()` method returns [`strap::R`](R) reader structure"]
26impl crate::Readable for STRAP_SPEC {}
27#[doc = "`reset()` method sets STRAP to value 0"]
28impl crate::Resettable for STRAP_SPEC {
29 const RESET_VALUE: u32 = 0;
30}