pub struct R(_);
Expand description
Register CMDR
reader
Implementations
sourceimpl R
impl R
sourcepub fn cmdindex(&self) -> CMDINDEX_R
pub fn cmdindex(&self) -> CMDINDEX_R
Bits 0:5 - Command index. This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). The command index is sent to the card as part of a command message.
sourcepub fn cmdtrans(&self) -> CMDTRANS_R
pub fn cmdtrans(&self) -> CMDTRANS_R
Bit 6 - The CPSM treats the command as a data transfer command, stops the interrupt period, and signals DataEnable to the DPSM This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). If this bit is set, the CPSM issues an end of interrupt period and issues DataEnable signal to the DPSM when the command is sent.
sourcepub fn cmdstop(&self) -> CMDSTOP_R
pub fn cmdstop(&self) -> CMDSTOP_R
Bit 7 - The CPSM treats the command as a Stop Transmission command and signals Abort to the DPSM. This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). If this bit is set, the CPSM issues the Abort signal to the DPSM when the command is sent.
sourcepub fn waitresp(&self) -> WAITRESP_R
pub fn waitresp(&self) -> WAITRESP_R
Bits 8:9 - Wait for response bits. This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). They are used to configure whether the CPSM is to wait for a response, and if yes, which kind of response.
sourcepub fn waitint(&self) -> WAITINT_R
pub fn waitint(&self) -> WAITINT_R
Bit 10 - CPSM waits for interrupt request. If this bit is set, the CPSM disables command timeout and waits for an card interrupt request (Response). If this bit is cleared in the CPSM Wait state, will cause the abort of the interrupt mode.
sourcepub fn waitpend(&self) -> WAITPEND_R
pub fn waitpend(&self) -> WAITPEND_R
Bit 11 - CPSM Waits for end of data transfer (CmdPend internal signal) from DPSM. This bit when set, the CPSM waits for the end of data transfer trigger before it starts sending a command. WAITPEND is only taken into account when DTMODE = MMC stream data transfer, WIDBUS = 1-bit wide bus mode, DPSMACT = 1 and DTDIR = from host to card.
sourcepub fn cpsmen(&self) -> CPSMEN_R
pub fn cpsmen(&self) -> CPSMEN_R
Bit 12 - Command path state machine (CPSM) Enable bit This bit is written 1 by firmware, and cleared by hardware when the CPSM enters the Idle state. If this bit is set, the CPSM is enabled. When DTEN = 1, no command will be transfered nor boot procedure will be started. CPSMEN is cleared to 0.
sourcepub fn dthold(&self) -> DTHOLD_R
pub fn dthold(&self) -> DTHOLD_R
Bit 13 - Hold new data block transmission and reception in the DPSM. If this bit is set, the DPSM will not move from the Wait_S state to the Send state or from the Wait_R state to the Receive state.
sourcepub fn bootmode(&self) -> BOOTMODE_R
pub fn bootmode(&self) -> BOOTMODE_R
Bit 14 - Select the boot mode procedure to be used. This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0)
sourcepub fn cmdsuspend(&self) -> CMDSUSPEND_R
pub fn cmdsuspend(&self) -> CMDSUSPEND_R
Bit 16 - The CPSM treats the command as a Suspend or Resume command and signals interrupt period start/end. This bit can only be written by firmware when CPSM is disabled (CPSMEN = 0). CMDSUSPEND = 1 and CMDTRANS = 0 Suspend command, start interrupt period when response bit BS=0. CMDSUSPEND = 1 and CMDTRANS = 1 Resume command with data, end interrupt period when response bit DF=1.
Methods from Deref<Target = R<CMDR_SPEC>>
sourcepub fn bits(&self) -> <REG as RegisterSpec>::Ux
pub fn bits(&self) -> <REG as RegisterSpec>::Ux
Reads raw bits from register.
Trait Implementations
Auto Trait Implementations
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more