stm32f1/stm32f107/sdio/resp.rs
1///Register `RESP%s` reader
2pub type R = crate::R<RESPrs>;
3///Field `CARDSTATUS` reader - Status of a card, which is part of the received response
4pub type CARDSTATUS_R = crate::FieldReader<u32>;
5impl R {
6 ///Bits 0:31 - Status of a card, which is part of the received response
7 #[inline(always)]
8 pub fn cardstatus(&self) -> CARDSTATUS_R {
9 CARDSTATUS_R::new(self.bits)
10 }
11}
12impl core::fmt::Debug for R {
13 fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
14 f.debug_struct("RESP")
15 .field("cardstatus", &self.cardstatus())
16 .finish()
17 }
18}
19/**SDIO response %s register
20
21You can [`read`](crate::Reg::read) this register and get [`resp::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
22
23See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F107.html#SDIO:RESP[1])*/
24pub struct RESPrs;
25impl crate::RegisterSpec for RESPrs {
26 type Ux = u32;
27}
28///`read()` method returns [`resp::R`](R) reader structure
29impl crate::Readable for RESPrs {}
30///`reset()` method sets RESP%s to value 0
31impl crate::Resettable for RESPrs {}