Struct Cmdr
#[repr(transparent)]pub struct Cmdr(pub u32);Expand description
SDMMC command register.
Tuple Fields§
§0: u32Implementations§
§impl Cmdr
impl Cmdr
pub const fn set_cmdindex(&mut self, val: u8)
pub const fn set_cmdindex(&mut self, val: u8)
Command index.
pub const fn cmdtrans(&self) -> bool
pub const fn cmdtrans(&self) -> bool
The CPSM treats the command as a data transfer command, stops the interrupt period, and signals DataEnable to the DPSM.
pub const fn set_cmdtrans(&mut self, val: bool)
pub const fn set_cmdtrans(&mut self, val: bool)
The CPSM treats the command as a data transfer command, stops the interrupt period, and signals DataEnable to the DPSM.
pub const fn cmdstop(&self) -> bool
pub const fn cmdstop(&self) -> bool
The CPSM treats the command as a Stop Transmission command and signals abort to the DPSM.
pub const fn set_cmdstop(&mut self, val: bool)
pub const fn set_cmdstop(&mut self, val: bool)
The CPSM treats the command as a Stop Transmission command and signals abort to the DPSM.
pub const fn set_waitresp(&mut self, val: Waitresp)
pub const fn set_waitresp(&mut self, val: Waitresp)
Wait for response bits.
pub const fn set_waitint(&mut self, val: bool)
pub const fn set_waitint(&mut self, val: bool)
CPSM waits for interrupt request.
pub const fn waitpend(&self) -> bool
pub const fn waitpend(&self) -> bool
CPSM waits for end of data transfer (CmdPend internal signal) from DPSM.
pub const fn set_waitpend(&mut self, val: bool)
pub const fn set_waitpend(&mut self, val: bool)
CPSM waits for end of data transfer (CmdPend internal signal) from DPSM.
pub const fn set_cpsmen(&mut self, val: bool)
pub const fn set_cpsmen(&mut self, val: bool)
Command path state machine (CPSM) enable bit.
pub const fn set_dthold(&mut self, val: bool)
pub const fn set_dthold(&mut self, val: bool)
Hold new data block transmission and reception in the DPSM.
pub const fn set_bootmode(&mut self, val: bool)
pub const fn set_bootmode(&mut self, val: bool)
Select the boot mode procedure to be used.
pub const fn set_booten(&mut self, val: bool)
pub const fn set_booten(&mut self, val: bool)
Enable boot mode procedure.
pub const fn cmdsuspend(&self) -> bool
pub const fn cmdsuspend(&self) -> bool
The CPSM treats the command as a Suspend or Resume command and signals interrupt period start/end.
pub const fn set_cmdsuspend(&mut self, val: bool)
pub const fn set_cmdsuspend(&mut self, val: bool)
The CPSM treats the command as a Suspend or Resume command and signals interrupt period start/end.