Obtaining the buffer section of the last read sector
Function Name[S-]
CDC_CdGetLastBuf
No
4.3
Format
Sint32 CDC_CdGetLastBuf(Sint32 *bufno)
input
none
output
bufno: Storage destination buffer section number (CDC_NUL_SEL: Indicates not stored)
function value
Returns an error code.
function
Gets the buffer partition number where the last sector read from the CD-ROM is stored. Returns CDC_NUL_SEL if it is not stored in the buffer section (erased).
remarks
By executing in synchronization with the CSCT flag of the interrupt factor register, the stream read from the CD-ROM can be processed one sector at a time.