Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock {
Show 18 fields pub power: Reg<POWER_SPEC>, pub clkcr: Reg<CLKCR_SPEC>, pub arg: Reg<ARG_SPEC>, pub cmd: Reg<CMD_SPEC>, pub respcmd: Reg<RESPCMD_SPEC>, pub resp1: Reg<RESP1_SPEC>, pub resp2: Reg<RESP2_SPEC>, pub resp3: Reg<RESP3_SPEC>, pub resp4: Reg<RESP4_SPEC>, pub dtimer: Reg<DTIMER_SPEC>, pub dlen: Reg<DLEN_SPEC>, pub dctrl: Reg<DCTRL_SPEC>, pub dcount: Reg<DCOUNT_SPEC>, pub sta: Reg<STA_SPEC>, pub icr: Reg<ICR_SPEC>, pub mask: Reg<MASK_SPEC>, pub fifocnt: Reg<FIFOCNT_SPEC>, pub fifo: Reg<FIFO_SPEC>, /* private fields */
}
Expand description

Register block

Fields§

§power: Reg<POWER_SPEC>

0x00 - power control register

§clkcr: Reg<CLKCR_SPEC>

0x04 - SDI clock control register

§arg: Reg<ARG_SPEC>

0x08 - argument register

§cmd: Reg<CMD_SPEC>

0x0c - command register

§respcmd: Reg<RESPCMD_SPEC>

0x10 - command response register

§resp1: Reg<RESP1_SPEC>

0x14 - response 1..4 register

§resp2: Reg<RESP2_SPEC>

0x18 - response 1..4 register

§resp3: Reg<RESP3_SPEC>

0x1c - response 1..4 register

§resp4: Reg<RESP4_SPEC>

0x20 - response 1..4 register

§dtimer: Reg<DTIMER_SPEC>

0x24 - data timer register

§dlen: Reg<DLEN_SPEC>

0x28 - data length register

§dctrl: Reg<DCTRL_SPEC>

0x2c - data control register

§dcount: Reg<DCOUNT_SPEC>

0x30 - data counter register

§sta: Reg<STA_SPEC>

0x34 - status register

§icr: Reg<ICR_SPEC>

0x38 - interrupt clear register

§mask: Reg<MASK_SPEC>

0x3c - mask register

§fifocnt: Reg<FIFOCNT_SPEC>

0x48 - FIFO counter register

§fifo: Reg<FIFO_SPEC>

0x80 - data FIFO register

Auto Trait Implementations§

Blanket Implementations§

Source§

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

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

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

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

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

Source§

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

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

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

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 T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.
Source§

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

Source§

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

The type returned in the event of a conversion error.
Source§

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

Performs the conversion.