stm32f4/stm32f413/otg_fs_global/
cid.rs

1///Register `CID` reader
2pub type R = crate::R<CIDrs>;
3///Register `CID` writer
4pub type W = crate::W<CIDrs>;
5///Field `PRODUCT_ID` reader - Product ID field
6pub type PRODUCT_ID_R = crate::FieldReader<u32>;
7///Field `PRODUCT_ID` writer - Product ID field
8pub type PRODUCT_ID_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32>;
9impl R {
10    ///Bits 0:31 - Product ID field
11    #[inline(always)]
12    pub fn product_id(&self) -> PRODUCT_ID_R {
13        PRODUCT_ID_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("CID")
19            .field("product_id", &self.product_id())
20            .finish()
21    }
22}
23impl W {
24    ///Bits 0:31 - Product ID field
25    #[inline(always)]
26    pub fn product_id(&mut self) -> PRODUCT_ID_W<CIDrs> {
27        PRODUCT_ID_W::new(self, 0)
28    }
29}
30/**core ID register
31
32You can [`read`](crate::Reg::read) this register and get [`cid::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`cid::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/STM32F413.html#OTG_FS_GLOBAL:CID)*/
35pub struct CIDrs;
36impl crate::RegisterSpec for CIDrs {
37    type Ux = u32;
38}
39///`read()` method returns [`cid::R`](R) reader structure
40impl crate::Readable for CIDrs {}
41///`write(|w| ..)` method takes [`cid::W`](W) writer structure
42impl crate::Writable for CIDrs {
43    type Safety = crate::Unsafe;
44}
45///`reset()` method sets CID to value 0x1000
46impl crate::Resettable for CIDrs {
47    const RESET_VALUE: u32 = 0x1000;
48}