stm32f1_staging/stm32f101/sdio/fifocnt.rs
1///Register `FIFOCNT` reader
2pub type R = crate::R<FIFOCNTrs>;
3///Field `FIF0COUNT` reader - FIF0COUNT
4pub type FIF0COUNT_R = crate::FieldReader<u32>;
5impl R {
6 ///Bits 0:23 - FIF0COUNT
7 #[inline(always)]
8 pub fn fif0count(&self) -> FIF0COUNT_R {
9 FIF0COUNT_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("fif0count", &self.fif0count()).finish()
15 }
16}
17/**Bits 23:0 = FIFOCOUNT: Remaining number of words to be written to or read from the FIFO
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/STM32F101.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 {}