stm32f1_staging/stm32f103/sdio/resp.rs
///Register `RESP%s` reader
pub type R = crate::R<RESPrs>;
///Field `CARDSTATUS` reader - Status of a card, which is part of the received response
pub type CARDSTATUS_R = crate::FieldReader<u32>;
impl R {
///Bits 0:31 - Status of a card, which is part of the received response
#[inline(always)]
pub fn cardstatus(&self) -> CARDSTATUS_R {
CARDSTATUS_R::new(self.bits)
}
}
impl core::fmt::Debug for R {
fn fmt(&self, f: &mut core::fmt::Formatter) -> core::fmt::Result {
f.debug_struct("RESP")
.field("cardstatus", &self.cardstatus())
.finish()
}
}
/**SDIO response %s register
You can [`read`](crate::Reg::read) this register and get [`resp::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api).
See register [structure](https://stm32-rs.github.io/stm32-rs/STM32F103.html#SDIO:RESP[1])*/
pub struct RESPrs;
impl crate::RegisterSpec for RESPrs {
type Ux = u32;
}
///`read()` method returns [`resp::R`](R) reader structure
impl crate::Readable for RESPrs {}
///`reset()` method sets RESP%s to value 0
impl crate::Resettable for RESPrs {
const RESET_VALUE: u32 = 0;
}