///Register `R2KEYR2` writer
pub type W = crate::W<R2KEYR2rs>;
///Field `REGx_KEY_` writer - REGx_KEY
pub type REGX_KEY__W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
impl core::fmt::Debug for crate::generic::Reg<R2KEYR2rs> {
fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
write!(f, "(not readable)")
}
}
impl W {
///Bits 0:31 - REGx_KEY
#[inline(always)]
pub fn regx_key_(&mut self) -> REGX_KEY__W<R2KEYR2rs> {
REGX_KEY__W::new(self, 0)
}
}
/**OTFDEC region x key register 2
You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`r2keyr2::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L562.html#OTFDEC1:R2KEYR2)*/
pub struct R2KEYR2rs;
impl crate::RegisterSpec for R2KEYR2rs {
type Ux = u32;
}
///`write(|w| ..)` method takes [`r2keyr2::W`](W) writer structure
impl crate::Writable for R2KEYR2rs {
type Safety = crate::Unsafe;
}
///`reset()` method sets R2KEYR2 to value 0
impl crate::Resettable for R2KEYR2rs {}