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

Function details-3


8.2.3 Subcode


 List
 Title

Function specifications

 Function

Get subcode Q

 Function Name [S-]

CDC_TgetScdQch

 No

3.1 3.1

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

 List
 Title

Function specifications

 Function

Acquisition of subcodes R to W

 Function Name [S-]

CDC_TgetScdRwch

 No

3.2

Form
Sint32 CDC_TgetScdRwch (Uint16 * rwcode, Sint32 * scdflag)
input
none
output
rwcode : Subcode RW information (12 words) …… Refer to data specifications (Subcode)
scdflag : Subcode flag (lower 8 bits are valid)
Function value
Returns an error code.
function
Acquires subcode R to W channel information (24 bytes for one pack).

(1) Subcode flag
Indicates the error status of the extracted subcodes RW information (pack 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).
If the pack buffer is empty and there is no pack data, WAIT is returned.


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