esp32/efuse/
blk3_rdata0.rs

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