stm32l4/stm32l4x5/aes/
susp6r.rs

1///Register `SUSP6R` reader
2pub type R = crate::R<SUSP6Rrs>;
3///Register `SUSP6R` writer
4pub type W = crate::W<SUSP6Rrs>;
5///Field `SUSP` reader - AES suspend
6pub type SUSP_R = crate::FieldReader<u32>;
7///Field `SUSP` writer - AES suspend
8pub type SUSP_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32, crate::Safe>;
9impl R {
10    ///Bits 0:31 - AES suspend
11    #[inline(always)]
12    pub fn susp(&self) -> SUSP_R {
13        SUSP_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("SUSP6R")
19            .field("susp", &self.susp())
20            .finish()
21    }
22}
23impl W {
24    ///Bits 0:31 - AES suspend
25    #[inline(always)]
26    pub fn susp(&mut self) -> SUSP_W<SUSP6Rrs> {
27        SUSP_W::new(self, 0)
28    }
29}
30/**suspend registers
31
32You can [`read`](crate::Reg::read) this register and get [`susp6r::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`susp6r::W`](W). You can also [`modify`](crate::Reg::modify) this register. See [API](https://docs.rs/svd2rust/#read--modify--write-api).
33
34See register [structure](https://stm32-rs.github.io/stm32-rs/STM32L4x5.html#AES:SUSP6R)*/
35pub struct SUSP6Rrs;
36impl crate::RegisterSpec for SUSP6Rrs {
37    type Ux = u32;
38}
39///`read()` method returns [`susp6r::R`](R) reader structure
40impl crate::Readable for SUSP6Rrs {}
41///`write(|w| ..)` method takes [`susp6r::W`](W) writer structure
42impl crate::Writable for SUSP6Rrs {
43    type Safety = crate::Safe;
44}
45///`reset()` method sets SUSP6R to value 0
46impl crate::Resettable for SUSP6Rrs {}