Enum sdmmc_spi::IoctlCmd

source ·
pub enum IoctlCmd<'a> {
    CtrlSync,
    GetSectorCount(&'a mut u64),
    GetSectorSize(&'a mut usize),
    GetBlockSize(&'a mut usize),
    CtrlTrim(&'a (u64, u64)),
}
Expand description

Ioctl commands.

Variants§

§

CtrlSync

Complete pending write process.

§

GetSectorCount(&'a mut u64)

Get media size.

§

GetSectorSize(&'a mut usize)

Get sector size.

§

GetBlockSize(&'a mut usize)

Get erase block size.

§

CtrlTrim(&'a (u64, u64))

Inform device that the data on the block of sectors is no longer used.

Auto Trait Implementations§

Blanket Implementations§

Gets the TypeId of self. Read more
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Calls U::from(self).

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

Consumes the IoPin returning a Switch of the appropriate ActiveLevel. Read more
Consumes the IoPin returning a Switch<IoPin, ActiveLow>. Read more
Consumes the IoPin returning a Switch<IoPin, ActiveHigh>. Read more
The type returned in the event of a conversion error.
Performs the conversion.
The type returned in the event of a conversion error.
Performs the conversion.