#[non_exhaustive]pub struct Config {
pub data_transfer_timeout: u32,
pub use_cmd23: bool,
pub use_acmd23: bool,
}Expand description
SDMMC configuration
Default values: data_transfer_timeout: 5_000_000 use_cmd23: false use_acmd23: false
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.data_transfer_timeout: u32The timeout to be set for data transfers, in card bus clock periods
use_cmd23: boolPre-declare block count via CMD23 before CMD25, skipping CMD12.
Honored only if the card advertises support; falls back silently
otherwise (see [StorageDevice::supports_cmd23]).
use_acmd23: boolSend ACMD23 (SET_WR_BLK_ERASE_COUNT) before CMD25 as a pre-erase hint. Mandatory in SD spec v2+, so honored unconditionally.
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Config
impl RefUnwindSafe for Config
impl Send for Config
impl Sync for Config
impl Unpin for Config
impl UnwindSafe for Config
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> ToMutAligned for Twhere
T: ?Sized,
impl<T> ToMutAligned for Twhere
T: ?Sized,
Source§fn to_mut_aligned<A>(&mut self) -> &mut Aligned<A, <T as ToMutAligned>::Element>where
A: Alignment,
fn to_mut_aligned<A>(&mut self) -> &mut Aligned<A, <T as ToMutAligned>::Element>where
A: Alignment,
Create a type-checked aligned value from a value that is aligned.