header_file.h
unsigned char f_getfreespace ( F_SPACE *pxSpace );
Populate a structure with the following information about the embedded
FAT file system drive.
-
Total drive space.
-
Free space remaining.
-
Used space.
-
Unusable (bad) size.
Parameters:
pxSpace
|
A pointer to an F_SPACE structure.
|
Returns:
F_NO_ERROR
|
The F_SPACE structure was populated.
|
Any other value.
|
The F_SPACE structure was not populated. The returned
value holds the error code.
|
Example usage:
void vDriveInfo( void )
{
F_SPACE xSpace;
unsigned char ucReturned;
ucReturned = f_getfreespace( &xSpace );
if( ucReturned != F_NO_ERROR )
{
}
else
{
}
}
Example use of the f_getfreespace API function
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.