nrf52840_pac/ficr/nfc/
tagheader3.rs
1#[doc = "Register `TAGHEADER3` reader"]
2pub struct R(crate::R<TAGHEADER3_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<TAGHEADER3_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<TAGHEADER3_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<TAGHEADER3_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `UD12` reader - Unique identifier byte 12"]
17pub type UD12_R = crate::FieldReader<u8, u8>;
18#[doc = "Field `UD13` reader - Unique identifier byte 13"]
19pub type UD13_R = crate::FieldReader<u8, u8>;
20#[doc = "Field `UD14` reader - Unique identifier byte 14"]
21pub type UD14_R = crate::FieldReader<u8, u8>;
22#[doc = "Field `UD15` reader - Unique identifier byte 15"]
23pub type UD15_R = crate::FieldReader<u8, u8>;
24impl R {
25 #[doc = "Bits 0:7 - Unique identifier byte 12"]
26 #[inline(always)]
27 pub fn ud12(&self) -> UD12_R {
28 UD12_R::new((self.bits & 0xff) as u8)
29 }
30 #[doc = "Bits 8:15 - Unique identifier byte 13"]
31 #[inline(always)]
32 pub fn ud13(&self) -> UD13_R {
33 UD13_R::new(((self.bits >> 8) & 0xff) as u8)
34 }
35 #[doc = "Bits 16:23 - Unique identifier byte 14"]
36 #[inline(always)]
37 pub fn ud14(&self) -> UD14_R {
38 UD14_R::new(((self.bits >> 16) & 0xff) as u8)
39 }
40 #[doc = "Bits 24:31 - Unique identifier byte 15"]
41 #[inline(always)]
42 pub fn ud15(&self) -> UD15_R {
43 UD15_R::new(((self.bits >> 24) & 0xff) as u8)
44 }
45}
46#[doc = "Default header for NFC tag. Software can read these values to populate NFCID1_3RD_LAST, NFCID1_2ND_LAST and NFCID1_LAST.\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [tagheader3](index.html) module"]
47pub struct TAGHEADER3_SPEC;
48impl crate::RegisterSpec for TAGHEADER3_SPEC {
49 type Ux = u32;
50}
51#[doc = "`read()` method returns [tagheader3::R](R) reader structure"]
52impl crate::Readable for TAGHEADER3_SPEC {
53 type Reader = R;
54}
55#[doc = "`reset()` method sets TAGHEADER3 to value 0xffff_ffff"]
56impl crate::Resettable for TAGHEADER3_SPEC {
57 #[inline(always)]
58 fn reset_value() -> Self::Ux {
59 0xffff_ffff
60 }
61}