Struct mcxn947_pac::USDHC0

source ·
pub struct USDHC0 { /* private fields */ }
Expand description

uSDHC

Implementations§

source§

impl USDHC0

source

pub const PTR: *const RegisterBlock = {0x40109000 as *const usdhc0::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 ds_addr(&self) -> &DS_ADDR

0x00 - DMA System Address

source

pub fn blk_att(&self) -> &BLK_ATT

0x04 - Block Attributes

source

pub fn cmd_arg(&self) -> &CMD_ARG

0x08 - Command Argument

source

pub fn cmd_xfr_typ(&self) -> &CMD_XFR_TYP

0x0c - Command Transfer Type

source

pub fn cmd_rsp0(&self) -> &CMD_RSP0

0x10 - Command Response0

source

pub fn cmd_rsp1(&self) -> &CMD_RSP1

0x14 - Command Response1

source

pub fn cmd_rsp2(&self) -> &CMD_RSP2

0x18 - Command Response2

source

pub fn cmd_rsp3(&self) -> &CMD_RSP3

0x1c - Command Response3

source

pub fn data_buff_acc_port(&self) -> &DATA_BUFF_ACC_PORT

0x20 - Data Buffer Access Port

source

pub fn pres_state(&self) -> &PRES_STATE

0x24 - Present State

source

pub fn prot_ctrl(&self) -> &PROT_CTRL

0x28 - Protocol Control

source

pub fn sys_ctrl(&self) -> &SYS_CTRL

0x2c - System Control

source

pub fn int_status(&self) -> &INT_STATUS

0x30 - Interrupt Status

source

pub fn int_status_en(&self) -> &INT_STATUS_EN

0x34 - Interrupt Status Enable

source

pub fn int_signal_en(&self) -> &INT_SIGNAL_EN

0x38 - Interrupt Signal Enable

source

pub fn autocmd12_err_status(&self) -> &AUTOCMD12_ERR_STATUS

0x3c - Auto CMD12 Error Status

source

pub fn host_ctrl_cap(&self) -> &HOST_CTRL_CAP

0x40 - Host Controller Capabilities

source

pub fn wtmk_lvl(&self) -> &WTMK_LVL

0x44 - Watermark Level

source

pub fn mix_ctrl(&self) -> &MIX_CTRL

0x48 - Mixer Control

source

pub fn force_event(&self) -> &FORCE_EVENT

0x50 - Force Event

source

pub fn adma_err_status(&self) -> &ADMA_ERR_STATUS

0x54 - ADMA Error Status

source

pub fn adma_sys_addr(&self) -> &ADMA_SYS_ADDR

0x58 - ADMA System Address

source

pub fn dll_ctrl(&self) -> &DLL_CTRL

0x60 - DLL (Delay Line) Control

source

pub fn dll_status(&self) -> &DLL_STATUS

0x64 - DLL Status

source

pub fn clk_tune_ctrl_status(&self) -> &CLK_TUNE_CTRL_STATUS

0x68 - CLK Tuning Control and Status

source

pub fn vend_spec(&self) -> &VEND_SPEC

0xc0 - Vendor Specific Register

source

pub fn mmc_boot(&self) -> &MMC_BOOT

0xc4 - eMMC Boot

source

pub fn vend_spec2(&self) -> &VEND_SPEC2

0xc8 - Vendor Specific 2 Register

source

pub fn tuning_ctrl(&self) -> &TUNING_CTRL

0xcc - Tuning Control

Trait Implementations§

source§

impl Debug for USDHC0

source§

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

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

impl Deref for USDHC0

§

type Target = RegisterBlock

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl Send for USDHC0

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>,

§

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>,

§

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.