xmc4500/sdmmc/
response2.rs

1#[doc = "Register `RESPONSE2` reader"]
2pub type R = crate::R<RESPONSE2_SPEC>;
3#[doc = "Field `RESPONSE2` reader - Response2"]
4pub type RESPONSE2_R = crate::FieldReader<u16>;
5#[doc = "Field `RESPONSE3` reader - Response3"]
6pub type RESPONSE3_R = crate::FieldReader<u16>;
7impl R {
8    #[doc = "Bits 0:15 - Response2"]
9    #[inline(always)]
10    pub fn response2(&self) -> RESPONSE2_R {
11        RESPONSE2_R::new((self.bits & 0xffff) as u16)
12    }
13    #[doc = "Bits 16:31 - Response3"]
14    #[inline(always)]
15    pub fn response3(&self) -> RESPONSE3_R {
16        RESPONSE3_R::new(((self.bits >> 16) & 0xffff) as u16)
17    }
18}
19#[doc = "Response 2 Register\n\nYou can [`read`](crate::Reg::read) this register and get [`response2::R`](R). See [API](https://docs.rs/svd2rust/#read--modify--write-api)."]
20pub struct RESPONSE2_SPEC;
21impl crate::RegisterSpec for RESPONSE2_SPEC {
22    type Ux = u32;
23}
24#[doc = "`read()` method returns [`response2::R`](R) reader structure"]
25impl crate::Readable for RESPONSE2_SPEC {}
26#[doc = "`reset()` method sets RESPONSE2 to value 0"]
27impl crate::Resettable for RESPONSE2_SPEC {
28    const RESET_VALUE: u32 = 0;
29}