Struct stm32_metapac::sdmmc::regs::Idmabsizer
#[repr(transparent)]pub struct Idmabsizer(pub u32);
Expand description
The SDMMC_IDMABSIZER register contains the buffers size when in double buffer configuration.
Tuple Fields§
§0: u32
Implementations§
§impl Idmabsizer
impl Idmabsizer
pub const fn idmabndt(&self) -> u8
pub const fn idmabndt(&self) -> u8
Number of transfers per buffer. This 8-bit value shall be multiplied by 8 to get the size of the buffer in 32-bit words and by 32 to get the size of the buffer in bytes. Example: IDMABNDT = 0x01: buffer size = 8 words = 32 bytes. These bits can only be written by firmware when DPSM is inactive (DPSMACT = 0).
pub fn set_idmabndt(&mut self, val: u8)
pub fn set_idmabndt(&mut self, val: u8)
Number of transfers per buffer. This 8-bit value shall be multiplied by 8 to get the size of the buffer in 32-bit words and by 32 to get the size of the buffer in bytes. Example: IDMABNDT = 0x01: buffer size = 8 words = 32 bytes. These bits can only be written by firmware when DPSM is inactive (DPSMACT = 0).
Trait Implementations§
§impl Clone for Idmabsizer
impl Clone for Idmabsizer
§fn clone(&self) -> Idmabsizer
fn clone(&self) -> Idmabsizer
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read more§impl Default for Idmabsizer
impl Default for Idmabsizer
§fn default() -> Idmabsizer
fn default() -> Idmabsizer
Returns the “default value” for a type. Read more
§impl PartialEq for Idmabsizer
impl PartialEq for Idmabsizer
§fn eq(&self, other: &Idmabsizer) -> bool
fn eq(&self, other: &Idmabsizer) -> bool
This method tests for
self
and other
values to be equal, and is used
by ==
.impl Copy for Idmabsizer
impl Eq for Idmabsizer
impl StructuralEq for Idmabsizer
impl StructuralPartialEq for Idmabsizer
Auto Trait Implementations§
impl RefUnwindSafe for Idmabsizer
impl Send for Idmabsizer
impl Sync for Idmabsizer
impl Unpin for Idmabsizer
impl UnwindSafe for Idmabsizer
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