#[repr(C)]
pub struct RegisterBlock {
Show 18 fields pub power: POWER, pub clkcr: CLKCR, pub arg: ARG, pub cmd: CMD, pub respcmd: RESPCMD, pub resp1: RESP1, pub resp2: RESP2, pub resp3: RESP3, pub resp4: RESP4, pub dtimer: DTIMER, pub dlen: DLEN, pub dctrl: DCTRL, pub dcount: DCOUNT, pub sta: STA, pub icr: ICR, pub mask: MASK, pub fifocnt: FIFOCNT, pub fifo: FIFO, /* private fields */
}
Expand description

Register block

Fields§

§power: POWER

0x00 - Bits 1:0 = PWRCTRL: Power supply control bits

§clkcr: CLKCR

0x04 - SDI clock control register (SDIO_CLKCR)

§arg: ARG

0x08 - Bits 31:0 = : Command argument

§cmd: CMD

0x0c - SDIO command register (SDIO_CMD)

§respcmd: RESPCMD

0x10 - SDIO command register

§resp1: RESP1

0x14 - Bits 31:0 = CARDSTATUS1

§resp2: RESP2

0x18 - Bits 31:0 = CARDSTATUS2

§resp3: RESP3

0x1c - Bits 31:0 = CARDSTATUS3

§resp4: RESP4

0x20 - Bits 31:0 = CARDSTATUS4

§dtimer: DTIMER

0x24 - Bits 31:0 = DATATIME: Data timeout period

§dlen: DLEN

0x28 - Bits 24:0 = DATALENGTH: Data length value

§dctrl: DCTRL

0x2c - SDIO data control register (SDIO_DCTRL)

§dcount: DCOUNT

0x30 - Bits 24:0 = DATACOUNT: Data count value

§sta: STA

0x34 - SDIO status register (SDIO_STA)

§icr: ICR

0x38 - SDIO interrupt clear register (SDIO_ICR)

§mask: MASK

0x3c - SDIO mask register (SDIO_MASK)

§fifocnt: FIFOCNT

0x48 - Bits 23:0 = FIFOCOUNT: Remaining number of words to be written to or read from the FIFO

§fifo: FIFO

0x80 - bits 31:0 = FIFOData: Receive and transmit FIFO data

Auto Trait Implementations§

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.