# 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
…
- 42
- 43
- 44
- 45
- 46
…
- 82
- 83

FILEIO_DriveMount function to initialize a physical layer.
1.7.1.3.1.1 FILEIO_DRIVE_CONFIG Structure
File
fileio_lfn.h
Syntax
typedef struct {
FILEIO_DRIVER_IOInitialize funcIOInit;
FILEIO_DRIVER_MediaDetect funcMediaDetect;
FILEIO_DRIVER_MediaInitialize funcMediaInit;
FILEIO_DRIVER_MediaDeinitialize funcMediaDeinit;
FILEIO_DRIVER_SectorRead funcSectorRead;
FILEIO_DRIVER_SectorWrite funcSectorWrite;
FILEIO_DRIVER_WriteProtectStateGet funcWriteProtectGet;
} FILEIO_DRIVE_CONFIG;
Members
Members Description
FILEIO_DRIVER_IOInitialize funcIOInit; I/O Initialization function
FILEIO_DRIVER_MediaDetect funcMediaDetect; Media Detection function
FILEIO_DRIVER_MediaInitialize funcMediaInit; Media Initialization function
FILEIO_DRIVER_MediaDeinitialize funcMediaDeinit; Media Deinitialization function.
FILEIO_DRIVER_SectorRead funcSectorRead; Function to read a sector of the media.
FILEIO_DRIVER_SectorWrite funcSectorWrite; Function to write a sector of the media.
FILEIO_DRIVER_WriteProtectStateGet funcWriteProtectGet; Function to determine if the media is write-protected.
Description
Function pointer table that describes a drive being configured by the user
1.7.1.3.1.2 FILEIO_DRIVER_IOInitialize Type
Function pointer prototype for a driver function to initialize I/O pins and modules for a driver.
File
fileio_lfn.h
Syntax
typedef void (* FILEIO_DRIVER_IOInitialize)(void * mediaConfig);
Returns
None
Description
Function pointer prototype for a driver function to initialize I/O pins and modules for a driver.
Preconditions
None
Parameters
Parameters Description
mediaConfig Pointer to a driver-defined config structure
Function
void (*FILEIO_DRIVER_IOInitialize)(void * mediaConfig);
1.7 Library Interface MLA - File I/O Library Help File I/O Layer
44

- 1
- 2
…
- 42
- 43
- 44
- 45
- 46
…
- 82
- 83