#[doc = "Register `CORE_0_DRAM0_EXCEPTION_MONITOR_2` reader"]
pub type R = crate::R<CORE_0_DRAM0_EXCEPTION_MONITOR_2_SPEC>;
#[doc = "Field `CORE_0_DRAM0_RECORDING_ADDR_1` reader - reg_core_0_dram0_recording_addr_1"]
pub type CORE_0_DRAM0_RECORDING_ADDR_1_R = crate::FieldReader<u32>;
#[doc = "Field `CORE_0_DRAM0_RECORDING_WR_1` reader - reg_core_0_dram0_recording_wr_1"]
pub type CORE_0_DRAM0_RECORDING_WR_1_R = crate::BitReader;
#[doc = "Field `CORE_0_DRAM0_RECORDING_BYTEEN_1` reader - reg_core_0_dram0_recording_byteen_1"]
pub type CORE_0_DRAM0_RECORDING_BYTEEN_1_R = crate::FieldReader;
impl R {
#[doc = "Bits 0:23 - reg_core_0_dram0_recording_addr_1"]
#[inline(always)]
pub fn core_0_dram0_recording_addr_1(&self) -> CORE_0_DRAM0_RECORDING_ADDR_1_R {
CORE_0_DRAM0_RECORDING_ADDR_1_R::new(self.bits & 0x00ff_ffff)
}
#[doc = "Bit 24 - reg_core_0_dram0_recording_wr_1"]
#[inline(always)]
pub fn core_0_dram0_recording_wr_1(&self) -> CORE_0_DRAM0_RECORDING_WR_1_R {
CORE_0_DRAM0_RECORDING_WR_1_R::new(((self.bits >> 24) & 1) != 0)
}
#[doc = "Bits 25:28 - reg_core_0_dram0_recording_byteen_1"]
#[inline(always)]
pub fn core_0_dram0_recording_byteen_1(&self) -> CORE_0_DRAM0_RECORDING_BYTEEN_1_R {
CORE_0_DRAM0_RECORDING_BYTEEN_1_R::new(((self.bits >> 25) & 0x0f) as u8)
}
}
#[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("CORE_0_DRAM0_EXCEPTION_MONITOR_2")
.field(
"core_0_dram0_recording_addr_1",
&format_args!("{}", self.core_0_dram0_recording_addr_1().bits()),
)
.field(
"core_0_dram0_recording_wr_1",
&format_args!("{}", self.core_0_dram0_recording_wr_1().bit()),
)
.field(
"core_0_dram0_recording_byteen_1",
&format_args!("{}", self.core_0_dram0_recording_byteen_1().bits()),
)
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<CORE_0_DRAM0_EXCEPTION_MONITOR_2_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
self.read().fmt(f)
}
}
#[doc = "exception monitor status register4\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`core_0_dram0_exception_monitor_2::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CORE_0_DRAM0_EXCEPTION_MONITOR_2_SPEC;
impl crate::RegisterSpec for CORE_0_DRAM0_EXCEPTION_MONITOR_2_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`core_0_dram0_exception_monitor_2::R`](R) reader structure"]
impl crate::Readable for CORE_0_DRAM0_EXCEPTION_MONITOR_2_SPEC {}
#[doc = "`reset()` method sets CORE_0_DRAM0_EXCEPTION_MONITOR_2 to value 0"]
impl crate::Resettable for CORE_0_DRAM0_EXCEPTION_MONITOR_2_SPEC {
const RESET_VALUE: Self::Ux = 0;
}