Struct stm32_hal2::pac::sdmmc1::dctrl::W

source ·
pub struct W(_);
Expand description

Register DCTRL writer

Implementations§

source§

impl W

source

pub fn dten(&mut self) -> BitWriterRaw<'_, u32, DCTRL_SPEC, bool, BitM, 0>

Bit 0 - Data transfer enable bit This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). This bit is cleared by Hardware when data transfer completes. This bit shall only be used to transfer data when no associated data transfer command is used, i.e. shall not be used with SD or eMMC cards.

source

pub fn dtdir(&mut self) -> BitWriterRaw<'_, u32, DCTRL_SPEC, bool, BitM, 1>

Bit 1 - Data transfer direction selection This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0).

source

pub fn dtmode( &mut self ) -> FieldWriterRaw<'_, u32, DCTRL_SPEC, u8, u8, Unsafe, 2, 2>

Bits 2:3 - Data transfer mode selection. This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0).

source

pub fn dblocksize( &mut self ) -> FieldWriterRaw<'_, u32, DCTRL_SPEC, u8, u8, Unsafe, 4, 4>

Bits 4:7 - Data block size This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). Define the data block length when the block data transfer mode is selected: When DATALENGTH is not a multiple of DBLOCKSIZE, the transfered data is truncated at a multiple of DBLOCKSIZE. (Any remain data will not be transfered.) When DDR = 1, DBLOCKSIZE = 0000 shall not be used. (No data will be transfered)

source

pub fn rwstart(&mut self) -> BitWriterRaw<'_, u32, DCTRL_SPEC, bool, BitM, 8>

Bit 8 - Read wait start. If this bit is set, read wait operation starts.

source

pub fn rwstop(&mut self) -> BitWriterRaw<'_, u32, DCTRL_SPEC, bool, BitM, 9>

Bit 9 - Read wait stop This bit is written by firmware and auto cleared by hardware when the DPSM moves from the READ_WAIT state to the WAIT_R or IDLE state.

source

pub fn rwmod(&mut self) -> BitWriterRaw<'_, u32, DCTRL_SPEC, bool, BitM, 10>

Bit 10 - Read wait mode. This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0).

source

pub fn sdioen(&mut self) -> BitWriterRaw<'_, u32, DCTRL_SPEC, bool, BitM, 11>

Bit 11 - SD I/O interrupt enable functions This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0). If this bit is set, the DPSM enables the SD I/O card specific interrupt operation.

source

pub fn bootacken(&mut self) -> BitWriterRaw<'_, u32, DCTRL_SPEC, bool, BitM, 12>

Bit 12 - Enable the reception of the boot acknowledgment. This bit can only be written by firmware when DPSM is inactive (DPSMACT = 0).

source

pub fn fiforst(&mut self) -> BitWriterRaw<'_, u32, DCTRL_SPEC, bool, BitM, 13>

Bit 13 - FIFO reset, will flush any remaining data. This bit can only be written by firmware when IDMAEN= 0 and DPSM is active (DPSMACT = 1). This bit will only take effect when a transfer error or transfer hold occurs.

source

pub unsafe fn bits(&mut self, bits: u32) -> &mut W

Writes raw bits to the register.

Methods from Deref<Target = W<DCTRL_SPEC>>§

source

pub unsafe fn bits(&mut self, bits: <REG as RegisterSpec>::Ux) -> &mut W<REG>

Writes raw bits to the register.

Trait Implementations§

source§

impl Deref for W

§

type Target = W<DCTRL_SPEC>

The resulting type after dereferencing.
source§

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

Dereferences the value.
source§

impl DerefMut for W

source§

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

Mutably dereferences the value.
source§

impl From<W<DCTRL_SPEC>> for W

source§

fn from(writer: W<DCTRL_SPEC>) -> W

Converts to this type from the input type.

Auto Trait Implementations§

§

impl RefUnwindSafe for W

§

impl Send for W

§

impl Sync for W

§

impl Unpin for W

§

impl UnwindSafe for W

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.