#[doc = "Register `WR_REG_ENABLE` reader"]
pub type R = crate::R<WR_REG_ENABLE_SPEC>;
#[doc = "Field `WR_REG_EN` reader - Write register protection enabled"]
pub type WR_REG_EN_R = crate::BitReader;
impl R {
#[doc = "Bit 0 - Write register protection enabled"]
#[inline(always)]
pub fn wr_reg_en(&self) -> WR_REG_EN_R {
WR_REG_EN_R::new((self.bits & 1) != 0)
}
}
#[doc = "Write Register Enable\n\nYou can [`read`](crate::Reg::read) this register and get [`wr_reg_enable::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
pub struct WR_REG_ENABLE_SPEC;
impl crate::RegisterSpec for WR_REG_ENABLE_SPEC {
type Ux = u8;
}
#[doc = "`read()` method returns [`wr_reg_enable::R`](R) reader structure"]
impl crate::Readable for WR_REG_ENABLE_SPEC {}
#[doc = "`reset()` method sets WR_REG_ENABLE to value 0"]
impl crate::Resettable for WR_REG_ENABLE_SPEC {}