pub struct R(_);Expand description
Register CMDR reader
Implementations§
source§impl R
impl R
sourcepub fn cmdindex(&self) -> FieldReaderRaw<u8, u8>
pub fn cmdindex(&self) -> FieldReaderRaw<u8, u8>
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) -> BitReaderRaw<bool>
pub fn cmdtrans(&self) -> BitReaderRaw<bool>
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) -> BitReaderRaw<bool>
pub fn cmdstop(&self) -> BitReaderRaw<bool>
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) -> FieldReaderRaw<u8, u8>
pub fn waitresp(&self) -> FieldReaderRaw<u8, u8>
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) -> BitReaderRaw<bool>
pub fn waitint(&self) -> BitReaderRaw<bool>
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) -> BitReaderRaw<bool>
pub fn waitpend(&self) -> BitReaderRaw<bool>
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) -> BitReaderRaw<bool>
pub fn cpsmen(&self) -> BitReaderRaw<bool>
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) -> BitReaderRaw<bool>
pub fn dthold(&self) -> BitReaderRaw<bool>
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) -> BitReaderRaw<bool>
pub fn bootmode(&self) -> BitReaderRaw<bool>
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) -> BitReaderRaw<bool>
pub fn cmdsuspend(&self) -> BitReaderRaw<bool>
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.