Struct RegisterBlock

Source
#[repr(C)]
pub struct RegisterBlock { /* private fields */ }
Expand description

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn power(&self) -> &POWER

0x00 - power control register

Source

pub const fn clkcr(&self) -> &CLKCR

0x04 - SDI clock control register

Source

pub const fn arg(&self) -> &ARG

0x08 - argument register

Source

pub const fn cmd(&self) -> &CMD

0x0c - command register

Source

pub const fn respcmd(&self) -> &RESPCMD

0x10 - command response register

Source

pub const fn resp(&self, n: usize) -> &RESP

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 = &RESP>

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

Source

pub const fn resp1(&self) -> &RESP

0x14 - SDIO response 1 register

Source

pub const fn resp2(&self) -> &RESP

0x18 - SDIO response 2 register

Source

pub const fn resp3(&self) -> &RESP

0x1c - SDIO response 3 register

Source

pub const fn resp4(&self) -> &RESP

0x20 - SDIO response 4 register

Source

pub const fn dtimer(&self) -> &DTIMER

0x24 - data timer register

Source

pub const fn dlen(&self) -> &DLEN

0x28 - data length register

Source

pub const fn dctrl(&self) -> &DCTRL

0x2c - data control register

Source

pub const fn dcount(&self) -> &DCOUNT

0x30 - data counter register

Source

pub const fn sta(&self) -> &STA

0x34 - status register

Source

pub const fn icr(&self) -> &ICR

0x38 - interrupt clear register

Source

pub const fn mask(&self) -> &MASK

0x3c - mask register

Source

pub const fn fifocnt(&self) -> &FIFOCNT

0x48 - FIFO counter register

Source

pub const fn fifo(&self) -> &FIFO

0x80 - data FIFO register

Trait Implementations§

Source§

impl Debug for RegisterBlock

Source§

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

Formats the value using the given formatter. Read more

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.