PROGRAMMER'S GUIDECD communication I / F (CD part)
BackForward
CD Communication Interface User's Manual

Function specifications


Describes the function specifications of the CD communication interface.

(1) Format
In the figure, the reserved area is indicated by "-". Be sure to specify 0 for the reserved area.

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

(3) Retention of CD status information (status and CD report)
The CD communication interface holds the status and CD report when the CD block command was issued. Information from regular responses is not retained. The initial value of the retained contents is all 0.
The functions that update the retention status / CD report are indicated by the following symbols.

However, nothing is updated at the time of error (when the error code is other than CDC_ERR_OK).

(4) Data transfer inside the function
Of the functions that acquire information, those that transfer data inside the function are referred to as Tget. The data transfer method is software transfer by the CPU.

<< Example >> Acquisition of TOC information (CDC_TgetToc)

These functions internally call the following functions:

(5) Command end flag (in interrupt cause register)
If there is a related command end flag, describe it in the item column called end flag.

<< Example >> End flag ESEL flag

These functions check the command end flag and clear 0 when the command is issued. If it cannot be issued, a CDC_ERR_CMDBUSY error will occur. In exceptional cases, the command end flag may only be cleared or checked. (Exclusive processing of command issuance)
When the processing corresponding to the issued command is completed, the command end flag is set to 1. However, note that it does not become 1 during REJECT and WAIT.
For details, refer to "3.2 Communication Method".

8.1 Function list

Table 8.1 shows a list of functions for the CD communication interface.

Table 8.1 List of functions of CD communication interface
 function
 Function name
 number
 Common to CD blocks
 1.0
 Get current CD status information
 CDC_GetCurStat
 1.1
 Get last CD status information
 CDC_GetLastStat
 1.2
 Acquisition of regular CD status information
 CDC_GetPeriStat
 1.3 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 1.7
 Open tray
 CDC_CdOpen
 1.8 1.8
 Waiting for data transfer
 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
 Subcode
 3.0
 Get subcode Q
 CDC_TgetScdQch
 3.1 3.1
 Acquisition of subcodes R to W
 CDC_TgetScdRwch
 3.2
 function
 Function name
 number
 CD-ROM device
 4.0
 Setting the connection destination of the CD device
 CDC_CdSetCon
 4.1
 Obtaining the connection destination of the CD device
 CDC_CdGetCon
 4.2
 Get the buffer partition of the last read sector
 CDC_CdGetLastBuf
 4.3
 function
 Function name
 number
 selector
 5.0
 Aperture frame address range setting
 CDC_SetFiltRange
 5.1
 Acquisition of aperture frame address range
 CDC_GetFiltRange
 5.2.
 Aperture subheader condition setting
 CDC_SetFiltSubh
 5.3 5.3
 Get aperture subheader condition
 CDC_GetFiltSubh
 5.4
 Aperture mode setting
 CDC_SetFiltMode
 5.5 5.5
 Acquiring aperture mode
 CDC_GetFiltMode
 5.6
 Setting the connection destination of the aperture
 CDC_SetFiltCon
 5.7
 Get the connection destination of the aperture
 CDC_GetFiltCon
 5.8
 Reset selector (aperture, compartment)
 CDC_ResetSelector
 5.9
 function
 Function name
 number
 Buffer information
 6.0 6.0
 Get CD buffer size
 CDC_GetBufSiz
 6.1
 Get the number of sectors in the buffer partition
 CDC_GetSctNum
 6.2.
 Calculation of actual data size
 CDC_CalActSiz
 6.3
 Get the actual data size
 CDC_GetActSiz
 6.4
 Acquisition of sector information
 CDC_GetSctInfo
 6.5 6.5
 Performing a frame address search
 CDC_ExeFadSearch
 6.6
 Get frame address search results
 CDC_GetFadSearch
 6.7
 function
 Function name
 number
 Buffer input / output
 7.0 7.0
 Sector length setting
 CDC_SetSctLen
 7.1
 Extract sector data
 CDC_GetSctData
 7.2
 Erase sector data
 CDC_DelSctData
 7.3
 Extraction and deletion of sector data
 CDC_GetdelSctData
 7.4.
 Writing sector data
 CDC_PutSctData
 7.5 7.5
 Copy 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 8.0
 Move directory
 CDC_ChgDir
 8.1
 Retention of file information
 CDC_ReadDir
 8.2. 8.2
 Acquisition of retained file information range
 CDC_GetFileScope
 8.3
 Acquisition of retained file information
 CDC_TgetFileInfo
 8.4
 Read file
 CDC_ReadFile
 8.5
 Stop file access
 CDC_AbortFile
 8.6
 function
 Function name
 number
 Register access
 9.0
 Get data transfer register pointer
 CDC_GetDataPtr
 9.1
 Acquisition of interrupt cause register value
 CDC_GetHirqReq
 9.2
 Clear interrupt factor register
 CDC_ClrHirqReq
 9.3
 Get interrupt mask register value
 CDC_GetHirqMsk
 9.4
 Interrupt mask register setting
 CDC_SetHirqMsk
 9.5
 Get MPEG register pointer
 CDC_GetMpegPtr
 9.6


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