pub struct SDHOST { /* private fields */ }

Implementations§

source§

impl SDHOST

source

pub unsafe fn steal() -> SDHOST

Unsafely create an instance of this peripheral out of thin air.

§Safety

You must ensure that you’re only using one instance of this type at a time.

source

pub const PTR: *const <SDHOST as Deref>::Target = {0x3ff68000 as *const <esp32::SDHOST as core::ops::Deref>::Target}

Pointer to the register block

source

pub const fn ptr() -> *const <SDHOST as Deref>::Target

Return the pointer to the register block

Methods from Deref<Target = RegisterBlock>§

source

pub fn ctrl(&self) -> &Reg<CTRL_SPEC>

0x00 - Control register

source

pub fn clkdiv(&self) -> &Reg<CLKDIV_SPEC>

0x08 - Clock divider configuration register

source

pub fn clksrc(&self) -> &Reg<CLKSRC_SPEC>

0x0c - Clock source selection register

source

pub fn clkena(&self) -> &Reg<CLKENA_SPEC>

0x10 - Clock enable register

source

pub fn tmout(&self) -> &Reg<TMOUT_SPEC>

0x14 - Data and response timeout configuration register

source

pub fn ctype(&self) -> &Reg<CTYPE_SPEC>

0x18 - Card bus width configuration register

source

pub fn blksiz(&self) -> &Reg<BLKSIZ_SPEC>

0x1c - Card data block size configuration register

source

pub fn bytcnt(&self) -> &Reg<BYTCNT_SPEC>

0x20 - Data transfer length configuration register

source

pub fn intmask(&self) -> &Reg<INTMASK_SPEC>

0x24 - SDIO interrupt mask register

source

pub fn cmdarg(&self) -> &Reg<CMDARG_SPEC>

0x28 - Command argument data register

source

pub fn cmd(&self) -> &Reg<CMD_SPEC>

0x2c - Command and boot configuration register

source

pub fn resp0(&self) -> &Reg<RESP0_SPEC>

0x30 - Response data register

source

pub fn resp1(&self) -> &Reg<RESP1_SPEC>

0x34 - Long response data register

source

pub fn resp2(&self) -> &Reg<RESP2_SPEC>

0x38 - Long response data register

source

pub fn resp3(&self) -> &Reg<RESP3_SPEC>

0x3c - Long response data register

source

pub fn mintsts(&self) -> &Reg<MINTSTS_SPEC>

0x40 - Masked interrupt status register

source

pub fn rintsts(&self) -> &Reg<RINTSTS_SPEC>

0x44 - Raw interrupt status register

source

pub fn status(&self) -> &Reg<STATUS_SPEC>

0x48 - SD/MMC status register

source

pub fn fifoth(&self) -> &Reg<FIFOTH_SPEC>

0x4c - FIFO configuration register

source

pub fn cdetect(&self) -> &Reg<CDETECT_SPEC>

0x50 - Card detect register

source

pub fn wrtprt(&self) -> &Reg<WRTPRT_SPEC>

0x54 - Card write protection (WP) status register

source

pub fn tcbcnt(&self) -> &Reg<TCBCNT_SPEC>

0x5c - Transferred byte count register

source

pub fn tbbcnt(&self) -> &Reg<TBBCNT_SPEC>

0x60 - Transferred byte count register

source

pub fn debnce(&self) -> &Reg<DEBNCE_SPEC>

0x64 - Debounce filter time configuration register

source

pub fn usrid(&self) -> &Reg<USRID_SPEC>

0x68 - User ID (scratchpad) register

source

pub fn verid(&self) -> &Reg<VERID_SPEC>

0x6c - Version ID (scratchpad) register

source

pub fn hcon(&self) -> &Reg<HCON_SPEC>

0x70 - Hardware feature register

source

pub fn uhs(&self) -> &Reg<UHS_SPEC>

0x74 - UHS-1 register

source

pub fn rst_n(&self) -> &Reg<RST_N_SPEC>

0x78 - Card reset register

source

pub fn bmod(&self) -> &Reg<BMOD_SPEC>

0x80 - Burst mode transfer configuration register

source

pub fn pldmnd(&self) -> &Reg<PLDMND_SPEC>

0x84 - Poll demand configuration register

source

pub fn dbaddr(&self) -> &Reg<DBADDR_SPEC>

0x88 - Descriptor base address register

source

pub fn idsts(&self) -> &Reg<IDSTS_SPEC>

0x8c - IDMAC status register

source

pub fn idinten(&self) -> &Reg<IDINTEN_SPEC>

0x90 - IDMAC interrupt enable register

source

pub fn dscaddr(&self) -> &Reg<DSCADDR_SPEC>

0x94 - Host descriptor address pointer

source

pub fn bufaddr(&self) -> &Reg<BUFADDR_SPEC>

0x98 - Host buffer address pointer register

source

pub fn cardthrctl(&self) -> &Reg<CARDTHRCTL_SPEC>

0x100 - Card Threshold Control register

source

pub fn emmcddr(&self) -> &Reg<EMMCDDR_SPEC>

0x10c - eMMC DDR register

source

pub fn enshift(&self) -> &Reg<ENSHIFT_SPEC>

0x110 - Enable Phase Shift register

source

pub fn buffifo(&self) -> &Reg<BUFFIFO_SPEC>

0x200 - CPU write and read transmit data by FIFO

source

pub fn clk_edge_sel(&self) -> &Reg<CLK_EDGE_SEL_SPEC>

0x800 - SDIO control register.

Trait Implementations§

source§

impl Debug for SDHOST

source§

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

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

impl Deref for SDHOST

§

type Target = <SDHOST as Deref>::Target

The resulting type after dereferencing.
source§

fn deref(&self) -> &<SDHOST as Deref>::Target

Dereferences the value.
source§

impl DerefMut for SDHOST

source§

fn deref_mut(&mut self) -> &mut <SDHOST as Deref>::Target

Mutably dereferences the value.
source§

impl Peripheral for SDHOST

§

type P = SDHOST

Peripheral singleton type
source§

unsafe fn clone_unchecked(&mut self) -> <SDHOST as Peripheral>::P

Unsafely clone (duplicate) a peripheral singleton. Read more
source§

fn into_ref<'a>(self) -> PeripheralRef<'a, Self::P>
where Self: 'a,

Convert a value into a PeripheralRef. 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>,

§

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.