Vault 7: Projects

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

1.7.2.1.2 FILEIO_SD_IOInitialize Function
Initializes the I/O lines connected to the card
File
sd_spi.h
Syntax
void FILEIO_SD_IOInitialize(FILEIO_SD_DRIVE_CONFIG * config);
Module
SD (SPI) Driver
Side Effects
None.
Returns
None
Description
The FILEIO_SD_IOInitialize function initializes the I/O pins connected to the SD card.
Remarks
None
Preconditions
FILEIO_SD_MediaInitialize() is complete. The MDD_InitIO function pointer is pointing to this function.
Parameters
Parameters Description
config An SD Drive configuration structure pointer
Function
void FILEIO_SD_IOInitialize (
FILEIO_SD_DRIVE_CONFIG * config)
1.7.2.1.3 FILEIO_SD_MediaDetect Function
Determines whether an SD card is present
File
sd_spi.h
Syntax
bool FILEIO_SD_MediaDetect(FILEIO_SD_DRIVE_CONFIG * config);
Module
SD (SPI) Driver
Side Effects
None.
Description
The FILEIO_SD_MediaDetect function determine if an SD card is connected to the microcontroller. If the
MEDIA_SOFT_DETECT is not defined, the detection is done by polling the SD card detect pin. The MicroSD connector does
not have a card detect pin, and therefore a software mechanism must be used. To do this, the SEND_STATUS command is
1.7 Library Interface MLA - File I/O Library Help Physical Layer
71

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh