stm32-metapac

Crates

git

Versions

stm32u5g9vj

Flavors

Skip to main content

Cmdr

Struct Cmdr 

#[repr(transparent)]
pub struct Cmdr(pub u32);
Expand description

SDMMC command register.

Tuple Fields§

§0: u32

Implementations§

§

impl Cmdr

pub const fn cmdindex(&self) -> u8

Command index.

pub const fn set_cmdindex(&mut self, val: u8)

Command index.

pub const fn cmdtrans(&self) -> bool

The CPSM treats the command as a data transfer command, stops the interrupt period, and signals DataEnable to the DPSM.

pub const fn set_cmdtrans(&mut self, val: bool)

The CPSM treats the command as a data transfer command, stops the interrupt period, and signals DataEnable to the DPSM.

pub const fn cmdstop(&self) -> bool

The CPSM treats the command as a Stop Transmission command and signals abort to the DPSM.

pub const fn set_cmdstop(&mut self, val: bool)

The CPSM treats the command as a Stop Transmission command and signals abort to the DPSM.

pub const fn waitresp(&self) -> Waitresp

Wait for response bits.

pub const fn set_waitresp(&mut self, val: Waitresp)

Wait for response bits.

pub const fn waitint(&self) -> bool

CPSM waits for interrupt request.

pub const fn set_waitint(&mut self, val: bool)

CPSM waits for interrupt request.

pub const fn waitpend(&self) -> bool

CPSM waits for end of data transfer (CmdPend internal signal) from DPSM.

pub const fn set_waitpend(&mut self, val: bool)

CPSM waits for end of data transfer (CmdPend internal signal) from DPSM.

pub const fn cpsmen(&self) -> bool

Command path state machine (CPSM) enable bit.

pub const fn set_cpsmen(&mut self, val: bool)

Command path state machine (CPSM) enable bit.

pub const fn dthold(&self) -> bool

Hold new data block transmission and reception in the DPSM.

pub const fn set_dthold(&mut self, val: bool)

Hold new data block transmission and reception in the DPSM.

pub const fn bootmode(&self) -> bool

Select the boot mode procedure to be used.

pub const fn set_bootmode(&mut self, val: bool)

Select the boot mode procedure to be used.

pub const fn booten(&self) -> bool

Enable boot mode procedure.

pub const fn set_booten(&mut self, val: bool)

Enable boot mode procedure.

pub const fn cmdsuspend(&self) -> bool

The CPSM treats the command as a Suspend or Resume command and signals interrupt period start/end.

pub const fn set_cmdsuspend(&mut self, val: bool)

The CPSM treats the command as a Suspend or Resume command and signals interrupt period start/end.

Trait Implementations§

§

impl Clone for Cmdr

§

fn clone(&self) -> Cmdr

Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
§

impl Copy for Cmdr

§

impl Default for Cmdr

§

fn default() -> Cmdr

Returns the “default value” for a type. Read more
§

impl Eq for Cmdr

§

impl PartialEq for Cmdr

§

fn eq(&self, other: &Cmdr) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
§

impl StructuralPartialEq for Cmdr

Auto Trait Implementations§

§

impl Freeze for Cmdr

§

impl RefUnwindSafe for Cmdr

§

impl Send for Cmdr

§

impl Sync for Cmdr

§

impl Unpin for Cmdr

§

impl UnsafeUnpin for Cmdr

§

impl UnwindSafe for Cmdr

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> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. 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 = !

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.