mikroSDK Reference Manual
sdspi_physical_drive_t Struct Reference

SD SPI Physical Drive Data Structure. More...

Data Fields

physical_drive_t base
 
spi_master_t spi
 
digital_out_t cs
 
sdspi_card_type_t card_type
 
bool is_initialized
 

Detailed Description

Manages communication with SD Card hardware memory module via SPI bus, using its vector table vtptr inside base structure, which points to functions that implement communication with SD Card hardware memory module via SPI bus. It also identifies and represents SD Card hardware memory module, by keeping all the relevant data about it. It is derived from physical_drive_t structure.

Field Documentation

◆ base

physical_drive_t sdspi_physical_drive_t::base

Physical Drive base data structure. It It identifies and represents sdspi_physical_drive_t with physical drive API functions.

◆ spi

spi_master_t sdspi_physical_drive_t::spi

SPI Master data used for the purposes of communication with SD Card.

◆ cs

digital_out_t sdspi_physical_drive_t::cs

Digital Out data used for the purposes of communication with SD Card.

◆ card_type

sdspi_card_type_t sdspi_physical_drive_t::card_type

SD Card type. See sdspi_card_type_t enum.

◆ is_initialized

bool sdspi_physical_drive_t::is_initialized

Indicated whether SD Card hardware memory module is initialized