Struct stm32_metapac::sdmmc::regs::Dlenr
#[repr(transparent)]pub struct Dlenr(pub u32);
Expand description
The SDMMC_DLENR register contains the number of data bytes to be transferred. The value is loaded into the data counter when data transfer starts.
Tuple Fields§
§0: u32
Implementations§
§impl Dlenr
impl Dlenr
pub const fn datalength(&self) -> u32
pub const fn datalength(&self) -> u32
Data length value This register can only be written by firmware when DPSM is inactive (DPSMACT = 0). Number of data bytes to be transferred. When DDR = 1 DATALENGTH is truncated to a multiple of 2. (The last odd byte is not transfered) When DATALENGTH = 0 no data will be transfered, when requested by a CPSMEN and CMDTRANS = 1 also no command will be transfered. DTEN and CPSMEN are cleared to 0.
pub fn set_datalength(&mut self, val: u32)
pub fn set_datalength(&mut self, val: u32)
Data length value This register can only be written by firmware when DPSM is inactive (DPSMACT = 0). Number of data bytes to be transferred. When DDR = 1 DATALENGTH is truncated to a multiple of 2. (The last odd byte is not transfered) When DATALENGTH = 0 no data will be transfered, when requested by a CPSMEN and CMDTRANS = 1 also no command will be transfered. DTEN and CPSMEN are cleared to 0.
Trait Implementations§
impl Copy for Dlenr
impl Eq for Dlenr
impl StructuralPartialEq for Dlenr
Auto Trait Implementations§
impl Freeze for Dlenr
impl RefUnwindSafe for Dlenr
impl Send for Dlenr
impl Sync for Dlenr
impl Unpin for Dlenr
impl UnwindSafe for Dlenr
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
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)
clone_to_uninit
)