#[doc = "Register `RD_MAC_SPI_SYS_3` reader"]
pub type R = crate::R<RD_MAC_SPI_SYS_3_SPEC>;
#[doc = "Field `SPI_PAD_CONF_2` reader - Stores the second part of SPI_PAD_CONF."]
pub type SPI_PAD_CONF_2_R = crate::FieldReader<u32>;
#[doc = "Field `SYS_DATA_PART0_0` reader - Stores the fist 14 bits of the zeroth part of system data."]
pub type SYS_DATA_PART0_0_R = crate::FieldReader<u16>;
impl R {
#[doc = "Bits 0:17 - Stores the second part of SPI_PAD_CONF."]
#[inline(always)]
pub fn spi_pad_conf_2(&self) -> SPI_PAD_CONF_2_R {
SPI_PAD_CONF_2_R::new(self.bits & 0x0003_ffff)
}
#[doc = "Bits 18:31 - Stores the fist 14 bits of the zeroth part of system data."]
#[inline(always)]
pub fn sys_data_part0_0(&self) -> SYS_DATA_PART0_0_R {
SYS_DATA_PART0_0_R::new(((self.bits >> 18) & 0x3fff) as u16)
}
}
#[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_MAC_SPI_SYS_3")
.field("spi_pad_conf_2", &self.spi_pad_conf_2())
.field("sys_data_part0_0", &self.sys_data_part0_0())
.finish()
}
}
#[doc = "BLOCK1 data register 3.\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`rd_mac_spi_sys_3::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct RD_MAC_SPI_SYS_3_SPEC;
impl crate::RegisterSpec for RD_MAC_SPI_SYS_3_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`rd_mac_spi_sys_3::R`](R) reader structure"]
impl crate::Readable for RD_MAC_SPI_SYS_3_SPEC {}
#[doc = "`reset()` method sets RD_MAC_SPI_SYS_3 to value 0"]
impl crate::Resettable for RD_MAC_SPI_SYS_3_SPEC {
const RESET_VALUE: u32 = 0;
}