stm32f7_staging/stm32f779/cryp/csgcmr.rs
1///Register `CSGCM%sR` reader
2pub type R = crate::R<CSGCMRrs>;
3///Register `CSGCM%sR` writer
4pub type W = crate::W<CSGCMRrs>;
5///Field `CSGCMR` reader - CSGCM0R
6pub type CSGCMR_R = crate::FieldReader<u32>;
7///Field `CSGCMR` writer - CSGCM0R
8pub type CSGCMR_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10 ///Bits 0:31 - CSGCM0R
11 #[inline(always)]
12 pub fn csgcmr(&self) -> CSGCMR_R {
13 CSGCMR_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("CSGCMR")
19 .field("csgcmr", &self.csgcmr())
20 .finish()
21 }
22}
23impl W {
24 ///Bits 0:31 - CSGCM0R
25 #[inline(always)]
26 pub fn csgcmr(&mut self) -> CSGCMR_W<CSGCMRrs> {
27 CSGCMR_W::new(self, 0)
28 }
29}
30/**context swap register
31
32You can [`read`](crate::Reg::read) this register and get [`csgcmr::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`csgcmr::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/STM32F779.html#CRYP:CSGCM[0]R)*/
35pub struct CSGCMRrs;
36impl crate::RegisterSpec for CSGCMRrs {
37 type Ux = u32;
38}
39///`read()` method returns [`csgcmr::R`](R) reader structure
40impl crate::Readable for CSGCMRrs {}
41///`write(|w| ..)` method takes [`csgcmr::W`](W) writer structure
42impl crate::Writable for CSGCMRrs {
43 type Safety = crate::Unsafe;
44}
45///`reset()` method sets CSGCM%sR to value 0
46impl crate::Resettable for CSGCMRrs {}