pub struct ExtCsd { /* private fields */ }Expand description
Lightly typed view over the 512-byte EXT_CSD payload.
Holding the full register lets later phases of the driver read
fields that aren’t needed today (e.g. BOOT_PARTITION_SIZE,
RPMB_SIZE_MULT, PARTITION_SETTING_COMPLETED) without having to
re-issue CMD8.
Implementations§
Source§impl ExtCsd
impl ExtCsd
pub fn from_bytes(raw: [u8; 512]) -> Self
Sourcepub fn as_bytes(&self) -> &[u8; 512]
pub fn as_bytes(&self) -> &[u8; 512]
Raw 512-byte payload (immutable view) for fields the typed API hasn’t grown to cover yet.
Sourcepub fn sector_count(&self) -> Option<u32>
pub fn sector_count(&self) -> Option<u32>
Authoritative sector count for cards ≥ 2 GB. Returns None when
the field is zero, which means “use the legacy CSD C_SIZE
instead” (small cards).
pub fn device_type(&self) -> DeviceType
pub fn bus_width(&self) -> MmcBusWidth
pub fn timing(&self) -> MmcTiming
Trait Implementations§
Auto Trait Implementations§
impl Freeze for ExtCsd
impl RefUnwindSafe for ExtCsd
impl Send for ExtCsd
impl Sync for ExtCsd
impl Unpin for ExtCsd
impl UnsafeUnpin for ExtCsd
impl UnwindSafe for ExtCsd
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