SMHC2

Struct SMHC2 

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

SD/MMC Host Controller

Implementations§

Source§

impl SMHC2

Source

pub const PTR: *const RegisterBlock = {0x4022000 as *const smhc::RegisterBlock}

Pointer to the register block

Source

pub const fn ptr() -> *const RegisterBlock

Return the pointer to the register block

Source

pub unsafe fn steal() -> Self

Steal an instance of this peripheral

§Safety

Ensure that the new instance of the peripheral cannot be used in a way that may race with any existing instances, for example by only accessing read-only or write-only registers, or by consuming the original peripheral and using critical sections to coordinate access between multiple new instances.

Additionally, other software such as HALs may rely on only one peripheral instance existing to ensure memory safety; ensure no stolen instances are passed to such software.

Methods from Deref<Target = RegisterBlock>§

Source

pub fn smhc_ctrl(&self) -> &SMHC_CTRL

0x00 - Control Register

Source

pub fn smhc_clkdiv(&self) -> &SMHC_CLKDIV

0x04 - Clock Control Register

Source

pub fn smhc_tmout(&self) -> &SMHC_TMOUT

0x08 - Time Out Register

Source

pub fn smhc_ctype(&self) -> &SMHC_CTYPE

0x0c - Bus Width Register

Source

pub fn smhc_blksiz(&self) -> &SMHC_BLKSIZ

0x10 - Block Size Register

Source

pub fn smhc_bytcnt(&self) -> &SMHC_BYTCNT

0x14 - Byte Count Register

Source

pub fn smhc_cmd(&self) -> &SMHC_CMD

0x18 - Command Register

Source

pub fn smhc_cmdarg(&self) -> &SMHC_CMDARG

0x1c - Command Argument Register

Source

pub fn smhc_resp0(&self) -> &SMHC_RESP0

0x20 - Response 0 Register

Source

pub fn smhc_resp1(&self) -> &SMHC_RESP1

0x24 - Response 1 Register

Source

pub fn smhc_resp2(&self) -> &SMHC_RESP2

0x28 - Response 2 Register

Source

pub fn smhc_resp3(&self) -> &SMHC_RESP3

0x2c - Response 3 Register

Source

pub fn smhc_intmask(&self) -> &SMHC_INTMASK

0x30 - Interrupt Mask Register

Source

pub fn smhc_mintsts(&self) -> &SMHC_MINTSTS

0x34 - Masked Interrupt Status Register

Source

pub fn smhc_rintsts(&self) -> &SMHC_RINTSTS

0x38 - Raw Interrupt Status Register

Source

pub fn smhc_status(&self) -> &SMHC_STATUS

0x3c - Status Register

Source

pub fn smhc_fifoth(&self) -> &SMHC_FIFOTH

0x40 - FIFO Water Level Register

Source

pub fn smhc_funs(&self) -> &SMHC_FUNS

0x44 - FIFO Function Select Register

Source

pub fn smhc_tbc0(&self) -> &SMHC_TBC0

0x48 - Transferred Byte Count between Controller and Card

Source

pub fn smhc_tbc1(&self) -> &SMHC_TBC1

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

Source

pub fn smhc_dbgc(&self) -> &SMHC_DBGC

0x50 - Current Debug Control Register

Source

pub fn smhc_csdc(&self) -> &SMHC_CSDC

0x54 - CRC Status Detect Control Registers

Source

pub fn smhc_a12a(&self) -> &SMHC_A12A

0x58 - Auto Command 12 Argument Register

Source

pub fn smhc_ntsr(&self) -> &SMHC_NTSR

0x5c - SD New Timing Set Register

Source

pub fn smhc_hwrst(&self) -> &SMHC_HWRST

0x78 - Hardware Reset Register

Source

pub fn smhc_idmac(&self) -> &SMHC_IDMAC

0x80 - IDMAC Control Register

Source

pub fn smhc_dlba(&self) -> &SMHC_DLBA

0x84 - Descriptor List Base Address Register

Source

pub fn smhc_idst(&self) -> &SMHC_IDST

0x88 - IDMAC Status Register

Source

pub fn smhc_idie(&self) -> &SMHC_IDIE

0x8c - IDMAC Interrupt Enable Register

Source

pub fn smhc_thld(&self) -> &SMHC_THLD

0x100 - Card Threshold Control Register

Source

pub fn smhc_sfc(&self) -> &SMHC_SFC

0x104 - Sample FIFO Control Register

Source

pub fn smhc_a23a(&self) -> &SMHC_A23A

0x108 - Auto Command 23 Argument Register

Source

pub fn emmc_ddr_sbit_det(&self) -> &EMMC_DDR_SBIT_DET

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

Source

pub fn smhc_ext_cmd(&self) -> &SMHC_EXT_CMD

0x138 - Extended Command Register

Source

pub fn smhc_ext_resp(&self) -> &SMHC_EXT_RESP

0x13c - Extended Response Register

Source

pub fn smhc_drv_dl(&self) -> &SMHC_DRV_DL

0x140 - Drive Delay Control Register

Source

pub fn smhc_smap_dl(&self) -> &SMHC_SMAP_DL

0x144 - Sample Delay Control Register

Source

pub fn smhc_ds_dl(&self) -> &SMHC_DS_DL

0x148 - Data Strobe Delay Control Register

Source

pub fn smhc_hs400_dl(&self) -> &SMHC_HS400_DL

0x14c - HS400 Delay Control Register

Source

pub fn smhc_fifo(&self) -> &SMHC_FIFO

0x200 - Read/Write FIFO

Trait Implementations§

Source§

impl Debug for SMHC2

Source§

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

Formats the value using the given formatter. Read more
Source§

impl Deref for SMHC2

Source§

type Target = RegisterBlock

The resulting type after dereferencing.
Source§

fn deref(&self) -> &Self::Target

Dereferences the value.
Source§

impl Send for SMHC2

Auto Trait Implementations§

§

impl Freeze for SMHC2

§

impl RefUnwindSafe for SMHC2

§

impl !Sync for SMHC2

§

impl Unpin for SMHC2

§

impl UnwindSafe for SMHC2

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<P, T> Receiver for P
where P: Deref<Target = T> + ?Sized, T: ?Sized,

Source§

type Target = T

🔬This is a nightly-only experimental API. (arbitrary_self_types)
The target type on which the method may be called.
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.