Vault 7: Projects

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

Syntax
uint16_t FILEIO_DirectoryGetCurrent(uint16_t * buffer, uint16_t size);
Module
Long File Name Library API
Returns
uint16_t - The number of characters in the current working directory name. May exceed the size of the buffer. In this case,
the name will be truncated to 'size' characters, but the full length of the path name will be returned.
Sets error code which can be retrieved with FILEIO_ErrorGet
FILEIO_ERROR_INVALID_ARGUMENT - The arguments for the buffer or its size were invalid.
FILEIO_ERROR_DIR_NOT_FOUND - One of the directories in your current working directory could not be found in its
parent directory.
Description
Gets the name of the current working directory and stores it in 'buffer.' The directory name will be null-terminated. If the
buffer size is insufficient to contain the whole path name, as much as possible will be copied and null-terminated.
Preconditions
A drive must be mounted.
Parameters
Parameters Description
buffer The buffer to contain the current working directory name.
size Size of the buffer (16-bit words).
Function
uint16_t FILEIO_DirectoryGetCurrent (uint16_t * buffer, uint16_t size)
1.7.1.2.11 FILEIO_ErrorClear Function
Clears the last error on a drive.
File
fileio_lfn.h
Syntax
void FILEIO_ErrorClear(uint16_t driveId);
Module
Long File Name Library API
Returns
void
Description
Clears the last error of the specified drive.
Preconditions
The drive must have been mounted.
Parameters
Parameters Description
driveId The character representation of the drive.
1.7 Library Interface MLA - File I/O Library Help File I/O Layer
39

e-Highlighter

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

Un-highlight all Un-highlight selectionu Highlight selectionh