stm32u5/stm32u5a5/aes/keyr5.rs
1///Register `KEYR5` writer
2pub type W = crate::W<KEYR5rs>;
3///Field `KEY` writer - Cryptographic key, bits \[191:160\]
4pub type KEY_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32, crate::Safe>;
5impl core::fmt::Debug for crate::generic::Reg<KEYR5rs> {
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 - Cryptographic key, bits \[191:160\]
12 #[inline(always)]
13 pub fn key(&mut self) -> KEY_W<KEYR5rs> {
14 KEY_W::new(self, 0)
15 }
16}
17/**key register 5
18
19You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`keyr5::W`](W). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
20
21See register [structure](https://stm32-rs.github.io/stm32-rs/STM32U5A5.html#AES:KEYR5)*/
22pub struct KEYR5rs;
23impl crate::RegisterSpec for KEYR5rs {
24 type Ux = u32;
25}
26///`write(|w| ..)` method takes [`keyr5::W`](W) writer structure
27impl crate::Writable for KEYR5rs {
28 type Safety = crate::Safe;
29}
30///`reset()` method sets KEYR5 to value 0
31impl crate::Resettable for KEYR5rs {}