esp32s3/efuse/
rd_mac_spi_sys_1.rs1#[doc = "Register `RD_MAC_SPI_SYS_1` reader"]
2pub type R = crate::R<RD_MAC_SPI_SYS_1_SPEC>;
3#[doc = "Field `MAC_1` reader - Stores the high 16 bits of MAC address."]
4pub type MAC_1_R = crate::FieldReader<u16>;
5#[doc = "Field `SPI_PAD_CONF_0` reader - Stores the zeroth part of SPI_PAD_CONF."]
6pub type SPI_PAD_CONF_0_R = crate::FieldReader<u16>;
7impl R {
8 #[doc = "Bits 0:15 - Stores the high 16 bits of MAC address."]
9 #[inline(always)]
10 pub fn mac_1(&self) -> MAC_1_R {
11 MAC_1_R::new((self.bits & 0xffff) as u16)
12 }
13 #[doc = "Bits 16:31 - Stores the zeroth part of SPI_PAD_CONF."]
14 #[inline(always)]
15 pub fn spi_pad_conf_0(&self) -> SPI_PAD_CONF_0_R {
16 SPI_PAD_CONF_0_R::new(((self.bits >> 16) & 0xffff) 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_1")
23 .field("mac_1", &self.mac_1())
24 .field("spi_pad_conf_0", &self.spi_pad_conf_0())
25 .finish()
26 }
27}
28#[doc = "BLOCK1 data register 1.\n\nYou can [`read`](crate::Reg::read) this register and get [`rd_mac_spi_sys_1::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
29pub struct RD_MAC_SPI_SYS_1_SPEC;
30impl crate::RegisterSpec for RD_MAC_SPI_SYS_1_SPEC {
31 type Ux = u32;
32}
33#[doc = "`read()` method returns [`rd_mac_spi_sys_1::R`](R) reader structure"]
34impl crate::Readable for RD_MAC_SPI_SYS_1_SPEC {}
35#[doc = "`reset()` method sets RD_MAC_SPI_SYS_1 to value 0"]
36impl crate::Resettable for RD_MAC_SPI_SYS_1_SPEC {
37 const RESET_VALUE: u32 = 0;
38}