#[doc = "Register `MEM_ACCESS_DBUG1` reader"]
pub struct R(crate::R<MEM_ACCESS_DBUG1_SPEC>);
impl core::ops::Deref for R {
type Target = crate::R<MEM_ACCESS_DBUG1_SPEC>;
#[inline(always)]
fn deref(&self) -> &Self::Target {
&self.0
}
}
impl From<crate::R<MEM_ACCESS_DBUG1_SPEC>> for R {
#[inline(always)]
fn from(reader: crate::R<MEM_ACCESS_DBUG1_SPEC>) -> Self {
R(reader)
}
}
#[doc = "Field `INTERNAL_SRAM_MMU_MISS` reader - "]
pub type INTERNAL_SRAM_MMU_MISS_R = crate::FieldReader;
#[doc = "Field `ARB_IA` reader - "]
pub type ARB_IA_R = crate::FieldReader;
#[doc = "Field `PIDGEN_IA` reader - "]
pub type PIDGEN_IA_R = crate::FieldReader;
#[doc = "Field `AHB_ACCESS_DENY` reader - "]
pub type AHB_ACCESS_DENY_R = crate::BitReader;
#[doc = "Field `AHBLITE_ACCESS_DENY` reader - "]
pub type AHBLITE_ACCESS_DENY_R = crate::BitReader;
#[doc = "Field `AHBLITE_IA` reader - "]
pub type AHBLITE_IA_R = crate::BitReader;
impl R {
#[doc = "Bits 0:3"]
#[inline(always)]
pub fn internal_sram_mmu_miss(&self) -> INTERNAL_SRAM_MMU_MISS_R {
INTERNAL_SRAM_MMU_MISS_R::new((self.bits & 0x0f) as u8)
}
#[doc = "Bits 4:5"]
#[inline(always)]
pub fn arb_ia(&self) -> ARB_IA_R {
ARB_IA_R::new(((self.bits >> 4) & 3) as u8)
}
#[doc = "Bits 6:7"]
#[inline(always)]
pub fn pidgen_ia(&self) -> PIDGEN_IA_R {
PIDGEN_IA_R::new(((self.bits >> 6) & 3) as u8)
}
#[doc = "Bit 8"]
#[inline(always)]
pub fn ahb_access_deny(&self) -> AHB_ACCESS_DENY_R {
AHB_ACCESS_DENY_R::new(((self.bits >> 8) & 1) != 0)
}
#[doc = "Bit 9"]
#[inline(always)]
pub fn ahblite_access_deny(&self) -> AHBLITE_ACCESS_DENY_R {
AHBLITE_ACCESS_DENY_R::new(((self.bits >> 9) & 1) != 0)
}
#[doc = "Bit 10"]
#[inline(always)]
pub fn ahblite_ia(&self) -> AHBLITE_IA_R {
AHBLITE_IA_R::new(((self.bits >> 10) & 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("MEM_ACCESS_DBUG1")
.field(
"internal_sram_mmu_miss",
&format_args!("{}", self.internal_sram_mmu_miss().bits()),
)
.field("arb_ia", &format_args!("{}", self.arb_ia().bits()))
.field("pidgen_ia", &format_args!("{}", self.pidgen_ia().bits()))
.field(
"ahb_access_deny",
&format_args!("{}", self.ahb_access_deny().bit()),
)
.field(
"ahblite_access_deny",
&format_args!("{}", self.ahblite_access_deny().bit()),
)
.field("ahblite_ia", &format_args!("{}", self.ahblite_ia().bit()))
.finish()
}
}
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<MEM_ACCESS_DBUG1_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
self.read().fmt(f)
}
}
#[doc = "\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [mem_access_dbug1](index.html) module"]
pub struct MEM_ACCESS_DBUG1_SPEC;
impl crate::RegisterSpec for MEM_ACCESS_DBUG1_SPEC {
type Ux = u32;
}
#[doc = "`read()` method returns [mem_access_dbug1::R](R) reader structure"]
impl crate::Readable for MEM_ACCESS_DBUG1_SPEC {
type Reader = R;
}
#[doc = "`reset()` method sets MEM_ACCESS_DBUG1 to value 0"]
impl crate::Resettable for MEM_ACCESS_DBUG1_SPEC {
const RESET_VALUE: Self::Ux = 0;
}