header_file.h
unsigned char f_initvolume( F_DRIVERINIT pxInitFunction );
Initialises the embedded FAT file system volume. f_initvolume() must be
called before any file system operations can be performed.
f_initvolume() works independently of the status of the hardware, it does not matter if a card is inserted or not.
Parameters:
Returns:
F_NO_ERROR
|
The drive was initialised successfully.
|
Any other value
|
The drive was not initialised successfully - the return
value holds the error code.
|
See also:
f_format(), f_delvolume().
Example usage:
void vInitFAT( void )
{
unsigned char ucReturn;
ucReturn = f_initvolume();
if( ucReturn != F_NO_ERROR )
{
}
else
{
}
}
Example use of the f_initvolume() API function
Copyright (C) Amazon Web Services, Inc. or its affiliates. All rights reserved.