Return to previous page Return to menu Go to next page

1.2 Function overview

This section outlines the functions of the file system library. The functions of this library are classified into the following 6 types.

(1) Directory operation

Provides the following functions such as library initialization, directory information reading, and current directory setting.

 Function 
 Function 
 GFS_Init 
 Library initialization and CD mounting process 
 GFS_LoadDir 
 Load directory information 
 GFS_SetDir 
 Set current directory 
 GFS_NameToId 
 Convert file name to file identifier 
 GFS_IdToName 
 File identifier → Convert file name 
 GFS_GetDirInfo 
 Get directory information 
 GFS_Reset 
 Reset file system 

(2) File operation

Performs the following general file operations such as opening, closing, and seeking files.

 Function 
 Function 
 GFS_Open 
 Open file 
 GFS_Close 
 Close file 
 GFS_Seek 
 Move access pointer 
 GFS_Tell 
 Get access pointer 
 GFS_IsEof 
 Check if access pointer is at end of file 
 GFS_ByteToSct 
 byte unit → sector unit conversion 
 GFS_GetFileSize 
 Get file size 
 GFS_GetFileInfo 
 Get file information 
 GFS_GetNumCdbuf 
 Get CD buffer sector count 

(3) Complete return type reading

Read data from file. At this time, control does not return from the function until data loading is complete.

 Function 
 Function 
 GFS_Fread 
 Reads data from the opened file. 
 GFS_Load 
 Read data by specifying a file identifier. 


Return to previous page Return to menu Go to next page