★ PROGRAMMER'S GUIDE ★ CD communication I / F (CD part)List | Title | Function | Function Name [SR] | No |
List | Title | Function | Function Name [-] | No |
List | Title | Function | Function Name [-] | No |
List | Title | Function | Function Name [S-] | No |
List | Title | Function | Function Name [S-] | No |
Sint32 ret; Uint32 toc [102]; / * Securing TOC information storage area * / ret = CDC_TgetToc (toc); / * Get TOC information * /
List | Title | Function | Function Name [S-] | No |
List | 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 | : Number of retries (lower 8 bits are valid) |
bit [7] [-] [5--4] [3] [2] [1] [0]
| | | | | | |
| | | | | | + ---- 1: Soft reset the CD block 0: No | | | | | + ------- 1: Decode the subcode RW 0: No | | | | + ---------- 1: Recognize Mode2 subheader 0: No | | | + ------------- 1: Perform2 read retry 0: No | +-+ ---------------- CD-ROM data read speed (standard speed cannot be specified)
| 0 (00B): Maximum speed (currently double speed)
| 2 (01B): Double speed |
+ ------------------------- 1: Do not change settings 0: Do notSet 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) (minimum value: CDC_STNBY_MIN, maximum value: CDC_STNBY_MAX) |
FFFFH | Do not change the setting (CDC_PARA_NOCHG) |
Set 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 |
Set value | explanation |
|---|---|
00H | Stop data output without retrying (<ERROR>) …… Initial value |
01H ~ 0FH * | Retry the specified number of times, and if there is an error, stop data output (<ERROR>) |
40H | Output data without retrying. |
41H-4FH * | Retry the specified number of times and output data even if an error occurs |
80H | |
FFH | Do not change the setting (CDC_PARA_NOCHG) |
bit [7] [6] [-] [-] [3 2 1 0]
| | Specified number of times (0 to 15 times)
| |
| + -------------------- 1: Output data 0: Stop at <ERROR> + -------------- --------- 1: Infinite number of retries 0: Specified number of retriesList | Title | Function | Function Name [SR] | No |
List | Title | Function | Function Name [-] | No |
Constant name | explanation |
|---|---|
CDC_DRDY_GET | Specify when retrieving data. (CD block → host) |
CDC_DRDY_PUT | Specify when writing data. (Host → CD block) |
List | Title | Function | Function Name [S-] | No |
Constant name | explanation |
|---|---|
CDC_DEND_ERR | An error occurred during data transfer. |
Transfer status | Number of host words transferred (number of host words) | Number of transfer words in the CD block (cdwnum) | |
When ejecting (CD → host) | When writing (host → CD) | ||
Forwarding interruption | Number of host words <Number of regular words | cdwnum> number of host words | cdwnum = number of host words |
All transfers | Number of host words = number of regular words | cdwnum = number of regular words = number of host words | |
Excess transfer | Number of host words> Number of regular words | cdwnum = number of regular words <number of host words | |
★ PROGRAMMER'S GUIDE ★ CD communication I / F (CD part)