stm32f1_staging/stm32f107/sdio/
fifocnt.rs

1///Register `FIFOCNT` reader
2pub type R = crate::R<FIFOCNTrs>;
3///Field `FIFOCOUNT` reader - Remaining number of words to be written to or read from the FIFO.
4pub type FIFOCOUNT_R = crate::FieldReader<u32>;
5impl R {
6    ///Bits 0:23 - Remaining number of words to be written to or read from the FIFO.
7    #[inline(always)]
8    pub fn fifocount(&self) -> FIFOCOUNT_R {
9        FIFOCOUNT_R::new(self.bits & 0x00ff_ffff)
10    }
11}
12impl core::fmt::Debug for R {
13    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
14        f.debug_struct("FIFOCNT").field("fifocount", &self.fifocount()).finish()
15    }
16}
17/**FIFO counter register
18
19You can [`read`](crate::Reg::read) this register and get [`fifocnt::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
20
21See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F107.html#SDIO:FIFOCNT)*/
22pub struct FIFOCNTrs;
23impl crate::RegisterSpec for FIFOCNTrs {
24    type Ux = u32;
25}
26///`read()` method returns [`fifocnt::R`](R) reader structure
27impl crate::Readable for FIFOCNTrs {}
28///`reset()` method sets FIFOCNT to value 0
29impl crate::Resettable for FIFOCNTrs {}