one | Title | Data | Data Name | No |
access macro | mold | explanation |
---|---|---|
CDC_STAT_STATUS(stat) | Uint8 | Status (e.g. status code) |
CDC_STAT_FLGREP(stat) | Uint8 | CD flag and repeat count in CD report |
CDC_STAT_CTLADR(stat) | Uint8 | CONTROL/ADR byte of CD report |
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 repeat count from CD status information |
one | 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 |
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
one | Title | Data | Data Name | No |
constant name | explanation |
---|---|
CDC_PTYPE_DFL | Default value specification_When playing a CD: Indicates the beginning/end of the disc |
CDC_PTYPE_FAD | Frame addressing |
CDC_PTYPE_TNO | Track/index specification |
CDC_PTYPE_NOCHG | Specify unchanged (do not change the setting value) |
access macro | mold | explanation |
---|---|---|
CDC_POS_PTYPE(pos) | Sint32 | location type |
CDC_POS_FAD(pos) | Sint32 | Frame address, FAD sector number |
CDC_POS_TNO(pos) | Uint8 | track number |
CDC_POS_IDX(pos) | Uint8 | index number |
Specifying default values
CdcPosposwk, *pos = &poswk; CDC_POS_PTYPE(pos) = CDC_PTYPE_DFL;
Frame addressing
CdcPosposwk, *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 (FAD sector number).
Track/index specification
CdcPosposwk, *pos = &poswk; CDC_POS_PTYPE(pos) = CDC_PTYPE_TNO; CDC_POS_TNO(pos) = tno; /* Track number */ CDC_POS_IDX(pos) = x; /* Index number */
Unchanged designation
CdcPosposwk, *pos = &poswk; CDC_POS_PTYPE(pos) = CDC_PTYPE_NOCHG;
conditions | Start position, seek position | End position |
---|---|---|
F.A.D.< beginning of disc | FAD = beginning of disk (150) | FAD=disc start-1 |
F.A.D.> disc last | FAD=end of disk +1 | FAD=end of disk |
Relationship between start and end positions | : End FAD = Start FAD + Number of FAD sectors - 1 |
Starting FAD< For 150 | : End FAD = 150 + Number of FAD sectors - 1 |
conditions | Start position, seek position | End position |
---|---|---|
TNO=0 | TNO = Disc first track | TNO=last track of disc |
X=0 | X=1 | X=99 (63H) |
TNO< Disc first track | TNO = Disc first track | TNO = Disc first track |
TNO> disc final track | TNO=last track of disc | TNO=last track of disc |
X does not exist | (from next track) | (until the end of the track) |
one | Title | Data | Data Name | No |
bit 7 6 5 4 3 2 1 0 [ ][ ] Default value (initial value): 00H | Maximum number of repeats (valid range of the specified number of times is the lower 4 bits) | | 00H → No repeat (plays only once) | 01H~0EH→ Specified number of repeats (1 to 14 repeats) | 0FH → Infinite repeat | 7FH → Maximum repeat count does not change | +------------------------- 0: Do not change pickup position (play from current position) 1: Move the pickup to the start position (play from the start position)
constant name | explanation |
---|---|
CDC_PM_DFL | Default playback mode |
CDC_PM_REP_NOCHG | Do not change the maximum number of repeats |
CDC_PM_PIC_NOCHG | Do not change pickup position |
CDC_PM_NOCHG | Playback mode (maximum repeat count, pickup position) |
access macro | mold | explanation | |
---|---|---|---|
CDC_PLY_START (ply) | CdcPos | Playback start position parameter | |
CDC_PLY_STYPE (ply) | Sint32 | Starting 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 | Starting 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 specification, pickup movement) |
Track specification and frame address specification cannot be combined in the playback range.
In that case, return REJECT. All other playback range combinations are possible.
All combinations of playback range and playback mode are possible.
The playback range and maximum repeat count are retained within the CD block and remain in effect until reset.
Default value: Disc start to disc end, no repeat, move pickup
NO. | How to play | starting position | End position | remarks |
---|---|---|---|---|
1 | track designation | tno1,x1 | tno2,x2 | |
2 | Frame addressing | fad | fasnum | Note 1 |
3 | Play from the beginning of the disc | CDC_PTYPE_DFL | tno2,x2 | |
fasnum | ||||
4 | Play until the end of the disc | tno1,x1 | CDC_PTYPE_DFL | |
fad | ||||
5 | Do not change end position | tno1,x1 | CDC_PTYPE_NOCHG | Note 2 |
fad | ||||
6 | Do not change starting position | CDC_PTYPE_NOCHG | tno2,x2 | Note 2 |
fasnum | ||||
7 | Change playback parameters | CDC_PTYPE_NOCHG | CDC_PTYPE_NOCHG | into play mode |
fad | :Frame address |
fasnum | : Number of frame address sectors |
tno1 | :Start track number |
tno2 | :Ending track number |
x1 | :Start index number |
x2 | :Ending index number |
one | 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 | Coding information comparison value |
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 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
one | 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 |
one | 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