Struct stm32f4xx_hal::sdio::CSD

source ·
pub struct CSD<Ext>(/* private fields */);
Expand description

Card Specific Data (CSD)

Implementations§

source§

impl<Ext> CSD<Ext>

source

pub fn version(&self) -> u8

CSD structure version

source

pub fn transfer_rate(&self) -> u8

Maximum data transfer rate per one data line

source

pub fn block_length(&self) -> BlockSize

Maximum block length. In an SD Memory Card the WRITE_BL_LEN is always equal to READ_BL_LEN

source

pub fn read_current_minimum_vdd(&self) -> CurrentConsumption

Maximum read current at the minimum VDD

source

pub fn write_current_minimum_vdd(&self) -> CurrentConsumption

Maximum write current at the minimum VDD

source

pub fn read_current_maximum_vdd(&self) -> CurrentConsumption

Maximum read current at the maximum VDD

source

pub fn write_current_maximum_vdd(&self) -> CurrentConsumption

Maximum write current at the maximum VDD

source§

impl CSD<SD>

source

pub fn block_count(&self) -> u32

Number of blocks in the card

source

pub fn card_size(&self) -> u64

Card size in bytes

source

pub fn erase_size_blocks(&self) -> u32

Erase size (in blocks)

Trait Implementations§

source§

impl<Ext> Clone for CSD<Ext>
where Ext: Clone,

source§

fn clone(&self) -> CSD<Ext>

Returns a copy of the value. Read more
1.0.0 · source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for CSD<SD>

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
source§

impl<Ext> Default for CSD<Ext>
where Ext: Default,

source§

fn default() -> CSD<Ext>

Returns the “default value” for a type. Read more
source§

impl<Ext> From<[u32; 4]> for CSD<Ext>

From little endian words

source§

fn from(words: [u32; 4]) -> CSD<Ext>

Converts to this type from the input type.
source§

impl<Ext> From<u128> for CSD<Ext>

source§

fn from(inner: u128) -> CSD<Ext>

Converts to this type from the input type.
source§

impl<Ext> Copy for CSD<Ext>
where Ext: Copy,

Auto Trait Implementations§

§

impl<Ext> RefUnwindSafe for CSD<Ext>
where Ext: RefUnwindSafe,

§

impl<Ext> Send for CSD<Ext>
where Ext: Send,

§

impl<Ext> Sync for CSD<Ext>
where Ext: Sync,

§

impl<Ext> Unpin for CSD<Ext>
where Ext: Unpin,

§

impl<Ext> UnwindSafe for CSD<Ext>
where Ext: UnwindSafe,

Blanket Implementations§

source§

impl<T> Any for T
where T: 'static + ?Sized,

source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
source§

impl<T> Borrow<T> for T
where T: ?Sized,

source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
source§

impl<T> From<T> for T

source§

fn from(t: T) -> T

Returns the argument unchanged.

source§

impl<T, U> Into<U> for T
where U: From<T>,

source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

§

type Error = Infallible

The type returned in the event of a conversion error.
source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.