stm32-metapac

Crates

git

Versions

stm32u5g9vj

Flavors

Skip to main content

Star

Struct Star 

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

SDMMC status register.

Tuple Fields§

§0: u32

Implementations§

§

impl Star

pub const fn ccrcfail(&self) -> bool

Command response received (CRC check failed).

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

Command response received (CRC check failed).

pub const fn dcrcfail(&self) -> bool

Data block sent/received (CRC check failed).

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

Data block sent/received (CRC check failed).

pub const fn ctimeout(&self) -> bool

Command response timeout.

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

Command response timeout.

pub const fn dtimeout(&self) -> bool

Data timeout.

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

Data timeout.

pub const fn txunderr(&self) -> bool

Transmit FIFO underrun error (masked by hardware when IDMA is enabled).

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

Transmit FIFO underrun error (masked by hardware when IDMA is enabled).

pub const fn rxoverr(&self) -> bool

Received FIFO overrun error (masked by hardware when IDMA is enabled).

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

Received FIFO overrun error (masked by hardware when IDMA is enabled).

pub const fn cmdrend(&self) -> bool

Command response received (CRC check passed, or no CRC).

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

Command response received (CRC check passed, or no CRC).

pub const fn cmdsent(&self) -> bool

Command sent (no response required).

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

Command sent (no response required).

pub const fn dataend(&self) -> bool

Data transfer ended correctly.

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

Data transfer ended correctly.

pub const fn dhold(&self) -> bool

Data transfer Hold.

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

Data transfer Hold.

pub const fn dbckend(&self) -> bool

Data block sent/received.

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

Data block sent/received.

pub const fn dabort(&self) -> bool

Data transfer aborted by CMD12.

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

Data transfer aborted by CMD12.

pub const fn dpsmact(&self) -> bool

Data path state machine active, i.e. not in Idle state.

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

Data path state machine active, i.e. not in Idle state.

pub const fn cpsmact(&self) -> bool

Command path state machine active, i.e. not in Idle state.

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

Command path state machine active, i.e. not in Idle state.

pub const fn txfifohe(&self) -> bool

Transmit FIFO half empty.

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

Transmit FIFO half empty.

pub const fn rxfifohf(&self) -> bool

Receive FIFO half full.

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

Receive FIFO half full.

pub const fn txfifof(&self) -> bool

Transmit FIFO full.

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

Transmit FIFO full.

pub const fn rxfifof(&self) -> bool

Receive FIFO full.

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

Receive FIFO full.

pub const fn txfifoe(&self) -> bool

Transmit FIFO empty.

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

Transmit FIFO empty.

pub const fn rxfifoe(&self) -> bool

Receive FIFO empty.

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

Receive FIFO empty.

pub const fn busyd0(&self) -> bool

Inverted value of SDMMC_D0 line (Busy), sampled at the end of a CMD response and a second time 2 SDMMC_CK cycles after the CMD response.

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

Inverted value of SDMMC_D0 line (Busy), sampled at the end of a CMD response and a second time 2 SDMMC_CK cycles after the CMD response.

pub const fn busyd0end(&self) -> bool

end of SDMMC_D0 Busy following a CMD response detected.

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

end of SDMMC_D0 Busy following a CMD response detected.

pub const fn sdioit(&self) -> bool

SDIO interrupt received.

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

SDIO interrupt received.

pub const fn ackfail(&self) -> bool

Boot acknowledgment received (boot acknowledgment check fail).

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

Boot acknowledgment received (boot acknowledgment check fail).

pub const fn acktimeout(&self) -> bool

Boot acknowledgment timeout.

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

Boot acknowledgment timeout.

pub const fn vswend(&self) -> bool

Voltage switch critical timing section completion.

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

Voltage switch critical timing section completion.

pub const fn ckstop(&self) -> bool

SDMMC_CK stopped in Voltage switch procedure.

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

SDMMC_CK stopped in Voltage switch procedure.

pub const fn idmate(&self) -> bool

IDMA transfer error.

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

IDMA transfer error.

pub const fn idmabtc(&self) -> bool

IDMA buffer transfer complete.

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

IDMA buffer transfer complete.

Trait Implementations§

§

impl Clone for Star

§

fn clone(&self) -> Star

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 Star

§

impl Default for Star

§

fn default() -> Star

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

impl Eq for Star

§

impl PartialEq for Star

§

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

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

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

Inequality operator !=. Read more
§

impl StructuralPartialEq for Star

Auto Trait Implementations§

§

impl Freeze for Star

§

impl RefUnwindSafe for Star

§

impl Send for Star

§

impl Sync for Star

§

impl Unpin for Star

§

impl UnsafeUnpin for Star

§

impl UnwindSafe for Star

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.