Vault 7: Projects

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

1.4 Using the Library
This topic describes the basic architecture of the File I/O Library and provides information and examples on how to use it.
Description
This topic describes the basic architecture of the File I/O Library and provides information and examples on how to use it.
Interface Header File
: fileio.h or fileio_lfn.h
The interface to the File I/O library is defined by one of two header files. The "fileio.h" header file describes the API of the
library version that supports short file names only. The "fileio_lfn.h" header file describes the API of the library version that
supports long file names. The long file name library requires additional microcontroller resources. Any C language source
(.c) file that uses the File I/O library should include "fileio.h" or "fileio_lfn.h."
1.4.1 Abstraction Model
This library provides the low-level abstraction of the File I/O module on the Microchip family of microcontrollers with a
convenient C language interface. This topic describes how that abstraction is modeled in the software and introduces the
library interface.
Description
File I/O Software Abstraction Block Diagram
The File I/O module model is relatively straightforward. The user will write application code that makes calls into the File I/O
Layer. The File I/O Layer will then make calls into at least one Physical Layer (or one of multiple Physical Layers, depending
on how the user has initialize and configured their device). The Physical Layer will either interface directly with the media, or
use a separate driver to interface to the media. The Physical Layer may also call functions that are implemented by the user
if necessary. For example, the SD-SPI Physical Layer will use the drv_spi SPI driver module to interface to an SD card, and
it will also call user-implemented functions to set/clear the chip select pin and get the status of other I/O pins.
1.4 Using the Library MLA - File I/O Library Help Library Overview
10

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh