esp32c3/efuse/
rd_mac_spi_sys_3.rs1#[doc = "Register `RD_MAC_SPI_SYS_3` reader"]
2pub type R = crate::R<RD_MAC_SPI_SYS_3_SPEC>;
3#[doc = "Field `SPI_PAD_CONF_2` reader - Stores the second part of SPI_PAD_CONF."]
4pub type SPI_PAD_CONF_2_R = crate::FieldReader<u32>;
5#[doc = "Field `SYS_DATA_PART0_0` reader - Stores the fist 14 bits of the zeroth part of system data."]
6pub type SYS_DATA_PART0_0_R = crate::FieldReader<u16>;
7impl R {
8 #[doc = "Bits 0:17 - Stores the second part of SPI_PAD_CONF."]
9 #[inline(always)]
10 pub fn spi_pad_conf_2(&self) -> SPI_PAD_CONF_2_R {
11 SPI_PAD_CONF_2_R::new(self.bits & 0x0003_ffff)
12 }
13 #[doc = "Bits 18:31 - Stores the fist 14 bits of the zeroth part of system data."]
14 #[inline(always)]
15 pub fn sys_data_part0_0(&self) -> SYS_DATA_PART0_0_R {
16 SYS_DATA_PART0_0_R::new(((self.bits >> 18) & 0x3fff) as u16)
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("RD_MAC_SPI_SYS_3")
23 .field("spi_pad_conf_2", &self.spi_pad_conf_2())
24 .field("sys_data_part0_0", &self.sys_data_part0_0())
25 .finish()
26 }
27}
28#[doc = "BLOCK1 data register 3.\n\nYou can [`read`](crate::Reg::read) this register and get [`rd_mac_spi_sys_3::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct RD_MAC_SPI_SYS_3_SPEC;
30impl crate::RegisterSpec for RD_MAC_SPI_SYS_3_SPEC {
31 type Ux = u32;
32}
33#[doc = "`read()` method returns [`rd_mac_spi_sys_3::R`](R) reader structure"]
34impl crate::Readable for RD_MAC_SPI_SYS_3_SPEC {}
35#[doc = "`reset()` method sets RD_MAC_SPI_SYS_3 to value 0"]
36impl crate::Resettable for RD_MAC_SPI_SYS_3_SPEC {}