Vault 7: Projects

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

Functions
Name Description
FILEIO_SD_IOInitialize Initializes the I/O lines connected to the card
FILEIO_SD_MediaDetect Determines whether an SD card is present
FILEIO_SD_MediaInitialize Initializes the SD card.
FILEIO_SD_MediaDeinitialize Disables the SD card
FILEIO_SD_CapacityRead Determines the current capacity of the SD card
FILEIO_SD_SectorSizeRead Determines the current sector size on the SD card
FILEIO_SD_SectorRead Reads a sector of data from an SD card.
FILEIO_SD_SectorWrite Writes a sector of data to an SD card.
FILEIO_SD_WriteProtectStateGet Indicates whether the card is write-protected.
Description
This section describes the SD-SPI physical layer. This module allows access to SD and MMC cards via SPI.
A pointer to a FILEIO_SD_DRIVE_CONFIG structure should be used as the mediaParameters element in the
FILEIO_DRIVE_CONFIG structure describing this type of media.
1.7.2.1.1 User-Implemented Functions
Describes functions that must be implemented by the user.
Module
SD (SPI) Driver
Structures
Name Description
FILEIO_SD_DRIVE_CONFIG A configuration structure used by the SD-SPI driver functions to perform
specific tasks.
Types
Name Description
FILEIO_SD_CSSet Prototype for a user-implemented function to set or clear the SPI's chip
select pin.
FILEIO_SD_CDGet Prototype for a user-implemented function to get the current state of the
Card Detect pin, if one exists.
FILEIO_SD_WPGet Prototype for a user-implemented function to get the current state of the
Write Protect pin, if one exists.
FILEIO_SD_PinConfigure Prototype for a user-implemented function to configure the pins used by
the SD card.
Description
This section describes functions that must be implemented by the user for the FILEIO_SD_DRIVE_CONFIG structure used
to initialize a FILEIO_DRIVE_CONFIG mediaParameters element.
1.7.2.1.1.1 FILEIO_SD_DRIVE_CONFIG Structure
File
sd_spi.h
Syntax
typedef struct {
uint8_t index;
FILEIO_SD_CSSet csFunc;
FILEIO_SD_CDGet cdFunc;
1.7 Library Interface MLA - File I/O Library Help Physical Layer
68

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh