#[doc = "Register `NMI_MASK_ENABLE` writer"]
pub type W = crate::W<NMI_MASK_ENABLE_SPEC>;
#[doc = "Field `NMI_MASK_ENABLE` writer - this field is used to set NMI mask,it can write any value,when write this register,the hardware start masking NMI interrupt"]
pub type NMI_MASK_ENABLE_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
#[cfg(feature = "impl-register-debug")]
impl core::fmt::Debug for crate::generic::Reg<NMI_MASK_ENABLE_SPEC> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
impl W {
#[doc = "Bits 0:31 - this field is used to set NMI mask,it can write any value,when write this register,the hardware start masking NMI interrupt"]
#[inline(always)]
pub fn nmi_mask_enable(&mut self) -> NMI_MASK_ENABLE_W<'_, NMI_MASK_ENABLE_SPEC> {
NMI_MASK_ENABLE_W::new(self, 0)
}
}
#[doc = "Core_0 NMI mask enable register\n\nYou can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`nmi_mask_enable::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct NMI_MASK_ENABLE_SPEC;
impl crate::RegisterSpec for NMI_MASK_ENABLE_SPEC {
type Ux = u32;
}
#[doc = "`write(|w| ..)` method takes [`nmi_mask_enable::W`](W) writer structure"]
impl crate::Writable for NMI_MASK_ENABLE_SPEC {
type Safety = crate::Unsafe;
}
#[doc = "`reset()` method sets NMI_MASK_ENABLE to value 0"]
impl crate::Resettable for NMI_MASK_ENABLE_SPEC {}