one | Title | Function | Function Name[SR] | No |
one | Title | Function | Function Name[--] | No |
one | Title | Function | Function Name[--] | No |
one | Title | Function | Function Name[S-] | No |
one | Title | Function | Function Name[S-] | No |
Sint32 ret; Uint32 toc[102]; /* Secure TOC information storage area */ ret = CDC_TgetToc(toc); /* Get TOC information */
one | Title | Function | Function Name[S-] | No |
one | Title | Function | Function Name[SR] | No |
iflag | : Initialization flag (lower 8 bits are valid) |
stnby | :Standby time (lower 16 bits are valid) |
ecc | :ECC count (lower 8 bits are valid) |
retry | :Retry count (lower 8 bits are valid) |
bit [7][-][5--4][3][2][1][0] | | | | | | | | | | | | | +---- 1:Perform soft reset of CD block 0:Do not perform | | | | | +------- 1:Perform decoding of subcode RW 0:Do not perform | | | | +---------- 1:Recognize Mode 2 subheader 0:Do not perform | | | +------------- 1:Perform Form 2 read retry 0:Do not perform | +--+---------------- CD-ROM data read speed (standard speed cannot be specified) | 0(00B):Maximum speed (currently double speed) | 2(01B):2x speed | +------------------------- 1:Do not change settings 0:Do not perform
Mode 2 subheader recognition is used for correction processing during CD-ROM decoding. Selectors always recognize Mode2 subheaders. (judging conditions such as aperture and sector length)
If you do not retry Form2 read, data will be output even if there is an error.
The CD-ROM data read speed is〈 PAUSE〉 It will switch when the condition is reached. When playing the CD-DA area, the speed is automatically set to standard speed. When entering the CD-ROM area, the original speed will be restored.
When performing a soft reset, the command is issued after waiting approximately 3ms within this function, ignoring the CMOK flag. (Can be issued forcibly, regardless of normal communication procedures)
During soft reset, issuing all commands is prohibited. Determine the end of soft reset by checking that the ESEL flag in the interrupt factor register becomes 1.
Other input parameters (bits 1 to 6 of iflag, stnby, etc.) are ignored and become the initial values.
〈 OPEN〉 ,〈 NODISC〉 It can also be executed in the state, but the CD drive state does not transition.
Setting value | explanation |
---|---|
0000H | 180 seconds (3 minutes)……Initial value |
003CH~0384H | Transition time (in seconds)... Can be specified from 60 to 900 seconds (1 to 15 minutes) |
FFFFH | Do not change settings (CDC_PARA_NOCHG) |
Setting value | explanation |
---|---|
00H | Process ECC only once in real time...Initial value |
01H~05H | Maximum number of repetitions when there is an error after ECC processing (2 to 6 times in total) |
80H | No ECC processing |
FFH | Do not change settings |
Applies to Mode1 or Form1 sectors.
When bit2 of the initialization flag is 1 (Mode2 subheader is not recognized), Mode2 ECC processing is not performed.
Setting value | explanation |
---|---|
00H | Stop data output without retrying (〈 ERROR〉 )...Initial value |
01H~0FH * | Retries the specified number of times, and if there is an error, stops data output (〈 ERROR〉 become) |
40H | Output data without retrying. |
41H~4FH * | Retry specified number of times and output data even if there is an error |
80H | |
FFH | Do not change settings (CDC_PARA_NOCHG) |
bit [7][6][-][-][3 2 1 0] | | Specified number of times (0 to 15 times) | | | +-------------------- 1: Output data 0:〈ERROR〉 +----------------------- 1: Retry infinite times 0:Retry specified number of times
Applies to Mode1 or Form1 sectors.
When bit3 of the initialization flag is 1 (Form2 read retry), it is also applied to Form2.
When bit2 of the initialization flag is 1 (Mode2 subheader is not recognized), it is also applied to Mode2.
〈 OPEN〉 If so, close the tray.
・ For automatic type (front loading): CD block automatically closes the tray.
・ For manual type (top loading): Until closed manually〈 BUSY〉 state.
〈 NODISC〉 If so, open the tray. (See CDC_CdOpen function for details)
one | Title | Function | Function Name[SR] | No |
one | Title | Function | Function Name[--] | No |
constant name | explanation |
---|---|
CDC_DRDY_GET | Specify when extracting data. (CD block → host) |
CDC_DRDY_PUT | Specify when writing data. (Host → CD block) |
one | Title | Function | Function Name[S-] | No |
constant name | explanation |
---|---|
CDC_DEND_ERR | An error occurred during data transfer. |
Transfer status | Host transfer word count | Number of CD block transfer words (cdwnum) | |
When ejecting (CD → host) | When writing (host → CD) | ||
Transfer interruption | host word count< Regular word count | cdwnum> host word count | cdwnum = number of host words |
All transfer | Number of host words = regular number of words | cdwnum=normal number of words=number of host words | |
Excess transfer | host word count> Regular word count | cdwnum=normal number of words< host word count |