stm32u5/stm32u585/otfdec1/r4keyr1.rs
1///Register `R4KEYR1` writer
2pub type W = crate::W<R4KEYR1rs>;
3///Field `REGx_KEY` writer - REGx_KEY
4pub type REGX_KEY_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
5impl core::fmt::Debug for crate::generic::Reg<R4KEYR1rs> {
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 - REGx_KEY
12 #[inline(always)]
13 pub fn regx_key(&mut self) -> REGX_KEY_W<R4KEYR1rs> {
14 REGX_KEY_W::new(self, 0)
15 }
16}
17/**OTFDEC region x key register 1
18
19You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`r4keyr1::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
20
21See register [structure](https://stm32-rs.github.io/stm32-rs/STM32U585.html#OTFDEC1:R4KEYR1)*/
22pub struct R4KEYR1rs;
23impl crate::RegisterSpec for R4KEYR1rs {
24 type Ux = u32;
25}
26///`write(|w| ..)` method takes [`r4keyr1::W`](W) writer structure
27impl crate::Writable for R4KEYR1rs {
28 type Safety = crate::Unsafe;
29}
30///`reset()` method sets R4KEYR1 to value 0
31impl crate::Resettable for R4KEYR1rs {}