format Sint32 GFS_Init (Sint32 open_max, void * work, GfsDirTbl * dirtbl)
Input open_max: Maximum number of files opened simultaneously (1 to 24)
work work: work area for the library
directory dirtbl: Directory information management structure
Output dirtbl: Directory information management structure (directory information storage area)
Function value Number of directory information read. If an error occurs, a negative error code is returned.
.
Function Performs file system initialization and CD-ROM mount processing.
Directory management function is specified by specifying dirtbl.
dirtbl | Directory management function to use |
Directory management structure | Directory management for this library |
NULL | CD block file system directory management |
Remarks (a) work must be placed on a 4-byte boundary.
: (b) The SCU level 0-DMA end interrupt is enabled by the INT_ChgMsk function.
(c) Initialize the CD block as follows.
(ECC count and retry count are set to the maximum values, otherwise the default is
. )
CD block soft reset: No
: -Subcode decoding: No
. -Mode 2 subheader recognition: Suru
Form 2 lead retry: No
: -CD-ROM data read: Maximum speed (currently double speed)
Standby time: 180 seconds
. . ECC count: 5 times.
・ Retry count: 15 times
format Sint32 GFS_LoadDir (Sint32 fid, GfsDirTbl * dirtbl)
Input fid: Directory file identifier
: dirtbl: Directory information management structure
Output dirtbl: Directory information management structure (directory information storage area)
Function value Number of directories read. If an error occurs, a negative error code is returned.
.
Function Reads directory information from the specified directory file.
Directory location of directory information changes depending on the specification of dirtbl.
dirtbl | Directory information storage area |
Directory management structure | dirtbl directory information storage area |
NULL | File management information area in CD block |
Uses CD block file system with GFS_Init when NULL is specified for dirtbl
If you do not declare , an error will occur.
: However, a pointer to an appropriate directory information management structure other than NULL in dirtbl
It is always possible to pass .