#[doc = "Register `LOG_DATA_MASK` reader"]
pub type R = crate::R<LOG_DATA_MASK_SPEC>;
#[doc = "Register `LOG_DATA_MASK` writer"]
pub type W = crate::W<LOG_DATA_MASK_SPEC>;
#[doc = "Field `LOG_DATA_MASK` reader - Configures which byte(s) in MEM_MONITOR_LOG_CHECK_DATA_REG to mask.bit\\[0\\]: Configures whether to mask the least significant byte of MEM_MONITOR_LOG_CHECK_DATA_REG.\\\\ 0: Not mask \\\\ 1: Mask\\\\ bit\\[1\\]: Configures whether to mask the second least significant byte of MEM_MONITOR_LOG_CHECK_DATA_REG. \\\\ 0: Not mask \\\\ 1: Mask\\\\ bit\\[2\\]: Configures whether to mask the second most significant byte of MEM_MONITOR_LOG_CHECK_DATA_REG. \\\\ 0: Not mask \\\\ 1: Mask\\\\ bit\\[3\\]: Configures whether to mask the most significant byte of MEM_MONITOR_LOG_CHECK_DATA_REG. \\\\ 0: Not mask \\\\ 1: Mask\\\\"]
pub type LOG_DATA_MASK_R = crate::FieldReader;
#[doc = "Field `LOG_DATA_MASK` writer - Configures which byte(s) in MEM_MONITOR_LOG_CHECK_DATA_REG to mask.bit\\[0\\]: Configures whether to mask the least significant byte of MEM_MONITOR_LOG_CHECK_DATA_REG.\\\\ 0: Not mask \\\\ 1: Mask\\\\ bit\\[1\\]: Configures whether to mask the second least significant byte of MEM_MONITOR_LOG_CHECK_DATA_REG. \\\\ 0: Not mask \\\\ 1: Mask\\\\ bit\\[2\\]: Configures whether to mask the second most significant byte of MEM_MONITOR_LOG_CHECK_DATA_REG. \\\\ 0: Not mask \\\\ 1: Mask\\\\ bit\\[3\\]: Configures whether to mask the most significant byte of MEM_MONITOR_LOG_CHECK_DATA_REG. \\\\ 0: Not mask \\\\ 1: Mask\\\\"]
pub type LOG_DATA_MASK_W<'a, REG> = crate::FieldWriter<'a, REG, 4>;
impl R {
    #[doc = "Bits 0:3 - Configures which byte(s) in MEM_MONITOR_LOG_CHECK_DATA_REG to mask.bit\\[0\\]: Configures whether to mask the least significant byte of MEM_MONITOR_LOG_CHECK_DATA_REG.\\\\ 0: Not mask \\\\ 1: Mask\\\\ bit\\[1\\]: Configures whether to mask the second least significant byte of MEM_MONITOR_LOG_CHECK_DATA_REG. \\\\ 0: Not mask \\\\ 1: Mask\\\\ bit\\[2\\]: Configures whether to mask the second most significant byte of MEM_MONITOR_LOG_CHECK_DATA_REG. \\\\ 0: Not mask \\\\ 1: Mask\\\\ bit\\[3\\]: Configures whether to mask the most significant byte of MEM_MONITOR_LOG_CHECK_DATA_REG. \\\\ 0: Not mask \\\\ 1: Mask\\\\"]
    #[inline(always)]
    pub fn log_data_mask(&self) -> LOG_DATA_MASK_R {
        LOG_DATA_MASK_R::new((self.bits & 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("LOG_DATA_MASK")
            .field("log_data_mask", &self.log_data_mask())
            .finish()
    }
}
impl W {
    #[doc = "Bits 0:3 - Configures which byte(s) in MEM_MONITOR_LOG_CHECK_DATA_REG to mask.bit\\[0\\]: Configures whether to mask the least significant byte of MEM_MONITOR_LOG_CHECK_DATA_REG.\\\\ 0: Not mask \\\\ 1: Mask\\\\ bit\\[1\\]: Configures whether to mask the second least significant byte of MEM_MONITOR_LOG_CHECK_DATA_REG. \\\\ 0: Not mask \\\\ 1: Mask\\\\ bit\\[2\\]: Configures whether to mask the second most significant byte of MEM_MONITOR_LOG_CHECK_DATA_REG. \\\\ 0: Not mask \\\\ 1: Mask\\\\ bit\\[3\\]: Configures whether to mask the most significant byte of MEM_MONITOR_LOG_CHECK_DATA_REG. \\\\ 0: Not mask \\\\ 1: Mask\\\\"]
    #[inline(always)]
    pub fn log_data_mask(&mut self) -> LOG_DATA_MASK_W<'_, LOG_DATA_MASK_SPEC> {
        LOG_DATA_MASK_W::new(self, 0)
    }
}
#[doc = "Configures masked data in Bus access logging\n\nYou can [`read`](crate::Reg::read) this register and get [`log_data_mask::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`log_data_mask::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct LOG_DATA_MASK_SPEC;
impl crate::RegisterSpec for LOG_DATA_MASK_SPEC {
    type Ux = u32;
}
#[doc = "`read()` method returns [`log_data_mask::R`](R) reader structure"]
impl crate::Readable for LOG_DATA_MASK_SPEC {}
#[doc = "`write(|w| ..)` method takes [`log_data_mask::W`](W) writer structure"]
impl crate::Writable for LOG_DATA_MASK_SPEC {
    type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets LOG_DATA_MASK to value 0"]
impl crate::Resettable for LOG_DATA_MASK_SPEC {}
