stm32f7_staging/stm32f779/cryp/
csgcmccmr.rs

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