///Register `M3ERKEYR` writer
pub type W = crate::W<M3ERKEYRrs>;
///Field `ERASEKEY` writer - Erase write protection key
pub type ERASEKEY_W<'a, REG> = crate::FieldWriter<'a, REG, 8>;
impl core::fmt::Debug for crate::generic::Reg<M3ERKEYRrs> {
    fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
        write!(f, "(not readable)")
    }
}
impl W {
    ///Bits 0:7 - Erase write protection key
    #[inline(always)]
    pub fn erasekey(&mut self) -> ERASEKEY_W<M3ERKEYRrs> {
        ERASEKEY_W::new(self, 0)
    }
}
/**RAMCFG memory 3 erase key register

You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`m3erkeyr::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api).*/
pub struct M3ERKEYRrs;
impl crate::RegisterSpec for M3ERKEYRrs {
    type Ux = u32;
}
///`write(|w| ..)` method takes [`m3erkeyr::W`](W) writer structure
impl crate::Writable for M3ERKEYRrs {
    type Safety = crate::Unsafe;
    const ZERO_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
    const ONE_TO_MODIFY_FIELDS_BITMAP: u32 = 0;
}
///`reset()` method sets M3ERKEYR to value 0
impl crate::Resettable for M3ERKEYRrs {
    const RESET_VALUE: u32 = 0;
}
