Struct Dctrl
#[repr(transparent)]pub struct Dctrl(pub u32);Expand description
SDMMC data control register.
Tuple Fields§
§0: u32Implementations§
§impl Dctrl
impl Dctrl
pub const fn set_dtmode(&mut self, val: Dtmode)
pub const fn set_dtmode(&mut self, val: Dtmode)
Data transfer mode selection.
pub const fn dblocksize(&self) -> u8
pub const fn dblocksize(&self) -> u8
Data block size, as log2 of the block length in bytes (0 = 1 byte … 14 = 16384 bytes, 15 reserved). Can only be written when DPSM is inactive (DPSMACT = 0). When DDR = 1, 0 must not be used.
pub const fn set_dblocksize(&mut self, val: u8)
pub const fn set_dblocksize(&mut self, val: u8)
Data block size, as log2 of the block length in bytes (0 = 1 byte … 14 = 16384 bytes, 15 reserved). Can only be written when DPSM is inactive (DPSMACT = 0). When DDR = 1, 0 must not be used.
pub const fn set_rwstart(&mut self, val: bool)
pub const fn set_rwstart(&mut self, val: bool)
Read Wait start.
pub const fn set_rwstop(&mut self, val: bool)
pub const fn set_rwstop(&mut self, val: bool)
Read Wait stop.
pub const fn set_sdioen(&mut self, val: bool)
pub const fn set_sdioen(&mut self, val: bool)
SD I/O interrupt enable functions.
pub const fn set_bootacken(&mut self, val: bool)
pub const fn set_bootacken(&mut self, val: bool)
Enable the reception of the boot acknowledgment.
pub const fn set_fiforst(&mut self, val: bool)
pub const fn set_fiforst(&mut self, val: bool)
FIFO reset, flushes any remaining data.
Trait Implementations§
impl Copy for Dctrl
impl Eq for Dctrl
impl StructuralPartialEq for Dctrl
Auto Trait Implementations§
impl Freeze for Dctrl
impl RefUnwindSafe for Dctrl
impl Send for Dctrl
impl Sync for Dctrl
impl Unpin for Dctrl
impl UnsafeUnpin for Dctrl
impl UnwindSafe for Dctrl
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more