Summary

The callback function that is executed when data has been loaded into the sector buffer after a read operation. It handles transferring the data from the buffer in to RAM.

Behavior

Check if the data in the CD was successfully read and transferred to the sector buffer by checking the value of the parameter. If successfully transferred, copy the data from the sector buffer into RAM using CdGetSector. Then increment the RAM destination pointer by x800 (2048 bytes) for the next call then decrement the counter that track how many sectors are left to read. Finally check if there are no more sectors to read, if there are none do the following:

  • Deregister the callback
  • Set the command executed global var to 1 if not null
  • Set the IO state to ready

If the data was not transferred to the sector buffer print an error message.

Notes

  • The sector buffer size depends on the mode but this function is only registered for read calls that have the mode set to a sector size of 2048 bytes.

Function Signature

Parameters: 1

successFlag: value that tracks if the data was successfully read and put in the sector buffer by the library.

Returns: None

References

Calls

Sony Functions:
Custom Functions:

Called By

Memory Referenced