stm32f2/stm32f215/otg_fs_global/
grxfsiz.rs

1///Register `GRXFSIZ` reader
2pub type R = crate::R<GRXFSIZrs>;
3///Register `GRXFSIZ` writer
4pub type W = crate::W<GRXFSIZrs>;
5///Field `RXFD` reader - RxFIFO depth
6pub type RXFD_R = crate::FieldReader<u16>;
7///Field `RXFD` writer - RxFIFO depth
8pub type RXFD_W<'a, REG> = crate::FieldWriter<'a, REG, 16, u16>;
9impl R {
10    ///Bits 0:15 - RxFIFO depth
11    #[inline(always)]
12    pub fn rxfd(&self) -> RXFD_R {
13        RXFD_R::new((self.bits & 0xffff) as u16)
14    }
15}
16impl core::fmt::Debug for R {
17    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
18        f.debug_struct("GRXFSIZ")
19            .field("rxfd", &self.rxfd())
20            .finish()
21    }
22}
23impl W {
24    ///Bits 0:15 - RxFIFO depth
25    #[inline(always)]
26    pub fn rxfd(&mut self) -> RXFD_W<GRXFSIZrs> {
27        RXFD_W::new(self, 0)
28    }
29}
30/**OTG_FS Receive FIFO size register (OTG_FS_GRXFSIZ)
31
32You can [`read`](crate::Reg::read) this register and get [`grxfsiz::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`grxfsiz::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/STM32F215.html#OTG_FS_GLOBAL:GRXFSIZ)*/
35pub struct GRXFSIZrs;
36impl crate::RegisterSpec for GRXFSIZrs {
37    type Ux = u32;
38}
39///`read()` method returns [`grxfsiz::R`](R) reader structure
40impl crate::Readable for GRXFSIZrs {}
41///`write(|w| ..)` method takes [`grxfsiz::W`](W) writer structure
42impl crate::Writable for GRXFSIZrs {
43    type Safety = crate::Unsafe;
44}
45///`reset()` method sets GRXFSIZ to value 0x0200
46impl crate::Resettable for GRXFSIZrs {
47    const RESET_VALUE: u32 = 0x0200;
48}