Vault 7: Projects

This publication series is about specific projects related to the Vault 7 main publication.

Parameters
Parameters Description
config An SD Drive configuration structure pointer
Function
uint32_t FILEIO_SD_CapacityRead(
FILEIO_SD_DRIVE_CONFIG * config)
1.7.2.1.7 FILEIO_SD_SectorSizeRead Function
Determines the current sector size on the SD card
File
sd_spi.h
Syntax
uint16_t FILEIO_SD_SectorSizeRead(FILEIO_SD_DRIVE_CONFIG * config);
Module
SD (SPI) Driver
Side Effects
None.
Returns
The size of the sectors for the physical media
Description
The FILEIO_SD_SectorSizeRead function is used by the USB mass storage class to return the card's sector size to the PC
on request.
Remarks
None
Preconditions
FILEIO_SD_MediaInitialize() is complete
Parameters
Parameters Description
config An SD Drive configuration structure pointer
Function
uint16_t FILEIO_SD_SectorSizeRead(
FILEIO_SD_DRIVE_CONFIG * config)
1.7.2.1.8 FILEIO_SD_SectorRead Function
Reads a sector of data from an SD card.
File
sd_spi.h
Syntax
bool FILEIO_SD_SectorRead(FILEIO_SD_DRIVE_CONFIG * config, uint32_t sector_addr, uint8_t *
buffer);
1.7 Library Interface MLA - File I/O Library Help Physical Layer
75

e-Highlighter

Click to send permalink to address bar, or right-click to copy permalink.

Un-highlight all Un-highlight selectionu Highlight selectionh