Return to previous page Return to menu Go to next page


Figure 5.3 Operation when using transfer function

5.2 Combined use with file system

When reading from a CD using the file system while using the stream system, the drive must be paused. There are the following two methods.
(a) Execute STM_SetExecGrp (NULL). (Return completed)
(b) Execute STM_NwSetExecGrp (NULL) and the function value of STM_ExecServer is
Call the server function until STM_EXEC_TSKEND. (Immediate return) After that, when reading by the file system is completed, reading of the stream is resumed by STM_SetExecGrp (grp).

Transfer prefetched stream data while reading in the file system

         ・
         ・ / * Prefetch stream * /
STM_SetExecGrp (NULL); / * Put the drive in a pause state * /
GFS_NwFread(………);
while (1) {
        if (GFS_NwExecOne (gfs) == GFS_SVR_COMPLETED) / * Read file * /
        break;
    STM_ExecTrans (stm); / * Transfer stream data * /
}
STM_SetExecGrp (grp); / * Restart reading the stream * / 


Return to previous page Return to menu Go to next page