efm32gg12b830_pac/sdio/
slotintstat.rs1#[doc = "Register `SLOTINTSTAT` reader"]
2pub struct R(crate::R<SLOTINTSTAT_SPEC>);
3impl core::ops::Deref for R {
4 type Target = crate::R<SLOTINTSTAT_SPEC>;
5 #[inline(always)]
6 fn deref(&self) -> &Self::Target {
7 &self.0
8 }
9}
10impl From<crate::R<SLOTINTSTAT_SPEC>> for R {
11 #[inline(always)]
12 fn from(reader: crate::R<SLOTINTSTAT_SPEC>) -> Self {
13 R(reader)
14 }
15}
16#[doc = "Field `INTSLOT0` reader - Interrupt Signal for Slot#0"]
17pub type INTSLOT0_R = crate::BitReader<bool>;
18#[doc = "Field `SPECVERNUM` reader - Host Controller Compliant Spec Version Number"]
19pub type SPECVERNUM_R = crate::FieldReader<u8, u8>;
20#[doc = "Field `VENDVERNUM` reader - Vendor Version Number"]
21pub type VENDVERNUM_R = crate::FieldReader<u8, u8>;
22impl R {
23 #[doc = "Bit 0 - Interrupt Signal for Slot#0"]
24 #[inline(always)]
25 pub fn intslot0(&self) -> INTSLOT0_R {
26 INTSLOT0_R::new((self.bits & 1) != 0)
27 }
28 #[doc = "Bits 16:23 - Host Controller Compliant Spec Version Number"]
29 #[inline(always)]
30 pub fn specvernum(&self) -> SPECVERNUM_R {
31 SPECVERNUM_R::new(((self.bits >> 16) & 0xff) as u8)
32 }
33 #[doc = "Bits 24:31 - Vendor Version Number"]
34 #[inline(always)]
35 pub fn vendvernum(&self) -> VENDVERNUM_R {
36 VENDVERNUM_R::new(((self.bits >> 24) & 0xff) as u8)
37 }
38}
39#[doc = "Slot Interrupt Status Register\n\nThis register you can [`read`](crate::generic::Reg::read). See [API](https://docs.rs/svd2rust/#read--modify--write-api).\n\nFor information about available fields see [slotintstat](index.html) module"]
40pub struct SLOTINTSTAT_SPEC;
41impl crate::RegisterSpec for SLOTINTSTAT_SPEC {
42 type Ux = u32;
43}
44#[doc = "`read()` method returns [slotintstat::R](R) reader structure"]
45impl crate::Readable for SLOTINTSTAT_SPEC {
46 type Reader = R;
47}
48#[doc = "`reset()` method sets SLOTINTSTAT to value 0x1002_0000"]
49impl crate::Resettable for SLOTINTSTAT_SPEC {
50 #[inline(always)]
51 fn reset_value() -> Self::Ux {
52 0x1002_0000
53 }
54}