Vault 7: Projects
This publication series is about specific projects related to the Vault 7 main publication.
FILEIO_SD_WPGet wpFunc;
FILEIO_SD_PinConfigure configurePins;
} FILEIO_SD_DRIVE_CONFIG;
Members
Members Description
uint8_t index; The numeric index of the SPI module to use (i.e. 1 for
SPI1/SSP1, 2 for SPI2, SSP2,...)
FILEIO_SD_CSSet csFunc; Pointer to a user-implemented function to set/clear the chip
select pins
FILEIO_SD_CDGet cdFunc; Pointer to a user-implemented function to get the status of
the card detect pin
FILEIO_SD_WPGet wpFunc; Pointer to a user-implemented function to get the status of
the write protect pin
FILEIO_SD_PinConfigure configurePins; Pointer to a user-implemented function to configure the pins
used by the SD Card
Description
A configuration structure used by the SD-SPI driver functions to perform specific tasks.
1.7.2.1.1.2 FILEIO_SD_CSSet Type
Prototype for a user-implemented function to set or clear the SPI's chip select pin.
File
sd_spi.h
Syntax
typedef void (* FILEIO_SD_CSSet)(uint8_t value);
Description
Most functions in this driver require the user to implement the functions that comprise a FILEIO_SD_DRIVE_CONFIG
structure. This function pointer definition describes a function in this structure that will set/clear the chip select pin.
Remarks
None
Parameters
Parameters Description
value The value of the chip select pin (1 or 0)
Function
typedef void (*FILEIO_SD_CSSet)(uint8_t value)
1.7.2.1.1.3 FILEIO_SD_CDGet Type
Prototype for a user-implemented function to get the current state of the Card Detect pin, if one exists.
File
sd_spi.h
Syntax
typedef bool (* FILEIO_SD_CDGet)(void);
Description
Most functions in this driver require the user to implement the functions that comprise a FILEIO_SD_DRIVE_CONFIG
structure. This function pointer definition describes a function in this structure that will return the value of a card detect pin.
1.7 Library Interface MLA - File I/O Library Help Physical Layer
69
Protego_Release_01_05-Related-OEM-Documentation-MLA_v2013_12_20-help_mla_fileio.pdf