RegisterBlock

Struct RegisterBlock 

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

Register block

Implementations§

Source§

impl RegisterBlock

Source

pub const fn smhc_ctrl(&self) -> &SMHC_CTRL

0x00 - Control Register

Source

pub const fn smhc_clkdiv(&self) -> &SMHC_CLKDIV

0x04 - Clock Control Register

Source

pub const fn smhc_tmout(&self) -> &SMHC_TMOUT

0x08 - Time Out Register

Source

pub const fn smhc_ctype(&self) -> &SMHC_CTYPE

0x0c - Bus Width Register

Source

pub const fn smhc_blksiz(&self) -> &SMHC_BLKSIZ

0x10 - Block Size Register

Source

pub const fn smhc_bytcnt(&self) -> &SMHC_BYTCNT

0x14 - Byte Count Register

Source

pub const fn smhc_cmd(&self) -> &SMHC_CMD

0x18 - Command Register

Source

pub const fn smhc_cmdarg(&self) -> &SMHC_CMDARG

0x1c - Command Argument Register

Source

pub const fn smhc_resp0(&self) -> &SMHC_RESP0

0x20 - Response 0 Register

Source

pub const fn smhc_resp1(&self) -> &SMHC_RESP1

0x24 - Response 1 Register

Source

pub const fn smhc_resp2(&self) -> &SMHC_RESP2

0x28 - Response 2 Register

Source

pub const fn smhc_resp3(&self) -> &SMHC_RESP3

0x2c - Response 3 Register

Source

pub const fn smhc_intmask(&self) -> &SMHC_INTMASK

0x30 - Interrupt Mask Register

Source

pub const fn smhc_mintsts(&self) -> &SMHC_MINTSTS

0x34 - Masked Interrupt Status Register

Source

pub const fn smhc_rintsts(&self) -> &SMHC_RINTSTS

0x38 - Raw Interrupt Status Register

Source

pub const fn smhc_status(&self) -> &SMHC_STATUS

0x3c - Status Register

Source

pub const fn smhc_fifoth(&self) -> &SMHC_FIFOTH

0x40 - FIFO Water Level Register

Source

pub const fn smhc_funs(&self) -> &SMHC_FUNS

0x44 - FIFO Function Select Register

Source

pub const fn smhc_tbc0(&self) -> &SMHC_TBC0

0x48 - Transferred Byte Count between Controller and Card

Source

pub const fn smhc_tbc1(&self) -> &SMHC_TBC1

0x4c - Transferred Byte Count between Host Memory and Internal FIFO

Source

pub const fn smhc_dbgc(&self) -> &SMHC_DBGC

0x50 - Current Debug Control Register

Source

pub const fn smhc_csdc(&self) -> &SMHC_CSDC

0x54 - CRC Status Detect Control Registers

Source

pub const fn smhc_a12a(&self) -> &SMHC_A12A

0x58 - Auto Command 12 Argument Register

Source

pub const fn smhc_ntsr(&self) -> &SMHC_NTSR

0x5c - SD New Timing Set Register

Source

pub const fn smhc_hwrst(&self) -> &SMHC_HWRST

0x78 - Hardware Reset Register

Source

pub const fn smhc_idmac(&self) -> &SMHC_IDMAC

0x80 - IDMAC Control Register

Source

pub const fn smhc_dlba(&self) -> &SMHC_DLBA

0x84 - Descriptor List Base Address Register

Source

pub const fn smhc_idst(&self) -> &SMHC_IDST

0x88 - IDMAC Status Register

Source

pub const fn smhc_idie(&self) -> &SMHC_IDIE

0x8c - IDMAC Interrupt Enable Register

Source

pub const fn smhc_thld(&self) -> &SMHC_THLD

0x100 - Card Threshold Control Register

Source

pub const fn smhc_sfc(&self) -> &SMHC_SFC

0x104 - Sample FIFO Control Register

Source

pub const fn smhc_a23a(&self) -> &SMHC_A23A

0x108 - Auto Command 23 Argument Register

Source

pub const fn emmc_ddr_sbit_det(&self) -> &EMMC_DDR_SBIT_DET

0x10c - eMMC4.5 DDR Start Bit Detection Control Register

Source

pub const fn smhc_ext_cmd(&self) -> &SMHC_EXT_CMD

0x138 - Extended Command Register

Source

pub const fn smhc_ext_resp(&self) -> &SMHC_EXT_RESP

0x13c - Extended Response Register

Source

pub const fn smhc_drv_dl(&self) -> &SMHC_DRV_DL

0x140 - Drive Delay Control Register

Source

pub const fn smhc_smap_dl(&self) -> &SMHC_SMAP_DL

0x144 - Sample Delay Control Register

Source

pub const fn smhc_ds_dl(&self) -> &SMHC_DS_DL

0x148 - Data Strobe Delay Control Register

Source

pub const fn smhc_hs400_dl(&self) -> &SMHC_HS400_DL

0x14c - HS400 Delay Control Register

Source

pub const fn smhc_fifo(&self) -> &SMHC_FIFO

0x200 - Read/Write FIFO

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.