Struct RegisterBlock

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

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn ssar_cmd23_mode(&self) -> &SsarCmd23Mode

0x00 - SDMA System Address / Argument 2

Source

pub const fn ssar(&self) -> &Ssar

0x00 - SDMA System Address / Argument 2

Source

pub const fn bsr(&self) -> &Bsr

0x04 - Block Size

Source

pub const fn bcr(&self) -> &Bcr

0x06 - Block Count

Source

pub const fn arg1r(&self) -> &Arg1r

0x08 - Argument 1

Source

pub const fn tmr(&self) -> &Tmr

0x0c - Transfer Mode

Source

pub const fn cr(&self) -> &Cr

0x0e - Command

Source

pub const fn rr(&self, n: usize) -> &Rr

0x10..0x20 - Response

Source

pub fn rr_iter(&self) -> impl Iterator<Item = &Rr>

Iterator for array of: 0x10..0x20 - Response

Source

pub const fn bdpr(&self) -> &Bdpr

0x20 - Buffer Data Port

Source

pub const fn psr(&self) -> &Psr

0x24 - Present State

Source

pub const fn hc1r_emmc_mode(&self) -> &Hc1rEmmcMode

0x28 - Host Control 1

Source

pub const fn hc1r(&self) -> &Hc1r

0x28 - Host Control 1

Source

pub const fn pcr(&self) -> &Pcr

0x29 - Power Control

Source

pub const fn bgcr_emmc_mode(&self) -> &BgcrEmmcMode

0x2a - Block Gap Control

Source

pub const fn bgcr(&self) -> &Bgcr

0x2a - Block Gap Control

Source

pub const fn wcr(&self) -> &Wcr

0x2b - Wakeup Control

Source

pub const fn ccr(&self) -> &Ccr

0x2c - Clock Control

Source

pub const fn tcr(&self) -> &Tcr

0x2e - Timeout Control

Source

pub const fn srr(&self) -> &Srr

0x2f - Software Reset

Source

pub const fn nistr_emmc_mode(&self) -> &NistrEmmcMode

0x30 - Normal Interrupt Status

Source

pub const fn nistr(&self) -> &Nistr

0x30 - Normal Interrupt Status

Source

pub const fn eistr_emmc_mode(&self) -> &EistrEmmcMode

0x32 - Error Interrupt Status

Source

pub const fn eistr(&self) -> &Eistr

0x32 - Error Interrupt Status

Source

pub const fn nister_emmc_mode(&self) -> &NisterEmmcMode

0x34 - Normal Interrupt Status Enable

Source

pub const fn nister(&self) -> &Nister

0x34 - Normal Interrupt Status Enable

Source

pub const fn eister_emmc_mode(&self) -> &EisterEmmcMode

0x36 - Error Interrupt Status Enable

Source

pub const fn eister(&self) -> &Eister

0x36 - Error Interrupt Status Enable

Source

pub const fn nisier_emmc_mode(&self) -> &NisierEmmcMode

0x38 - Normal Interrupt Signal Enable

Source

pub const fn nisier(&self) -> &Nisier

0x38 - Normal Interrupt Signal Enable

Source

pub const fn eisier_emmc_mode(&self) -> &EisierEmmcMode

0x3a - Error Interrupt Signal Enable

Source

pub const fn eisier(&self) -> &Eisier

0x3a - Error Interrupt Signal Enable

Source

pub const fn acesr(&self) -> &Acesr

0x3c - Auto CMD Error Status

Source

pub const fn hc2r_emmc_mode(&self) -> &Hc2rEmmcMode

0x3e - Host Control 2

Source

pub const fn hc2r(&self) -> &Hc2r

0x3e - Host Control 2

Source

pub const fn ca0r(&self) -> &Ca0r

0x40 - Capabilities 0

Source

pub const fn ca1r(&self) -> &Ca1r

0x44 - Capabilities 1

Source

pub const fn mccar(&self) -> &Mccar

0x48 - Maximum Current Capabilities

Source

pub const fn feraces(&self) -> &Feraces

0x50 - Force Event for Auto CMD Error Status

Source

pub const fn fereis(&self) -> &Fereis

0x52 - Force Event for Error Interrupt Status

Source

pub const fn aesr(&self) -> &Aesr

0x54 - ADMA Error Status

Source

pub const fn asar(&self, n: usize) -> &Asar

0x58 - ADMA System Address

Source

pub fn asar_iter(&self) -> impl Iterator<Item = &Asar>

Iterator for array of: 0x58 - ADMA System Address

Source

pub const fn pvr(&self, n: usize) -> &Pvr

0x60..0x70 - Preset Value n

Source

pub fn pvr_iter(&self) -> impl Iterator<Item = &Pvr>

Iterator for array of: 0x60..0x70 - Preset Value n

Source

pub const fn sisr(&self) -> &Sisr

0xfc - Slot Interrupt Status

Source

pub const fn hcvr(&self) -> &Hcvr

0xfe - Host Controller Version

Source

pub const fn apsr(&self) -> &Apsr

0x200 - Additional Present State Register

Source

pub const fn mc1r(&self) -> &Mc1r

0x204 - MMC Control 1

Source

pub const fn mc2r(&self) -> &Mc2r

0x205 - MMC Control 2

Source

pub const fn acr(&self) -> &Acr

0x208 - AHB Control

Source

pub const fn cc2r(&self) -> &Cc2r

0x20c - Clock Control 2

Source

pub const fn cacr(&self) -> &Cacr

0x230 - Capabilities Control

Source

pub const fn dbgr(&self) -> &Dbgr

0x234 - Debug

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.