#[doc = "Register `CORE_0_MONTR_ENA` reader"]
pub type R = crate::R<CORE_0_MONTR_ENA_SPEC>;
#[doc = "Register `CORE_0_MONTR_ENA` writer"]
pub type W = crate::W<CORE_0_MONTR_ENA_SPEC>;
#[doc = "Field `CORE_0_AREA_DRAM0_0_RD_ENA` reader - Core0 dram0 area0 read monitor enable"]
pub type CORE_0_AREA_DRAM0_0_RD_ENA_R = crate::BitReader;
#[doc = "Field `CORE_0_AREA_DRAM0_0_RD_ENA` writer - Core0 dram0 area0 read monitor enable"]
pub type CORE_0_AREA_DRAM0_0_RD_ENA_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `CORE_0_AREA_DRAM0_0_WR_ENA` reader - Core0 dram0 area0 write monitor enable"]
pub type CORE_0_AREA_DRAM0_0_WR_ENA_R = crate::BitReader;
#[doc = "Field `CORE_0_AREA_DRAM0_0_WR_ENA` writer - Core0 dram0 area0 write monitor enable"]
pub type CORE_0_AREA_DRAM0_0_WR_ENA_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `CORE_0_AREA_DRAM0_1_RD_ENA` reader - Core0 dram0 area1 read monitor enable"]
pub type CORE_0_AREA_DRAM0_1_RD_ENA_R = crate::BitReader;
#[doc = "Field `CORE_0_AREA_DRAM0_1_RD_ENA` writer - Core0 dram0 area1 read monitor enable"]
pub type CORE_0_AREA_DRAM0_1_RD_ENA_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `CORE_0_AREA_DRAM0_1_WR_ENA` reader - Core0 dram0 area1 write monitor enable"]
pub type CORE_0_AREA_DRAM0_1_WR_ENA_R = crate::BitReader;
#[doc = "Field `CORE_0_AREA_DRAM0_1_WR_ENA` writer - Core0 dram0 area1 write monitor enable"]
pub type CORE_0_AREA_DRAM0_1_WR_ENA_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `CORE_0_AREA_PIF_0_RD_ENA` reader - Core0 PIF area0 read monitor enable"]
pub type CORE_0_AREA_PIF_0_RD_ENA_R = crate::BitReader;
#[doc = "Field `CORE_0_AREA_PIF_0_RD_ENA` writer - Core0 PIF area0 read monitor enable"]
pub type CORE_0_AREA_PIF_0_RD_ENA_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `CORE_0_AREA_PIF_0_WR_ENA` reader - Core0 PIF area0 write monitor enable"]
pub type CORE_0_AREA_PIF_0_WR_ENA_R = crate::BitReader;
#[doc = "Field `CORE_0_AREA_PIF_0_WR_ENA` writer - Core0 PIF area0 write monitor enable"]
pub type CORE_0_AREA_PIF_0_WR_ENA_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `CORE_0_AREA_PIF_1_RD_ENA` reader - Core0 PIF area1 read monitor enable"]
pub type CORE_0_AREA_PIF_1_RD_ENA_R = crate::BitReader;
#[doc = "Field `CORE_0_AREA_PIF_1_RD_ENA` writer - Core0 PIF area1 read monitor enable"]
pub type CORE_0_AREA_PIF_1_RD_ENA_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `CORE_0_AREA_PIF_1_WR_ENA` reader - Core0 PIF area1 write monitor enable"]
pub type CORE_0_AREA_PIF_1_WR_ENA_R = crate::BitReader;
#[doc = "Field `CORE_0_AREA_PIF_1_WR_ENA` writer - Core0 PIF area1 write monitor enable"]
pub type CORE_0_AREA_PIF_1_WR_ENA_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `CORE_0_SP_SPILL_MIN_ENA` reader - Core0 stackpoint underflow monitor enable"]
pub type CORE_0_SP_SPILL_MIN_ENA_R = crate::BitReader;
#[doc = "Field `CORE_0_SP_SPILL_MIN_ENA` writer - Core0 stackpoint underflow monitor enable"]
pub type CORE_0_SP_SPILL_MIN_ENA_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `CORE_0_SP_SPILL_MAX_ENA` reader - Core0 stackpoint overflow monitor enable"]
pub type CORE_0_SP_SPILL_MAX_ENA_R = crate::BitReader;
#[doc = "Field `CORE_0_SP_SPILL_MAX_ENA` writer - Core0 stackpoint overflow monitor enable"]
pub type CORE_0_SP_SPILL_MAX_ENA_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `CORE_0_IRAM0_EXCEPTION_MONITOR_ENA` reader - IBUS busy monitor enable"]
pub type CORE_0_IRAM0_EXCEPTION_MONITOR_ENA_R = crate::BitReader;
#[doc = "Field `CORE_0_IRAM0_EXCEPTION_MONITOR_ENA` writer - IBUS busy monitor enable"]
pub type CORE_0_IRAM0_EXCEPTION_MONITOR_ENA_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
#[doc = "Field `CORE_0_DRAM0_EXCEPTION_MONITOR_ENA` reader - DBUS busy monitor enbale"]
pub type CORE_0_DRAM0_EXCEPTION_MONITOR_ENA_R = crate::BitReader;
#[doc = "Field `CORE_0_DRAM0_EXCEPTION_MONITOR_ENA` writer - DBUS busy monitor enbale"]
pub type CORE_0_DRAM0_EXCEPTION_MONITOR_ENA_W<'a, REG, const O: u8> = crate::BitWriter<'a, REG, O>;
impl R {
#[doc = "Bit 0 - Core0 dram0 area0 read monitor enable"]
#[inline(always)]
pub fn core_0_area_dram0_0_rd_ena(&self) -> CORE_0_AREA_DRAM0_0_RD_ENA_R {
CORE_0_AREA_DRAM0_0_RD_ENA_R::new((self.bits & 1) != 0)
}
#[doc = "Bit 1 - Core0 dram0 area0 write monitor enable"]
#[inline(always)]
pub fn core_0_area_dram0_0_wr_ena(&self) -> CORE_0_AREA_DRAM0_0_WR_ENA_R {
CORE_0_AREA_DRAM0_0_WR_ENA_R::new(((self.bits >> 1) & 1) != 0)
}
#[doc = "Bit 2 - Core0 dram0 area1 read monitor enable"]
#[inline(always)]
pub fn core_0_area_dram0_1_rd_ena(&self) -> CORE_0_AREA_DRAM0_1_RD_ENA_R {
CORE_0_AREA_DRAM0_1_RD_ENA_R::new(((self.bits >> 2) & 1) != 0)
}
#[doc = "Bit 3 - Core0 dram0 area1 write monitor enable"]
#[inline(always)]
pub fn core_0_area_dram0_1_wr_ena(&self) -> CORE_0_AREA_DRAM0_1_WR_ENA_R {
CORE_0_AREA_DRAM0_1_WR_ENA_R::new(((self.bits >> 3) & 1) != 0)
}
#[doc = "Bit 4 - Core0 PIF area0 read monitor enable"]
#[inline(always)]
pub fn core_0_area_pif_0_rd_ena(&self) -> CORE_0_AREA_PIF_0_RD_ENA_R {
CORE_0_AREA_PIF_0_RD_ENA_R::new(((self.bits >> 4) & 1) != 0)
}
#[doc = "Bit 5 - Core0 PIF area0 write monitor enable"]
#[inline(always)]
pub fn core_0_area_pif_0_wr_ena(&self) -> CORE_0_AREA_PIF_0_WR_ENA_R {
CORE_0_AREA_PIF_0_WR_ENA_R::new(((self.bits >> 5) & 1) != 0)
}
#[doc = "Bit 6 - Core0 PIF area1 read monitor enable"]
#[inline(always)]
pub fn core_0_area_pif_1_rd_ena(&self) -> CORE_0_AREA_PIF_1_RD_ENA_R {
CORE_0_AREA_PIF_1_RD_ENA_R::new(((self.bits >> 6) & 1) != 0)
}
#[doc = "Bit 7 - Core0 PIF area1 write monitor enable"]
#[inline(always)]
pub fn core_0_area_pif_1_wr_ena(&self) -> CORE_0_AREA_PIF_1_WR_ENA_R {
CORE_0_AREA_PIF_1_WR_ENA_R::new(((self.bits >> 7) & 1) != 0)
}
#[doc = "Bit 8 - Core0 stackpoint underflow monitor enable"]
#[inline(always)]
pub fn core_0_sp_spill_min_ena(&self) -> CORE_0_SP_SPILL_MIN_ENA_R {
CORE_0_SP_SPILL_MIN_ENA_R::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9 - Core0 stackpoint overflow monitor enable"]
#[inline(always)]
pub fn core_0_sp_spill_max_ena(&self) -> CORE_0_SP_SPILL_MAX_ENA_R {
CORE_0_SP_SPILL_MAX_ENA_R::new(((self.bits >> 9) & 1) != 0)
}
#[doc = "Bit 10 - IBUS busy monitor enable"]
#[inline(always)]
pub fn core_0_iram0_exception_monitor_ena(&self) -> CORE_0_IRAM0_EXCEPTION_MONITOR_ENA_R {
CORE_0_IRAM0_EXCEPTION_MONITOR_ENA_R::new(((self.bits >> 10) & 1) != 0)
}
#[doc = "Bit 11 - DBUS busy monitor enbale"]
#[inline(always)]
pub fn core_0_dram0_exception_monitor_ena(&self) -> CORE_0_DRAM0_EXCEPTION_MONITOR_ENA_R {
CORE_0_DRAM0_EXCEPTION_MONITOR_ENA_R::new(((self.bits >> 11) & 1) != 0)
}
}
#[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_MONTR_ENA")
.field(
"core_0_area_dram0_0_rd_ena",
&format_args!("{}", self.core_0_area_dram0_0_rd_ena().bit()),
)
.field(
"core_0_area_dram0_0_wr_ena",
&format_args!("{}", self.core_0_area_dram0_0_wr_ena().bit()),
)
.field(
"core_0_area_dram0_1_rd_ena",
&format_args!("{}", self.core_0_area_dram0_1_rd_ena().bit()),
)
.field(
"core_0_area_dram0_1_wr_ena",
&format_args!("{}", self.core_0_area_dram0_1_wr_ena().bit()),
)
.field(
"core_0_area_pif_0_rd_ena",
&format_args!("{}", self.core_0_area_pif_0_rd_ena().bit()),
)
.field(
"core_0_area_pif_0_wr_ena",
&format_args!("{}", self.core_0_area_pif_0_wr_ena().bit()),
)
.field(
"core_0_area_pif_1_rd_ena",
&format_args!("{}", self.core_0_area_pif_1_rd_ena().bit()),
)
.field(
"core_0_area_pif_1_wr_ena",
&format_args!("{}", self.core_0_area_pif_1_wr_ena().bit()),
)
.field(
"core_0_sp_spill_min_ena",
&format_args!("{}", self.core_0_sp_spill_min_ena().bit()),
)
.field(
"core_0_sp_spill_max_ena",
&format_args!("{}", self.core_0_sp_spill_max_ena().bit()),
)
.field(
"core_0_iram0_exception_monitor_ena",
&format_args!("{}", self.core_0_iram0_exception_monitor_ena().bit()),
)
.field(
"core_0_dram0_exception_monitor_ena",
&format_args!("{}", self.core_0_dram0_exception_monitor_ena().bit()),
)
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<CORE_0_MONTR_ENA_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
self.read().fmt(f)
}
}
impl W {
#[doc = "Bit 0 - Core0 dram0 area0 read monitor enable"]
#[inline(always)]
#[must_use]
pub fn core_0_area_dram0_0_rd_ena(
&mut self,
) -> CORE_0_AREA_DRAM0_0_RD_ENA_W<CORE_0_MONTR_ENA_SPEC, 0> {
CORE_0_AREA_DRAM0_0_RD_ENA_W::new(self)
}
#[doc = "Bit 1 - Core0 dram0 area0 write monitor enable"]
#[inline(always)]
#[must_use]
pub fn core_0_area_dram0_0_wr_ena(
&mut self,
) -> CORE_0_AREA_DRAM0_0_WR_ENA_W<CORE_0_MONTR_ENA_SPEC, 1> {
CORE_0_AREA_DRAM0_0_WR_ENA_W::new(self)
}
#[doc = "Bit 2 - Core0 dram0 area1 read monitor enable"]
#[inline(always)]
#[must_use]
pub fn core_0_area_dram0_1_rd_ena(
&mut self,
) -> CORE_0_AREA_DRAM0_1_RD_ENA_W<CORE_0_MONTR_ENA_SPEC, 2> {
CORE_0_AREA_DRAM0_1_RD_ENA_W::new(self)
}
#[doc = "Bit 3 - Core0 dram0 area1 write monitor enable"]
#[inline(always)]
#[must_use]
pub fn core_0_area_dram0_1_wr_ena(
&mut self,
) -> CORE_0_AREA_DRAM0_1_WR_ENA_W<CORE_0_MONTR_ENA_SPEC, 3> {
CORE_0_AREA_DRAM0_1_WR_ENA_W::new(self)
}
#[doc = "Bit 4 - Core0 PIF area0 read monitor enable"]
#[inline(always)]
#[must_use]
pub fn core_0_area_pif_0_rd_ena(
&mut self,
) -> CORE_0_AREA_PIF_0_RD_ENA_W<CORE_0_MONTR_ENA_SPEC, 4> {
CORE_0_AREA_PIF_0_RD_ENA_W::new(self)
}
#[doc = "Bit 5 - Core0 PIF area0 write monitor enable"]
#[inline(always)]
#[must_use]
pub fn core_0_area_pif_0_wr_ena(
&mut self,
) -> CORE_0_AREA_PIF_0_WR_ENA_W<CORE_0_MONTR_ENA_SPEC, 5> {
CORE_0_AREA_PIF_0_WR_ENA_W::new(self)
}
#[doc = "Bit 6 - Core0 PIF area1 read monitor enable"]
#[inline(always)]
#[must_use]
pub fn core_0_area_pif_1_rd_ena(
&mut self,
) -> CORE_0_AREA_PIF_1_RD_ENA_W<CORE_0_MONTR_ENA_SPEC, 6> {
CORE_0_AREA_PIF_1_RD_ENA_W::new(self)
}
#[doc = "Bit 7 - Core0 PIF area1 write monitor enable"]
#[inline(always)]
#[must_use]
pub fn core_0_area_pif_1_wr_ena(
&mut self,
) -> CORE_0_AREA_PIF_1_WR_ENA_W<CORE_0_MONTR_ENA_SPEC, 7> {
CORE_0_AREA_PIF_1_WR_ENA_W::new(self)
}
#[doc = "Bit 8 - Core0 stackpoint underflow monitor enable"]
#[inline(always)]
#[must_use]
pub fn core_0_sp_spill_min_ena(
&mut self,
) -> CORE_0_SP_SPILL_MIN_ENA_W<CORE_0_MONTR_ENA_SPEC, 8> {
CORE_0_SP_SPILL_MIN_ENA_W::new(self)
}
#[doc = "Bit 9 - Core0 stackpoint overflow monitor enable"]
#[inline(always)]
#[must_use]
pub fn core_0_sp_spill_max_ena(
&mut self,
) -> CORE_0_SP_SPILL_MAX_ENA_W<CORE_0_MONTR_ENA_SPEC, 9> {
CORE_0_SP_SPILL_MAX_ENA_W::new(self)
}
#[doc = "Bit 10 - IBUS busy monitor enable"]
#[inline(always)]
#[must_use]
pub fn core_0_iram0_exception_monitor_ena(
&mut self,
) -> CORE_0_IRAM0_EXCEPTION_MONITOR_ENA_W<CORE_0_MONTR_ENA_SPEC, 10> {
CORE_0_IRAM0_EXCEPTION_MONITOR_ENA_W::new(self)
}
#[doc = "Bit 11 - DBUS busy monitor enbale"]
#[inline(always)]
#[must_use]
pub fn core_0_dram0_exception_monitor_ena(
&mut self,
) -> CORE_0_DRAM0_EXCEPTION_MONITOR_ENA_W<CORE_0_MONTR_ENA_SPEC, 11> {
CORE_0_DRAM0_EXCEPTION_MONITOR_ENA_W::new(self)
}
#[doc = "Writes raw bits to the register."]
#[inline(always)]
pub unsafe fn bits(&mut self, bits: u32) -> &mut Self {
self.bits = bits;
self
}
}
#[doc = "core0 monitor enable configuration register\n\nYou can [`read`](crate::generic::Reg::read) this register and get [`core_0_montr_ena::R`](R). You can [`reset`](crate::generic::Reg::reset), [`write`](crate::generic::Reg::write), [`write_with_zero`](crate::generic::Reg::write_with_zero) this register using [`core_0_montr_ena::W`](W). You can also [`modify`](crate::generic::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct CORE_0_MONTR_ENA_SPEC;
impl crate::RegisterSpec for CORE_0_MONTR_ENA_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [`core_0_montr_ena::R`](R) reader structure"]
impl crate::Readable for CORE_0_MONTR_ENA_SPEC {}
#[doc = "`write(|w| ..)` method takes [`core_0_montr_ena::W`](W) writer structure"]
impl crate::Writable for CORE_0_MONTR_ENA_SPEC {
const ZERO_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
const ONE_TO_MODIFY_FIELDS_BITMAP: Self::Ux = 0;
}
#[doc = "`reset()` method sets CORE_0_MONTR_ENA to value 0"]
impl crate::Resettable for CORE_0_MONTR_ENA_SPEC {
const RESET_VALUE: Self::Ux = 0;
}