Struct sdmmc_spi::SdMmcSpi

source ·
pub struct SdMmcSpi<Spi: Transfer<u8>, Cs: OutputSwitch, Config: SdMmcSpiConfig> { /* private fields */ }
Expand description

SD Card SPI driver.

Spi - SPI. Cs - Chip select output switch. Config - Config implementation of driver config trait.

Implementations§

Creates a new SdMmcSpi<Spi, Cs, Config>.

spi - SPI instance. cs - chip select output switch.

Trait Implementations§

Device error type.
Get status of device.
Reset device (optional).
Initialize device.
Read data blocks from device by address.
Write data blocks to device by address.
Make ioctl query to device.

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.