stm32l4/stm32l4x5/aes/dinr.rs
1///Register `DINR` reader
2pub type R = crate::R<DINRrs>;
3///Register `DINR` writer
4pub type W = crate::W<DINRrs>;
5///Field `DIN` reader - Data Input Register
6pub type DIN_R = crate::FieldReader<u32>;
7///Field `DIN` writer - Data Input Register
8pub type DIN_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32, crate::Safe>;
9impl R {
10 ///Bits 0:31 - Data Input Register
11 #[inline(always)]
12 pub fn din(&self) -> DIN_R {
13 DIN_R::new(self.bits)
14 }
15}
16impl core::fmt::Debug for R {
17 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
18 f.debug_struct("DINR").field("din", &self.din()).finish()
19 }
20}
21impl W {
22 ///Bits 0:31 - Data Input Register
23 #[inline(always)]
24 pub fn din(&mut self) -> DIN_W<DINRrs> {
25 DIN_W::new(self, 0)
26 }
27}
28/**data input register
29
30You can [`read`](crate::Reg::read) this register and get [`dinr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`dinr::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
31
32See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L4x5.html#AES:DINR)*/
33pub struct DINRrs;
34impl crate::RegisterSpec for DINRrs {
35 type Ux = u32;
36}
37///`read()` method returns [`dinr::R`](R) reader structure
38impl crate::Readable for DINRrs {}
39///`write(|w| ..)` method takes [`dinr::W`](W) writer structure
40impl crate::Writable for DINRrs {
41 type Safety = crate::Safe;
42}
43///`reset()` method sets DINR to value 0
44impl crate::Resettable for DINRrs {}