stm32f1_staging/stm32f107/sdio/
respcmd.rs

1///Register `RESPCMD` reader
2pub type R = crate::R<RESPCMDrs>;
3///Field `RESPCMD` reader - Response command index
4pub type RESPCMD_R = crate::FieldReader;
5impl R {
6    ///Bits 0:5 - Response command index
7    #[inline(always)]
8    pub fn respcmd(&self) -> RESPCMD_R {
9        RESPCMD_R::new((self.bits & 0x3f) as u8)
10    }
11}
12impl core::fmt::Debug for R {
13    fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
14        f.debug_struct("RESPCMD").field("respcmd", &self.respcmd()).finish()
15    }
16}
17/**command response register
18
19You can [`read`](crate::Reg::read) this register and get [`respcmd::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:RESPCMD)*/
22pub struct RESPCMDrs;
23impl crate::RegisterSpec for RESPCMDrs {
24    type Ux = u32;
25}
26///`read()` method returns [`respcmd::R`](R) reader structure
27impl crate::Readable for RESPCMDrs {}
28///`reset()` method sets RESPCMD to value 0
29impl crate::Resettable for RESPCMDrs {}