Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
Module
SD (SPI) Driver
Side Effects
None.
Returns
true if successful, false otherwise
Description
This function will disable the SPI port and deselect the SD card.
Remarks
None
Preconditions
The FILEIO_SD_MediaDeinitialize function pointer is pointing towards this function.
Parameters
Parameters Description
config An SD Drive configuration structure pointer
Function
bool FILEIO_SD_MediaDeinitialize(
FILEIO_SD_DRIVE_CONFIG * config)
1.7.2.1.6 FILEIO_SD_CapacityRead Function
Determines the current capacity of the SD card
File
sd_spi.h
Syntax
uint32_t FILEIO_SD_CapacityRead(FILEIO_SD_DRIVE_CONFIG * config);
Module
SD (SPI) Driver
Side Effects
None.
Returns
The capacity of the device
Description
The FILEIO_SD_CapacityRead function is used by the USB mass storage class to return the total number of sectors on the
card.
Remarks
None
Preconditions
FILEIO_SD_MediaInitialize() is complete
1.7 Library Interface MLA - File I/O Library Help Physical Layer
74
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_fileio.pdf