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


 List
 Title

Function specifications

 Function

Setting the connection destination of the CD device

 Function Name [SR]

CDC_CdSetCon

 No

4.1

Form
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) of the CD-ROM device. Specifying CDC_NUL_SEL disconnects the connection.

 List
 Title

Function specifications

 Function

Obtaining the connection destination of the CD device

 Function Name [S-]

CDC_CdGetCon

 No

4.2

Form
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
Acquires the connection destination (aperture) of the CD-ROM device. Returns CDC_NUL_SEL if not connected.

 List
 Title

Function specifications

 Function

Get the buffer partition of the last read sector

 Function Name [S-]

CDC_CdGetLastBuf

 No

4.3

Form
Sint32 CDC_CdGetLastBuf (Sint32 * bufno)
input
none
output
bufno: Storage destination buffer partition number (CDC_NUL_SEL: Indicates not stored)
Function value
Returns an error code.
function
Gets the buffer partition number of the storage destination of the last read sector from the CD-ROM. Returns CDC_NUL_SEL if it was not stored (erased) in the buffer partition.
remarks
By executing in synchronization with the CSCT flag of the interrupt cause register, the stream read from the CD-ROM can be processed sector by sector.

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