Japanese
PROGRAMMER'S GUIDECD communication I/F (CD part)
BackForward
CD communication interface user's manual (CD part)

Function details-4


8.2.4 CD-ROM Device


 one
View
table
 Title

function specification

 Function

Setting the CD device connection destination

 Function Name[SR]

CDC_CdSetCon

 No

4.1

Format
Sint32 CDC_CdSetCon(Sint32 filtno)
input
filtno: Connection destination aperture number (CDC_NUL_SEL: Indicates disconnection)
output
none
function value
Returns an error code. End flag ESEL flag
function
Set the connection destination (aperture) for the CD-ROM device. Specifying CDC_NUL_SEL will disconnect the connection.

 one
View
table
 Title

function specification

 Function

Obtaining the connection destination of the CD device

 Function Name[S-]

CDC_CdGetCon

 No

4.2

Format
Sint32 CDC_CdGetCon(Sint32 *filtno)
input
none
output
filtno: Connection destination aperture number (CDC_NUL_SEL: Indicates not connected)
function value
Returns an error code.
function
Gets the connection destination (aperture) of the CD-ROM device. Returns CDC_NUL_SEL if not connected.

 one
View
table
 Title

function specification

 Function

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.

BackForward
PROGRAMMER'S GUIDECD communication I/F (CD part)
Copyright SEGA ENTERPRISES, LTD., 1997