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

function specification


Describe the function specifications of the CD communication interface.

(1)
In the format diagram, reserved areas are indicated with a "-". Be sure to specify 0 for the reserved area.

(2) Initial values of parameters
The initial values of parameters held by a CD block are equal to the default values specified by the host, unless otherwise specified.

(3) Maintaining CD status information (status and CD report)
The CD communication interface maintains the status and CD report when a CD block command is issued. Information from periodic responses is not retained. The initial value of the retained contents is all 0.
The following symbols indicate functions that update the retention status/CD report.

However, nothing is updated in the event of an error (when the error code is other than CDC_ERR_OK).

(4) Data transfer inside the function
Among functions that obtain information, those that transfer data within the function are written as Tget. The data transfer method is software transfer using the CPU.

[Example] Acquisition of TOC information (CDC_TgetToc)

These functions internally call the following functions:

(5) Command end flag (in interrupt factor register)
If there is a related command end flag, enter it in the end flag field.

[Example] End flag ESEL flag

These functions check and clear the command termination flag to 0 when issuing a command. If it cannot be issued, a CDC_ERR_CMDBUSY error will occur. Exceptionally, there are cases where the command end flag is only cleared to 0 or checked. (Exclusive processing for issuing commands)
When the processing corresponding to the issued command is completed, the command end flag becomes 1. However, please note that this value does not become 1 during REJECT and WAIT.
For details, please refer to " 3.2 Communication method ".

8.1 Function list

Table 8.1 lists the functions of the CD communication interface.

Table 8.1 List of CD communication interface functions
 function
 function name
 number
 Common to CD block
 1.0
 Get current CD status information
 CDC_GetCurStat
 1.1
 Get the previous CD status information
 CDC_GetLastStat
 1.2
 Obtaining periodic CD status information
 CDC_GetPeriStat
 1.3
 Get hardware information
 CDC_GetHwInfo
 1.4
 Acquisition of TOC information
 CDC_TgetToc
 1.5
 Get session information
 CDC_GetSes
 1.6
 CD block initialization
 CDC_CdInit
 1.7
 opening the tray
 CDC_CdOpen
 1.8
 Waiting for data transfer preparation
 CDC_DataReady
 1.9
 End of data transfer
 CDC_DataEnd
 1.10
 function
 function name
 number
 CD drive
 2.0
 CD playback
 CDC_CdPlay
 2.1
 Seek playback position
 CDC_CdSeek
 2.2
 scan playback
 CDC_CdScan
 2.3
 function
 function name
 number
 sub code
 3.0
 Get subcode Q
 CDC_TgetScdQch
 3.1
 Obtaining subcodes R to W
 CDC_TgetScdRwch
 3.2
 function
 function name
 number
 CD-ROM device
 4.0
 Setting the CD device connection destination
 CDC_CdSetCon
 4.1
 Obtaining the connection destination of the CD device
 CDC_CdGetCon
 4.2
 Obtaining the buffer section of the last read sector
 CDC_CdGetLastBuf
 4.3
 function
 function name
 number
 selector
 5.0
 Setting the aperture frame address range
 CDC_SetFiltRange
 5.1
 Obtaining the aperture frame address range
 CDC_GetFiltRange
 5.2
 Setting aperture subheader conditions
 CDC_SetFiltSubh
 5.3
 Get aperture subheader conditions
 CDC_GetFiltSubh
 5.4
 Setting the aperture mode
 CDC_SetFiltMode
 5.5
 Get aperture mode
 CDC_GetFiltMode
 5.6
 Setting the aperture connection destination
 CDC_SetFiltCon
 5.7
 Get the aperture connection destination
 CDC_GetFiltCon
 5.8
 Reset selector (aperture, section)
 CDC_ResetSelector
 5.9
 function
 function name
 number
 Buffer information
 6.0
 Get CD buffer size
 CDC_GetBufSiz
 6.1
 Obtaining the number of sectors in a buffer partition
 CDC_GetSctNum
 6.2
 Calculating actual data size
 CDC_CalActSiz
 6.3
 Obtaining actual data size
 CDC_GetActSiz
 6.4
 Get sector information
 CDC_GetSctInfo
 6.5
 Executing frame address search
 CDC_ExeFadSearch
 6.6
 Obtain frame address search results
 CDC_GetFadSearch
 6.7
 function
 function name
 number
 Buffer input/output
 7.0
 Setting sector length
 CDC_SetSctLen
 7.1
 Extracting sector data
 CDC_GetSctData
 7.2
 Erase sector data
 CDC_DelSctData
 7.3
 Extract and erase sector data
 CDC_GetdelSctData
 7.4
 Writing sector data
 CDC_PutSctData
 7.5
 Copying sector data
 CDC_CopySctData
 7.6
 Moving sector data
 CDC_MoveSctData
 7.7
 Sector data copy/move error acquisition
 CDC_GetCopyErr
 7.8
 function
 function name
 number
 CD block file system
 8.0
 Move directory
 CDC_ChgDir
 8.1
 Retaining file information
 CDC_ReadDir
 8.2
 Obtaining the retained file information range
 CDC_GetFileScope
 8.3
 Get retained file information
 CDC_TgetFileInfo
 8.4
 Load file
 CDC_ReadFile
 8.5
 Aborting file access
 CDC_AbortFile
 8.6
 function
 function name
 number
 register access
 9.0
 Obtain data transfer register pointer
 CDC_GetDataPtr
 9.1
 Obtaining interrupt factor register value
 CDC_GetHirqReq
 9.2
 Clearing the interrupt factor register
 CDC_ClrHirqReq
 9.3
 Obtain interrupt mask register value
 CDC_GetHirqMsk
 9.4
 Setting the interrupt mask register
 CDC_SetHirqMsk
 9.5
 Obtain MPEG register pointer
 CDC_GetMpegPtr
 9.6


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