stm32u5/stm32u5a9/otfdec1/r2keyr2.rs
1///Register `R2KEYR2` writer
2pub type W = crate::W<R2KEYR2rs>;
3///Field `REG2_KEY_` writer - REG2_KEY_
4pub type REG2_KEY__W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
5impl core::fmt::Debug for crate::generic::Reg<R2KEYR2rs> {
6 fn fmt(&self, f: &mut core::fmt::Formatter<'_>) -> core::fmt::Result {
7 write!(f, "(not readable)")
8 }
9}
10impl W {
11 ///Bits 0:31 - REG2_KEY_
12 #[inline(always)]
13 pub fn reg2_key_(&mut self) -> REG2_KEY__W<R2KEYR2rs> {
14 REG2_KEY__W::new(self, 0)
15 }
16}
17/**OTFDEC region x key register 2
18
19You 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).
20
21See register [structure](https://stm32-rs.github.io/stm32-rs/STM32U5A9.html#OTFDEC1:R2KEYR2)*/
22pub struct R2KEYR2rs;
23impl crate::RegisterSpec for R2KEYR2rs {
24 type Ux = u32;
25}
26///`write(|w| ..)` method takes [`r2keyr2::W`](W) writer structure
27impl crate::Writable for R2KEYR2rs {
28 type Safety = crate::Unsafe;
29}
30///`reset()` method sets R2KEYR2 to value 0
31impl crate::Resettable for R2KEYR2rs {}