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
#[doc = "Register `RD_BLK2_DATA3` reader"]
pub type R = crate::R<RD_BLK2_DATA3_SPEC>;
#[doc = "Field `PVT_HIGH` reader - Store the bit \\[5:14\\] of pvt."]
pub type PVT_HIGH_R = crate::FieldReader<u16>;
#[doc = "Field `ADC_CALIBRATION_0` reader - Store the bit \\[0:21\\] of ADC calibration data."]
pub type ADC_CALIBRATION_0_R = crate::FieldReader<u32>;
impl R {
    #[doc = "Bits 0:9 - Store the bit \\[5:14\\] of pvt."]
    #[inline(always)]
    pub fn pvt_high(&self) -> PVT_HIGH_R {
        PVT_HIGH_R::new((self.bits & 0x03ff) as u16)
    }
    #[doc = "Bits 10:31 - Store the bit \\[0:21\\] of ADC calibration data."]
    #[inline(always)]
    pub fn adc_calibration_0(&self) -> ADC_CALIBRATION_0_R {
        ADC_CALIBRATION_0_R::new((self.bits >> 10) & 0x003f_ffff)
    }
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for R {
    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
        f.debug_struct("RD_BLK2_DATA3")
            .field("pvt_high", &self.pvt_high())
            .field("adc_calibration_0", &self.adc_calibration_0())
            .finish()
    }
}
#[doc = "Register 3 of BLOCK2.\n\nYou can [`read`](crate::Reg::read) this register and get [`rd_blk2_data3::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RD_BLK2_DATA3_SPEC;
impl crate::RegisterSpec for RD_BLK2_DATA3_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`rd_blk2_data3::R`](R) reader structure"]
impl crate::Readable for RD_BLK2_DATA3_SPEC {}
#[doc = "`reset()` method sets RD_BLK2_DATA3 to value 0"]
impl crate::Resettable for RD_BLK2_DATA3_SPEC {
    const RESET_VALUE: u32 = 0;
}