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