mikroSDK Reference Manual
physical_drive_t Struct Reference

Physical Drive Base Data Structure Reference. More...

Data Fields

physical_drive_vector_table_tvtptr
 
physical_drive_type_t type
 
uint32_t sector_count
 
uint16_t sector_size
 
uint16_t erase_block_size
 
uint8_t volumes
 
uint8_t error
 

Detailed Description

Keeps track of the relevant data for the physical drive and manages communication with hardware memory module, with it's vector table that point to correct function for particular physical drive implementation. It's intended usage is, as a base structure of a derived structures, eg. sdspi_logical_drive_t. It is not intended to be used independently.

Field Documentation

◆ vtptr

physical_drive_vector_table_t* physical_drive_t::vtptr

Physical drive vector table. See physical_drive_vector_table_t structure.

◆ type

physical_drive_type_t physical_drive_t::type

Type of physical drive. See physical_drive_type_t enum.

◆ sector_count

uint32_t physical_drive_t::sector_count

Number of sectors on this physical drive.

◆ sector_size

uint16_t physical_drive_t::sector_size

Sector size in unit of bytes, on this physical drive.

◆ erase_block_size

uint16_t physical_drive_t::erase_block_size

Erase block size on this physical drive.

◆ volumes

uint8_t physical_drive_t::volumes

Number of logical drives mounted on this physical drive

◆ error

uint8_t physical_drive_t::error

Tracks APIs statuses and errors on this physical drive