stm32f1/stm32f107/sdio/fifo.rs
1///Register `FIFO` reader
2pub type R = crate::R<FIFOrs>;
3///Register `FIFO` writer
4pub type W = crate::W<FIFOrs>;
5///Field `FIFOData` reader - Receive and transmit FIFO data
6pub type FIFODATA_R = crate::FieldReader<u32>;
7///Field `FIFOData` writer - Receive and transmit FIFO data
8pub type FIFODATA_W<'a, REG> = crate::FieldWriter<'a, REG, 32, u32, crate::Safe>;
9impl R {
10 ///Bits 0:31 - Receive and transmit FIFO data
11 #[inline(always)]
12 pub fn fifodata(&self) -> FIFODATA_R {
13 FIFODATA_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("FIFO")
19 .field("fifodata", &self.fifodata())
20 .finish()
21 }
22}
23impl W {
24 ///Bits 0:31 - Receive and transmit FIFO data
25 #[inline(always)]
26 pub fn fifodata(&mut self) -> FIFODATA_W<FIFOrs> {
27 FIFODATA_W::new(self, 0)
28 }
29}
30/**data FIFO register
31
32You can [`read`](crate::Reg::read) this register and get [`fifo::R`](R). You can [`reset`](crate::Reg::reset), [`write`](crate::Reg::write), [`write_with_zero`](crate::Reg::write_with_zero) this register using [`fifo::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/STM32F107.html#SDIO:FIFO)*/
35pub struct FIFOrs;
36impl crate::RegisterSpec for FIFOrs {
37 type Ux = u32;
38}
39///`read()` method returns [`fifo::R`](R) reader structure
40impl crate::Readable for FIFOrs {}
41///`write(|w| ..)` method takes [`fifo::W`](W) writer structure
42impl crate::Writable for FIFOrs {
43 type Safety = crate::Safe;
44}
45///`reset()` method sets FIFO to value 0
46impl crate::Resettable for FIFOrs {}