RegisterBlock

Struct RegisterBlock 

Source
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn power(&self) -> &Reg<POWERrs>

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

Source

pub const fn clkcr(&self) -> &Reg<CLKCRrs>

0x04 - SDI clock control register (SDIO_CLKCR)

Source

pub const fn arg(&self) -> &Reg<ARGrs>

0x08 - Bits 31:0 = : Command argument

Source

pub const fn cmd(&self) -> &Reg<CMDrs>

0x0c - SDIO command register (SDIO_CMD)

Source

pub const fn respcmd(&self) -> &Reg<RESPCMDrs>

0x10 - SDIO command register

Source

pub const fn resp(&self, n: usize) -> &Reg<RESPrs>

0x14..0x24 - SDIO response %s register

`n` is the index of register in the array. `n == 0` corresponds to `RESP1` register.
Source

pub fn resp_iter(&self) -> impl Iterator<Item = &Reg<RESPrs>>

Iterator for array of: 0x14..0x24 - SDIO response %s register

Source

pub const fn resp1(&self) -> &Reg<RESPrs>

0x14 - SDIO response 1 register

Source

pub const fn resp2(&self) -> &Reg<RESPrs>

0x18 - SDIO response 2 register

Source

pub const fn resp3(&self) -> &Reg<RESPrs>

0x1c - SDIO response 3 register

Source

pub const fn resp4(&self) -> &Reg<RESPrs>

0x20 - SDIO response 4 register

Source

pub const fn dtimer(&self) -> &Reg<DTIMERrs>

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

Source

pub const fn dlen(&self) -> &Reg<DLENrs>

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

Source

pub const fn dctrl(&self) -> &Reg<DCTRLrs>

0x2c - SDIO data control register (SDIO_DCTRL)

Source

pub const fn dcount(&self) -> &Reg<DCOUNTrs>

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

Source

pub const fn sta(&self) -> &Reg<STArs>

0x34 - SDIO status register (SDIO_STA)

Source

pub const fn icr(&self) -> &Reg<ICRrs>

0x38 - SDIO interrupt clear register (SDIO_ICR)

Source

pub const fn mask(&self) -> &Reg<MASKrs>

0x3c - SDIO mask register (SDIO_MASK)

Source

pub const fn fifocnt(&self) -> &Reg<FIFOCNTrs>

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

Source

pub const fn fifo(&self) -> &Reg<FIFOrs>

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

Trait Implementations§

Source§

impl Debug for RegisterBlock

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

§

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

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

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

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

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

§

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

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

§

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

§

fn into(self) -> U

Calls U::from(self).

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

§

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

§

type Error = Infallible

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

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

Performs the conversion.
§

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

§

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

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

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

Performs the conversion.