Vault 7: Projects

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

Syntax
typedef bool (* FILEIO_DRIVER_MediaDetect)(void * mediaConfig);
Returns
If media attached: true If media not atached: false
Description
Function pointer prototype for a driver function to detect if a media device is attached/available.
Preconditions
None
Parameters
Parameters Description
mediaConfig Pointer to a driver-defined config structure
Function
bool (*FILEIO_DRIVER_MediaDetect)(void * mediaConfig);
1.7.1.3.1.6 FILEIO_DRIVER_SectorRead Type
Function pointer prototype for a driver function to read a sector of data from the device.
File
fileio_lfn.h
Syntax
typedef bool (* FILEIO_DRIVER_SectorRead)(void * mediaConfig, uint32_t sector_addr,
uint8_t* buffer);
Returns
If Success: true If Failure: false
Description
Function pointer prototype for a driver function to read a sector of data from the device.
Preconditions
The device will be initialized.
Parameters
Parameters Description
mediaConfig Pointer to a driver-defined config structure
sectorAddress The address of the sector to read. This address format
depends on the media.
buffer A buffer to store the copied data sector.
Function
bool (*FILEIO_DRIVER_SectorRead)(void * mediaConfig,
uint32_t sector_addr, uint8_t * buffer);
1.7.1.3.1.7 FILEIO_DRIVER_SectorWrite Type
Function pointer prototype for a driver function to write a sector of data to the device.
File
fileio_lfn.h
1.7 Library Interface MLA - File I/O Library Help File I/O Layer
46

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh