# Vault 7: Projects

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

### Protego

# MLA -- File I/O Library

- 1
- 2
…
- 68
- 69
- 70
- 71
- 72
…
- 82
- 83

These pins are a typical feature on the physical sockets manufactured for SD card (not on the SD cards themselves). On
some types of SD card (i.e. micro SD) this pin will not be available.
Remarks
None
Function
typedef bool (*FILEIO_SD_CDGet)(void);
1.7.2.1.1.4 FILEIO_SD_WPGet Type
Prototype for a user-implemented function to get the current state of the Write Protect pin, if one exists.
File
sd_spi.h
Syntax
typedef bool (* FILEIO_SD_WPGet)(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 write protect pin.
These pins are a typical feature on the physical sockets manufactured for SD card (not on the SD cards themselves). On
some types of SD card (i.e. micro SD) this pin will not be available.
Remarks
None
Function
typedef bool (*FILEIO_SD_WPGet)(void);
1.7.2.1.1.5 FILEIO_SD_PinConfigure Type
Prototype for a user-implemented function to configure the pins used by the SD card.
File
sd_spi.h
Syntax
typedef void (* FILEIO_SD_PinConfigure)(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 configure all of the pins used by the
SD Card. The configuration may involve setting/clearing the TRIS bits, disabling the analog state of the pins, setting up
peripheral pin select, or other operations (depending on the device). The user must configure the chip select, card detect,
and write protect pins. Optionally, configuration for the SPI pins (SDI, SDO, SCK) and SPI module may be performed in this
function, though it may make more sense to configure those in another part of any given application.
Remarks
None
Function
typedef void (*FILEIO_SD_PinConfigure)(void);
1.7 Library Interface MLA - File I/O Library Help Physical Layer
70

- 1
- 2
…
- 68
- 69
- 70
- 71
- 72
…
- 82
- 83