Vault 7: Projects

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

1.4.2 Library Overview
Describes the API sub-sections in the library.
Description
The library interface routines are divided into various sub-sections, each of sub-section addresses one of the blocks or the
overall operation of the File I/O module.
File I/O Layer
This section describes API used for the File I/O layer.
Library Interface Section Description
Short File Name Library API Describes file I/O functions and types that are unique to the short file
name version of this library.
Long File Name Library API Describes file I/O functions and types that are unique to the long file
name version of this library.
Common API Describes file I/O functions and types that are common to both versions
of this library.
Physical Layer
This section describes API used by the available physical layers.
Library Interface Section Description
SD (SPI) Driver Describes the physical layer and user-implemented functions and types
for an SD/MMC Card Physical Layer that used SPI communications.
1.4.3 How the Library Works
Describes how the library works.
Description
General Information
Several functions in this library make use of path/name strings. In the short file name library, these are simply char strings; in
the long file name library, they are uint16_t strings (unsigned short int). These pathnames can be specified as relative paths
or as absolute paths. A relative path will perform the specified operation relative to a current working directory. An absolute
path will perform the specified operation on the exact specified directory. You can use the FILEIO_CONFIG_DELIMITER
configuration macro to specify the delimiter to use for path strings.
Relative path:
handle = FILEIO_Open ("DIR2/FILE1.TXT", ...
Absolute path:
handle = FILEIO_Open ("A:/DIR1/DIR2/FILE1.TXT", ...
Note that
Short File Names
can only use upper-case alphanumeric characters, the space character (0x20), and the
following symbols:
! # $ % & ' ( ) - @ ^ _ ` { } ~
Each short file name can use between one and eight characters for the name, and up to three for the extension (e.g.
"FILENAME.TXT", "FILE.TX", "F").
Alternatively,
1.4 Using the Library MLA - File I/O Library Help How the Library Works
11

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh