Struct esp32::sdmmc::status::R

source ·
pub struct R(_);
Expand description

Register STATUS reader

Implementations§

source§

impl R

source

pub fn fifo_rx_watermark(&self) -> FIFO_RX_WATERMARK_R

Bit 0 - FIFO reached Receive watermark level, not qualified with data transfer.

source

pub fn fifo_tx_watermark(&self) -> FIFO_TX_WATERMARK_R

Bit 1 - FIFO reached Transmit watermark level, not qualified with data transfer.

source

pub fn fifo_empty(&self) -> FIFO_EMPTY_R

Bit 2 - FIFO is empty status.

source

pub fn fifo_full(&self) -> FIFO_FULL_R

Bit 3 - FIFO is full status.

source

pub fn command_fsm_states(&self) -> COMMAND_FSM_STATES_R

Bits 4:7 - Command FSM states. 0: Idle; 1: Send init sequence; 2: Send cmd start bit; 3: Send cmd tx bit; 4: Send cmd index + arg; 5: Send cmd crc7; 6: Send cmd end bit; 7: Receive resp start bit; 8: Receive resp IRQ response; 9: Receive resp tx bit; 10: Receive resp cmd idx; 11: Receive resp data; 12: Receive resp crc7; 13: Receive resp end bit; 14: Cmd path wait NCC; 15: Wait, cmd-to-response turnaround.

source

pub fn data_3_status(&self) -> DATA_3_STATUS_R

Bit 8 - Raw selected sdhost_card_data[3], checks whether card is present. 0: card not present; 1: card present.

source

pub fn data_busy(&self) -> DATA_BUSY_R

Bit 9 - Inverted version of raw selected sdhost_card_data[0]. 0: Card data not busy; 1: Card data busy.

source

pub fn data_state_mc_busy(&self) -> DATA_STATE_MC_BUSY_R

Bit 10 - Data transmit or receive state-machine is busy.

source

pub fn response_index(&self) -> RESPONSE_INDEX_R

Bits 11:16 - Index of previous response, including any auto-stop sent by core.

source

pub fn fifo_count(&self) -> FIFO_COUNT_R

Bits 17:29 - FIFO count, number of filled locations in FIFO.

Methods from Deref<Target = R<STATUS_SPEC>>§

source

pub fn bits(&self) -> REG::Ux

Reads raw bits from register.

Trait Implementations§

source§

impl Deref for R

§

type Target = R<STATUS_SPEC>

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl From<R<STATUS_SPEC>> for R

source§

fn from(reader: R<STATUS_SPEC>) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for R

§

impl Send for R

§

impl Sync for R

§

impl Unpin for R

§

impl UnwindSafe for R

Blanket Implementations§

source§

impl<T> Any for Twhere T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

const: unstable · source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

const: unstable · source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for Twhere U: From<T>,

const: unstable · 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 Twhere U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
const: unstable · source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for Twhere U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
const: unstable · source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.