Struct xmc4800::sdmmc::RegisterBlock

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

Register block

Implementations§

source§

impl RegisterBlock

source

pub const fn block_size(&self) -> &BLOCK_SIZE

0x04 - Block Size Register

source

pub const fn block_count(&self) -> &BLOCK_COUNT

0x06 - Block Count Register

source

pub const fn argument1(&self) -> &ARGUMENT1

0x08 - Argument1 Register

source

pub const fn transfer_mode(&self) -> &TRANSFER_MODE

0x0c - Transfer Mode Register

source

pub const fn command(&self) -> &COMMAND

0x0e - Command Register

source

pub const fn response0(&self) -> &RESPONSE0

0x10 - Response 0 Register

source

pub const fn response2(&self) -> &RESPONSE2

0x14 - Response 2 Register

source

pub const fn response4(&self) -> &RESPONSE4

0x18 - Response 4 Register

source

pub const fn response6(&self) -> &RESPONSE6

0x1c - Response 6 Register

source

pub const fn data_buffer(&self) -> &DATA_BUFFER

0x20 - Data Buffer Register

source

pub const fn present_state(&self) -> &PRESENT_STATE

0x24 - Present State Register

source

pub const fn host_ctrl(&self) -> &HOST_CTRL

0x28 - Host Control Register

source

pub const fn power_ctrl(&self) -> &POWER_CTRL

0x29 - Power Control Register

source

pub const fn block_gap_ctrl(&self) -> &BLOCK_GAP_CTRL

0x2a - Block Gap Control Register

source

pub const fn wakeup_ctrl(&self) -> &WAKEUP_CTRL

0x2b - Wake-up Control Register

source

pub const fn clock_ctrl(&self) -> &CLOCK_CTRL

0x2c - Clock Control Register

source

pub const fn timeout_ctrl(&self) -> &TIMEOUT_CTRL

0x2e - Timeout Control Register

source

pub const fn sw_reset(&self) -> &SW_RESET

0x2f - Software Reset Register

source

pub const fn int_status_norm(&self) -> &INT_STATUS_NORM

0x30 - Normal Interrupt Status Register

source

pub const fn int_status_err(&self) -> &INT_STATUS_ERR

0x32 - Error Interrupt Status Register

source

pub const fn en_int_status_norm(&self) -> &EN_INT_STATUS_NORM

0x34 - Normal Interrupt Status Enable Register

source

pub const fn en_int_status_err(&self) -> &EN_INT_STATUS_ERR

0x36 - Error Interrupt Status Enable Register

source

pub const fn en_int_signal_norm(&self) -> &EN_INT_SIGNAL_NORM

0x38 - Normal Interrupt Signal Enable Register

source

pub const fn en_int_signal_err(&self) -> &EN_INT_SIGNAL_ERR

0x3a - Error Interrupt Signal Enable Register

source

pub const fn acmd_err_status(&self) -> &ACMD_ERR_STATUS

0x3c - Auto CMD Error Status Register

source

pub const fn capabilities(&self) -> &CAPABILITIES

0x40 - Capabilities Register

source

pub const fn capabilities_hi(&self) -> &CAPABILITIES_HI

0x44 - Capabilities Register High

source

pub const fn max_current_cap(&self) -> &MAX_CURRENT_CAP

0x48 - Maximum Current Capabilities Register

source

pub const fn force_event_acmd_err_status(&self) -> &FORCE_EVENT_ACMD_ERR_STATUS

0x50 - Force Event Register for Auto CMD Error Status

source

pub const fn force_event_err_status(&self) -> &FORCE_EVENT_ERR_STATUS

0x52 - Force Event Register for Error Interrupt Status

source

pub const fn debug_sel(&self) -> &DEBUG_SEL

0x74 - Debug Selection Register

source

pub const fn slot_int_status(&self) -> &SLOT_INT_STATUS

0xfc - Slot Interrupt Status Register

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.