★ PROGRAMMER'S GUIDE ★ CD communication I / F (CD part)List | Title | Data | Data Name | No |
Access macro | Mold | explanation |
|---|---|---|
CDC_STAT_STATUS (stat) | Uint8 | Status (status code, etc.) |
CDC_STAT_FLGREP (stat) | Uint8 | CD flag and repeat count for CD reports |
CDC_STAT_CTLADR (stat) | Uint8 | CONTROL / ADR bytes for CD reports |
CDC_STAT_TNO (stat) | Uint8 | CD report track number (binary value) |
CDC_STAT_IDX (stat) | Uint8 | CD report index number (binary value) |
CDC_STAT_FAD (stat) | Uint32 | CD report frame address |
Macro name | explanation |
|---|---|
CDC_GET_STC (stat) | Get status code from CD status information |
CDC_GET_REPEAT (stat) | Get the number of repeats from the CD status information |
List | Title | Data | Data Name | No |
Access macro | Mold | explanation |
|---|---|---|
CDC_HW_HFLAG (hw) | Uint8 | Hardware flag |
CDC_HW_VER (hw) | Uint8 | CD block version information |
CDC_HW_MPVER (hw) | Uint8 | MPEG version information ・ For 0: MPEG cannot be used * |
CDC_HW_DRV (hw) | Uint8 | CD drive information |
CDC_HW_REV (hw) | Uint8 | CD block revision information |
bit 7 6 5 4 3 2 1 0
[] [-] [-] [-] [-] [-] [] [-]
| |
| |
| + ------- CDC_HFLAG_MPEG 1: MPEG cartridge installed |
+ ------------------------- CDC_HFLAG_HERR 1: Hardware error occurred List | Title | Data | Data Name | No |
Constant name | explanation |
|---|---|
CDC_PTYPE_DFL | Specifying a default value_When playing a CD: Representing the beginning / end of a disc When seeking: Representing the home position |
CDC_PTYPE_FAD | Frame address specification |
CDC_PTYPE_TNO | Track / index specification |
CDC_PTYPE_NOCHG | Unchanged specification (do not change the set value) |
Access macro | Mold | explanation |
|---|---|---|
CDC_POS_PTYPE (pos) | Sint32 | Position type |
CDC_POS_FAD (pos) | Sint32 | Frame address, number of FAD sectors |
CDC_POS_TNO (pos) | Uint8 | Track number |
CDC_POS_IDX (pos) | Uint8 | Index number |
CdcPos poswk, * pos = & poswk; CDC_POS_PTYPE (pos) = CDC_PTYPE_DFL;
CdcPos poswk, * pos = & poswk; CDC_POS_PTYPE (pos) = CDC_PTYPE_FAD; CDC_POS_FAD (pos) = fad; / * frame address * /For the end position, specify the number of sectors from the start FAD (number of FAD sectors).
CdcPos poswk, * pos = & poswk; CDC_POS_PTYPE (pos) = CDC_PTYPE_TNO; CDC_POS_TNO (pos) = tno; / * Track number * / CDC_POS_IDX (pos) = x; / * Index number * /
CdcPos poswk, * pos = & poswk; CDC_POS_PTYPE (pos) = CDC_PTYPE_NOCHG;
conditions | Start position, seek position | End position |
|---|---|---|
FAD <disc top | FAD = beginning of disk (150) | FAD = beginning of disk-1 |
FAD> Last disc | FAD = last disk +1 | FAD = last disc |
Relationship between start position and end position | : End FAD = Start FAD + Number of FAD sectors-1 |
If start FAD <150 | : End FAD = 150 + number of FAD sectors-1 |
conditions | Start position, seek position | End position |
|---|---|---|
TNO = 0 | TNO = first track on disc | TNO = last track of disc |
X = 0 | X = 1 | X = 99 (63H) |
TNO <first track on disc | TNO = first track on disc | TNO = first track on disc |
TNO> Last track of disc | TNO = last track of disc | TNO = last track of disc |
X does not exist | (From the next track) | (Until the end of the track) |
List | Title | Data | Data Name | No |
bit 7 6 5 4 3 2 1 0
[] [] Default value (initial value): 00H
| Maximum number of repeats (The valid range of the specified number of times is the lower 4 bits)
|
| 00H → No repeat (play only once)
| 01H ~ 0EH → Repeat specified number of times (1 to 14 times repeat)
| 0FH → Infinite repeat | 7FH → Do not change the maximum number of repeats |
+ ------------------------- 0: Do not change the pickup position (play from the current position)
1: Move the pickup to the start position (play from the start position)
Constant name | explanation |
|---|---|
CDC_PM_DFL | Playback mode default (no repeat, move pickup to start position) |
CDC_PM_REP_NOCHG | Do not change the maximum number of repeats |
CDC_PM_PIC_NOCHG | Do not change the pickup position |
CDC_PM_NOCHG | Playback mode (maximum number of repeats, pickup position) |
Access macro | Mold | explanation | |
|---|---|---|---|
CDC_PLY_START (ply) | CdcPos | Playback start position parameter | |
CDC_PLY_STYPE (ply) | Sint32 | Start position type | |
CDC_PLY_SFAD (ply) | Sint32 | Start position frame address | |
CDC_PLY_STNO (ply) | Uint8 | Start position Track number | |
CDC_PLY_SIDX (ply) | Uint8 | Start position index number | |
CDC_PLY_END (ply) | CdcPos | Playback end position parameter | |
CDC_PLY_ETYPE (ply) | Sint32 | End position type | |
CDC_PLY_EFAS (ply) | Sint32 | End position Frame address Number of sectors | |
CDC_PLY_ETNO (ply) | Uint8 | End position track number | |
CDC_PLY_EIDX (ply) | Uint8 | End position index number | |
CDC_PLY_PMODE (ply) | Uint8 | Playback mode (repeat designation, pickup movement) | |
NO | How to play | Starting position | End position | remarks |
|---|---|---|---|---|
1 | Track designation | tno1, x1 | tno2, x2 | |
2 | Frame address specification | fad | fasnum | Note 1 |
3 | Play from the beginning of the disc | CDC_PTYPE_DFL | tno2, x2 | |
fasnum | ||||
Four | Play to the end of the disc | tno1, x1 | CDC_PTYPE_DFL | |
fad | ||||
Five | Do not change the end position (change only the start position) | tno1, x1 | CDC_PTYPE_NOCHG | Note 2 |
fad | ||||
6 | Do not change the start position (change only the end position) | CDC_PTYPE_NOCHG | tno2, x2 | Note 2 |
fasnum | ||||
7 | Resume CD playback (cancel pause) without changing playback parameters | CDC_PTYPE_NOCHG | CDC_PTYPE_NOCHG | In play mode |
| fad | : Frame address |
| fasnum | : Number of frame address sectors |
| tno1 | : Starting track number |
| tno2 | : End track number |
| x1 | : Starting index number |
| x2 | : End index number |
List | Title | Data | Data Name | No |
Access macro | Mold | explanation |
|---|---|---|
CDC_SUBH_FN (subh) | Uint8 | File number |
CDC_SUBH_CN (subh) | Uint8 | Channel number |
CDC_SUBH_SMMSK (subh) | Uint8 | Submode mask pattern |
CDC_SUBH_SMVAL (subh) | Uint8 | Submode comparison value |
CDC_SUBH_CIMSK (subh) | Uint8 | Coding information mask pattern |
CDC_SUBH_CIVAL (subh) | Uint8 | Comparison value of coding information |
| Conditional expression | (Submode & SMMSK) = SMVAL (Coding information & CIMSK) = CIVAL |
bit 7 6 5 4 3 2 1 0
[] [] [] [] [] [] [] []
| | | | | | | |
| | | | | | | + ---- CDC_SM_EOR 1: Last sector of the record | | | | | | + ------- CDC_SM_VIDEO 1: Video sector | | | | | + ------ ---- CDC_SM_AUDIO 1: Audio Sector | | | | + ------------- CDC_SM_DATA 1: Data Sector | | | + -------------- --CDC_SM_TRIG 1: Trigger ON
| | + ------------------- CDC_SM_FORM 1: Form2 0: Form1
| + ------------------------ CDC_SM_RT 1: Real-time sector + -------------------- ----- CDC_SM_EOF 1: Last sector of file List | Title | Data | Data Name | No |
Access macro | Mold | explanation |
|---|---|---|
CDC_SCT_FAD (sct) | Sint32 | Frame address |
CDC_SCT_FN (sct) | Uint8 | File number |
CDC_SCT_CN (sct) | Uint8 | Channel number |
CDC_SCT_SM (sct) | Uint8 | Submode |
CDC_SCT_CI (sct) | Uint8 | Coding information |
List | Title | Data | Data Name | No |
Access macro | Mold | explanation |
|---|---|---|
CDC_FILE_FAD (file) | Sint32 | File first frame address |
CDC_FILE_SIZE (file) | Sint32 | File size (number of bytes) * 1 |
CDC_FILE_UNIT (file) | Uint8 | File unit size |
CDC_FILE_GAP (file) | Uint8 | Gap size |
CDC_FILE_FN (file) | Uint8 | File number * 2 |
CDC_FILE_ATR (file) | Uint8 | File attributes |
bit 7 6 5 4 3 2 1 0
[] [] [] [] [] [-] [] [-]
| | | | | |
| | | | | |
| | | | | + ------- CDC_ATR_DIRFG 1: Directory * 3
| | | | |
| | | | + ------------- CDC_ATR_FORM1 1: Includes Form1 sector * 4
| | | + ---------------- CDC_ATR_FORM2 1: Includes Form2 sector * 4
| | + ------------------- CDC_ATR_INTLV 1: Includes interleaved sectors * 4
| + ---------------------- CDC_ATR_CDDA 1: CD-DA file * 4
+ ------------------------- CDC_ATR_DIRXA 1: Directory file * 4
★ PROGRAMMER'S GUIDE ★ CD communication I / F (CD part)