pub struct W(_);
Expand description
Register CTYPE
writer
Implementations§
§impl W
impl W
pub fn card_width4(
&mut self
) -> FieldWriterRaw<'_, u32, CTYPE_SPEC, u8, u8, Unsafe, 2, 0>
pub fn card_width4(
&mut self
) -> FieldWriterRaw<'_, u32, CTYPE_SPEC, u8, u8, Unsafe, 2, 0>
Bits 0:1 - One bit per card indicates if card is 1-bit or 4-bit mode. 0: 1-bit mode; 1: 4-bit mode. Bit[1:0] correspond to card[1:0] respectively.
pub fn card_width8(
&mut self
) -> FieldWriterRaw<'_, u32, CTYPE_SPEC, u8, u8, Unsafe, 2, 16>
pub fn card_width8(
&mut self
) -> FieldWriterRaw<'_, u32, CTYPE_SPEC, u8, u8, Unsafe, 2, 16>
Bits 16:17 - One bit per card indicates if card is in 8-bit mode. 0: Non 8-bit mode; 1: 8-bit mode. Bit[17:16] correspond to card[1:0] respectively.
Methods from Deref<Target = W<CTYPE_SPEC>>§
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>
Writes raw bits to the register.
Safety
Read datasheet or reference manual to find what values are allowed to pass.
Trait Implementations§
§impl From<W<CTYPE_SPEC>> for W
impl From<W<CTYPE_SPEC>> for W
§fn from(writer: W<CTYPE_SPEC>) -> W
fn from(writer: W<CTYPE_SPEC>) -> W
Converts to this type from the input type.