1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
#[doc = "Register `RD_BLK2_DATA1` reader"]
pub struct R(crate::R<RD_BLK2_DATA1_SPEC>);
impl core::ops::Deref for R {
    type Target = crate::R<RD_BLK2_DATA1_SPEC>;
    #[inline(always)]
    fn deref(&self) -> &Self::Target {
        &self.0
    }
}
impl From<crate::R<RD_BLK2_DATA1_SPEC>> for R {
    #[inline(always)]
    fn from(reader: crate::R<RD_BLK2_DATA1_SPEC>) -> Self {
        R(reader)
    }
}
#[doc = "Field `MAC_ID_HIGH` reader - Store the bit \\[31:47\\] of MAC."]
pub type MAC_ID_HIGH_R = crate::FieldReader<u16, u16>;
#[doc = "Field `WAFER_VERSION` reader - Store wafer version."]
pub type WAFER_VERSION_R = crate::FieldReader<u8, u8>;
#[doc = "Field `PKG_VERSION` reader - Store package version."]
pub type PKG_VERSION_R = crate::FieldReader<u8, u8>;
#[doc = "Field `BLK2_EFUSE_VERSION` reader - Store efuse version."]
pub type BLK2_EFUSE_VERSION_R = crate::FieldReader<u8, u8>;
#[doc = "Field `RF_REF_I_BIAS_CONFIG` reader - Store rf configuration parameters."]
pub type RF_REF_I_BIAS_CONFIG_R = crate::FieldReader<u8, u8>;
#[doc = "Field `LDO_VOL_BIAS_CONFIG_LOW` reader - Store the bit \\[0:2\\] of ido configuration parameters."]
pub type LDO_VOL_BIAS_CONFIG_LOW_R = crate::FieldReader<u8, u8>;
impl R {
    #[doc = "Bits 0:15 - Store the bit \\[31:47\\] of MAC."]
    #[inline(always)]
    pub fn mac_id_high(&self) -> MAC_ID_HIGH_R {
        MAC_ID_HIGH_R::new((self.bits & 0xffff) as u16)
    }
    #[doc = "Bits 16:18 - Store wafer version."]
    #[inline(always)]
    pub fn wafer_version(&self) -> WAFER_VERSION_R {
        WAFER_VERSION_R::new(((self.bits >> 16) & 7) as u8)
    }
    #[doc = "Bits 19:21 - Store package version."]
    #[inline(always)]
    pub fn pkg_version(&self) -> PKG_VERSION_R {
        PKG_VERSION_R::new(((self.bits >> 19) & 7) as u8)
    }
    #[doc = "Bits 22:24 - Store efuse version."]
    #[inline(always)]
    pub fn blk2_efuse_version(&self) -> BLK2_EFUSE_VERSION_R {
        BLK2_EFUSE_VERSION_R::new(((self.bits >> 22) & 7) as u8)
    }
    #[doc = "Bits 25:28 - Store rf configuration parameters."]
    #[inline(always)]
    pub fn rf_ref_i_bias_config(&self) -> RF_REF_I_BIAS_CONFIG_R {
        RF_REF_I_BIAS_CONFIG_R::new(((self.bits >> 25) & 0x0f) as u8)
    }
    #[doc = "Bits 29:31 - Store the bit \\[0:2\\] of ido configuration parameters."]
    #[inline(always)]
    pub fn ldo_vol_bias_config_low(&self) -> LDO_VOL_BIAS_CONFIG_LOW_R {
        LDO_VOL_BIAS_CONFIG_LOW_R::new(((self.bits >> 29) & 7) as u8)
    }
}
#[doc = "Register 1 of BLOCK2.\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 [rd_blk2_data1](index.html) module"]
pub struct RD_BLK2_DATA1_SPEC;
impl crate::RegisterSpec for RD_BLK2_DATA1_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [rd_blk2_data1::R](R) reader structure"]
impl crate::Readable for RD_BLK2_DATA1_SPEC {
    type Reader = R;
}
#[doc = "`reset()` method sets RD_BLK2_DATA1 to value 0"]
impl crate::Resettable for RD_BLK2_DATA1_SPEC {
    const RESET_VALUE: Self::Ux = 0;
}