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.