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

Function details-3


8.2.3 Subcode


 one
View
table
 Title

function specification

 Function

Get subcode Q

 Function Name[S-]

CDC_TgetScdQch

 No

3.1

Format
Sint32 CDC_TgetScdQch(Uint16 *qcode)
input
none
output
qcode: Subcode Q information (5 words)...See data specifications ( Subcode )
function value
Returns an error code.
function
Gets subcode Q channel information (10 bytes other than CRC).

 one
View
table
 Title

function specification

 Function

Obtaining subcodes R to W

 Function Name[S-]

CDC_TgetScdRwch

 No

3.2

Format
Sint32 CDC_TgetScdRwch(Uint16 *rwcode, Sint32 *scdflag)
input
none
output
rwcode : Subcode R to W information (12 words)...See data specifications ( Subcode )
scdflag :Subcode flag (lower 8 bits are valid)
function value
Returns an error code.
function
Obtains subcode R to W channel information (24 bytes for 1 pack).

(1) Subcode flag
Indicates the error status of the retrieved subcode R~W information (packed data).
bit  7  6  5  4  3  2  1  0
    [-][-][-][-][-][-][ ][ ]
                       |  |
                       |  +---- CDC_SCD_PACK   1: Pack data error occurred
                       +------- CDC_SCD_OVER   1: Overrun error

remarks
Pack data must not be retrieved more than 16 packs during one frame time (13.3ms).
Returns WAIT if the pack buffer is empty and there is no packed data.


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