1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154
#[doc = "Reader of register CAPAB0"] pub type R = crate::R<u32, super::CAPAB0>; #[doc = "Reader of field `TMOUTCLKFREQ`"] pub type TMOUTCLKFREQ_R = crate::R<u8, u8>; #[doc = "Reader of field `TMOUTCLKUNIT`"] pub type TMOUTCLKUNIT_R = crate::R<bool, bool>; #[doc = "Reader of field `BASECLKFREQSD`"] pub type BASECLKFREQSD_R = crate::R<u8, u8>; #[doc = "Reader of field `MAXBLOCKLEN`"] pub type MAXBLOCKLEN_R = crate::R<u8, u8>; #[doc = "Reader of field `EXTMEDIABUSSUP`"] pub type EXTMEDIABUSSUP_R = crate::R<bool, bool>; #[doc = "Reader of field `ADMA2SUP`"] pub type ADMA2SUP_R = crate::R<bool, bool>; #[doc = "Reader of field `HSSUP`"] pub type HSSUP_R = crate::R<bool, bool>; #[doc = "Reader of field `SDMASUP`"] pub type SDMASUP_R = crate::R<bool, bool>; #[doc = "Reader of field `SUSRESSUP`"] pub type SUSRESSUP_R = crate::R<bool, bool>; #[doc = "Reader of field `VOLTSUP3P3V`"] pub type VOLTSUP3P3V_R = crate::R<bool, bool>; #[doc = "Reader of field `VOLTSUP3P0V`"] pub type VOLTSUP3P0V_R = crate::R<bool, bool>; #[doc = "Reader of field `VOLTSUP1P8V`"] pub type VOLTSUP1P8V_R = crate::R<bool, bool>; #[doc = "Reader of field `SYSBUS64BSUP`"] pub type SYSBUS64BSUP_R = crate::R<bool, bool>; #[doc = "Reader of field `ASYNCINTSUP`"] pub type ASYNCINTSUP_R = crate::R<bool, bool>; #[doc = "Interface Card Slot Type\n\nValue on reset: 0"] #[derive(Clone, Copy, Debug, PartialEq)] #[repr(u8)] pub enum IFSLOTTYPE_A { #[doc = "0: Removable Card Slot"] REMOVABLE = 0, #[doc = "1: Only one non-removable device is conected to a SD bus slot"] EMBEDDED = 1, #[doc = "2: Can be set if Host controller supports Shared Bus CTRL register"] SHARED = 2, } impl From<IFSLOTTYPE_A> for u8 { #[inline(always)] fn from(variant: IFSLOTTYPE_A) -> Self { variant as _ } } #[doc = "Reader of field `IFSLOTTYPE`"] pub type IFSLOTTYPE_R = crate::R<u8, IFSLOTTYPE_A>; impl IFSLOTTYPE_R { #[doc = r"Get enumerated values variant"] #[inline(always)] pub fn variant(&self) -> crate::Variant<u8, IFSLOTTYPE_A> { use crate::Variant::*; match self.bits { 0 => Val(IFSLOTTYPE_A::REMOVABLE), 1 => Val(IFSLOTTYPE_A::EMBEDDED), 2 => Val(IFSLOTTYPE_A::SHARED), i => Res(i), } } #[doc = "Checks if the value of the field is `REMOVABLE`"] #[inline(always)] pub fn is_removable(&self) -> bool { *self == IFSLOTTYPE_A::REMOVABLE } #[doc = "Checks if the value of the field is `EMBEDDED`"] #[inline(always)] pub fn is_embedded(&self) -> bool { *self == IFSLOTTYPE_A::EMBEDDED } #[doc = "Checks if the value of the field is `SHARED`"] #[inline(always)] pub fn is_shared(&self) -> bool { *self == IFSLOTTYPE_A::SHARED } } impl R { #[doc = "Bits 0:5 - Timeout Clock Frequency"] #[inline(always)] pub fn tmoutclkfreq(&self) -> TMOUTCLKFREQ_R { TMOUTCLKFREQ_R::new((self.bits & 0x3f) as u8) } #[doc = "Bit 7 - Timeout Clock Unit"] #[inline(always)] pub fn tmoutclkunit(&self) -> TMOUTCLKUNIT_R { TMOUTCLKUNIT_R::new(((self.bits >> 7) & 0x01) != 0) } #[doc = "Bits 8:15 - Base Clock Frequency for SD_CLK"] #[inline(always)] pub fn baseclkfreqsd(&self) -> BASECLKFREQSD_R { BASECLKFREQSD_R::new(((self.bits >> 8) & 0xff) as u8) } #[doc = "Bits 16:17 - Maximum Block Length"] #[inline(always)] pub fn maxblocklen(&self) -> MAXBLOCKLEN_R { MAXBLOCKLEN_R::new(((self.bits >> 16) & 0x03) as u8) } #[doc = "Bit 18 - Extended Media Bus Support"] #[inline(always)] pub fn extmediabussup(&self) -> EXTMEDIABUSSUP_R { EXTMEDIABUSSUP_R::new(((self.bits >> 18) & 0x01) != 0) } #[doc = "Bit 19 - ADMA2 Support"] #[inline(always)] pub fn adma2sup(&self) -> ADMA2SUP_R { ADMA2SUP_R::new(((self.bits >> 19) & 0x01) != 0) } #[doc = "Bit 21 - High Speed Support"] #[inline(always)] pub fn hssup(&self) -> HSSUP_R { HSSUP_R::new(((self.bits >> 21) & 0x01) != 0) } #[doc = "Bit 22 - SDMA Support"] #[inline(always)] pub fn sdmasup(&self) -> SDMASUP_R { SDMASUP_R::new(((self.bits >> 22) & 0x01) != 0) } #[doc = "Bit 23 - Suspend / Resume Support"] #[inline(always)] pub fn susressup(&self) -> SUSRESSUP_R { SUSRESSUP_R::new(((self.bits >> 23) & 0x01) != 0) } #[doc = "Bit 24 - Voltage Support 3.3V"] #[inline(always)] pub fn voltsup3p3v(&self) -> VOLTSUP3P3V_R { VOLTSUP3P3V_R::new(((self.bits >> 24) & 0x01) != 0) } #[doc = "Bit 25 - Voltage Support 3.0V"] #[inline(always)] pub fn voltsup3p0v(&self) -> VOLTSUP3P0V_R { VOLTSUP3P0V_R::new(((self.bits >> 25) & 0x01) != 0) } #[doc = "Bit 26 - Voltage Support 1.8V"] #[inline(always)] pub fn voltsup1p8v(&self) -> VOLTSUP1P8V_R { VOLTSUP1P8V_R::new(((self.bits >> 26) & 0x01) != 0) } #[doc = "Bit 28 - System Bus 64-bit Support"] #[inline(always)] pub fn sysbus64bsup(&self) -> SYSBUS64BSUP_R { SYSBUS64BSUP_R::new(((self.bits >> 28) & 0x01) != 0) } #[doc = "Bit 29 - Asynchronous Interrupt Support"] #[inline(always)] pub fn asyncintsup(&self) -> ASYNCINTSUP_R { ASYNCINTSUP_R::new(((self.bits >> 29) & 0x01) != 0) } #[doc = "Bits 30:31 - Interface Card Slot Type"] #[inline(always)] pub fn ifslottype(&self) -> IFSLOTTYPE_R { IFSLOTTYPE_R::new(((self.bits >> 30) & 0x03) as u8) } }