Struct stm32_metapac::sdmmc::regs::Dcntr
#[repr(transparent)]pub struct Dcntr(pub u32);
Expand description
The SDMMC_DCNTR register loads the value from the data length register (see SDMMC_DLENR) when the DPSM moves from the Idle state to the Wait_R or Wait_S state. As data is transferred, the counter decrements the value until it reaches 0. The DPSM then moves to the Idle state and when there has been no error, the data status end flag (DATAEND) is set.
Tuple Fields§
§0: u32
Implementations§
§impl Dcntr
impl Dcntr
pub const fn datacount(&self) -> u32
pub const fn datacount(&self) -> u32
Data count value When read, the number of remaining data bytes to be transferred is returned. Write has no effect.
pub fn set_datacount(&mut self, val: u32)
pub fn set_datacount(&mut self, val: u32)
Data count value When read, the number of remaining data bytes to be transferred is returned. Write has no effect.
Trait Implementations§
impl Copy for Dcntr
impl Eq for Dcntr
impl StructuralPartialEq for Dcntr
Auto Trait Implementations§
impl Freeze for Dcntr
impl RefUnwindSafe for Dcntr
impl Send for Dcntr
impl Sync for Dcntr
impl Unpin for Dcntr
impl UnwindSafe for Dcntr
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
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
🔬This is a nightly-only experimental API. (
clone_to_uninit
)