one | Title | Data | Data Name | No |
Model name | explanation |
---|---|
Uint8 | unsigned 1-byte integer |
Sint8 | Signed 1-byte integer |
Uint16 | unsigned 2-byte integer |
Sint16 | signed 2-byte integer |
Uint32 | unsigned 4-byte integer |
Sint32 | signed 4-byte integer |
Boo1 | Logical type 4-byte integer (value is a logical constant) |
constant name | value | explanation |
---|---|---|
FALSE | 0 | Represents a logical false value. |
OFF | 0 | Represents switch off (false). |
constant name | value | explanation |
---|---|---|
NULL | ((void*)0) | NULL pointer |
one | Title | Data | Data Name | No |
bit 7 6 5 4 3 2 1 0 [ ][ ][ ][ ][ ][ ][ ][ ] | | | | | | | | | | | | | | | +---- CDC_HIRQ_CMOK 1:Commands can be issued | | | | | | +------- CDC_HIRQ_DRDY 1:Ready for data transfer | | | | | +---------- CDC_HIRQ_CSCT 1:1 sector read completed | | | | +------------- CDC_HIRQ_BFUL 1:CD buffer full | | | +---------------- CDC_HIRQ_PEND 1:CD playback finished | | +------------------- CDC_HIRQ_DCHG 1:Disk replacement occurred | +---------------------- CDC_HIRQ_ESEL 1:End of selector setting processing +------------------------- CDC_HIRQ_EHST 1:End of host input/output processing bit 15 14 13 12 11 10 9 8 [-][-][ ][ ][ ][ ][ ][ ] | | | | | | | | | | | +---- CDC_HIRQ_ECPY 1:End of copy/move processing | | | | +------- CDC_HIRQ_EFLS 1:End of file system processing | | | +---------- CDC_HIRQ_SCDQ 1:Subcode Q update completed | | +------------- CDC_HIRQ_MPED 1:MPEG related processing completed | +---------------- CDC_HIRQ_MPCM 1:End of MPEG malfunction section +------------------- CDC_HIRQ_MPST 1:Notification of MPEG interrupt status
constant name | explanation |
---|---|
CDC_ERR_OK | The function completed normally. |
CDC_ERR_CMDBUSY | The command end flag is not set to 1 when the command is issued. |
CDC_ERR_CMDNG | The CMOK flag is not set to 1 when issuing the command. |
CDC_ERR_TMOUT | Timed out. (Waiting for response, waiting for data transfer preparation) |
CDC_ERR_PUT | Empty while waiting for data transfer preparation by writing sector data. |
CDC_ERR_REJECT | The response to the command was REJECT. |
CDC_ERR_WAIT | The response to the command was WAIT. |
CDC_ERR_TRNS | Data transfer size is abnormal. |
CDC_ERR_PERI | A regular response could not be obtained. |
constant name | explanation |
---|---|
CDC_SPOS_END | Indicates the last sector position of the partition. |
CDC_SNUM_END | Indicates the number of sectors from the specified sector position SP to the end of the partition. |
constant name | explanation |
---|---|
CDC_PARA_DFL | Specifying default values for configuration parameters (0) |
CDC_PARA_NOCHG | Setting parameters unchanged (-1) |
CDC_NUL_SEL | Special values for selector numbers (aperture numbers, buffer section numbers) |
CDC_NUL_FID | Special values for file identifiers |
one | Title | Data | Data Name | No |
one | Title | Data | Data Name | No |
byte | 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | ||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Ctrl Adr | TNO | X | P_FAD | 00 | Q_FAD | CRC |
CtrlAdr | :CONTROL/ADR byte |
TNO | : Track number (binary value, not BCD) |
X | : Index number (binary value, not BCD) |
P_FAD | : Track time (frame address format with track start set to 0) |
Q_FAD | : Absolute time (frame address format with 00:00:00 as 0) |
TNO | X | P_FAD |
---|---|---|
01H~63H (1~99) | 01H~63H | Elapsed FAD in the track |
AAH (Lead Out) | 01H~63H | Elapsed FAD in the track |
00H (Lead-in) | 01H~63H,A0H,A1H,A2H | 000000H |
one | Title | Data | Data Name | No |
bit 7 6 5 4 3 2 1 0 [ ][ ][ ][-][ ] | | | Status code (CD drive status) | | | | | +------ CDC_ST_PERI 1: Periodic response 0: Response to command | +--------- CDC_ST_TRNS 1: Data transfer request 0: No request +------------ CDC_ST_WAIT 1: WAIT (execution pending) 0: ACK (command successfully received)
constant name | value | situation | explanation |
---|---|---|---|
CDC_ST_BUSY | 00H | 〈 BUSY〉 | State transition in progress |
CDC_ST_PAUSE | 01H | 〈 PAUSE〉 | Pausing (pause) |
CDC_ST_STANDBY | 02H | 〈 STANDBY〉 | Standby (drive stopped) |
CDC_ST_PLAY | 03H | 〈 PLAY〉 | CD playing |
CDC_ST_SEEK | 04H | 〈 SEEK〉 | Seeking in progress |
CDC_ST_SCAN | 05H | 〈 SCAN〉 | Scan playback in progress |
CDC_ST_OPEN | 06H | 〈 OPEN〉 | tray is open |
CDC_ST_NODISC | 07H | 〈 NODISC〉 | no disc |
CDC_ST_RETRY | 08H | 〈 RETRY〉 | Read retry processing in progress |
CDC_ST_ERROR | 09H | 〈 ERROR〉 | A read data error occurred |
CDC_ST_FATAL | 0AH | 〈 FATAL〉 | a fatal error has occurred |
byte | 1 | 2 | 3 | 4 | 5 | 6 | 7 | |
---|---|---|---|---|---|---|---|---|
CD Report | Flg | Rep Cnt | Ctrl Adr | TNO | X | F.A.D. |
Flg | :CD flag (upper 4 bits)...〈 PLAY〉 Valid in state |
RepCnt | : Repeat count (lower 4 bits)...Notification range is 0H to EH |
bit 7 6 5 4 3 2 1 0 [ ][-][-][-][ ] | Number of repeats | +------------ CDC_CDFLG_ROM 1:CD-ROM decoding 0:CD-DA, seek, scan, etc.
CtrlAdr | :CONTROL/ADR byte |
TNO | : Track number (binary value, not BCD) based on subcode Q |
X | : Index number (binary value, not BCD) |
F.A.D. | :Frame address (based on header information for CD-ROM, otherwise based on subcode Q) |
situation | CD flag/repeat | CONTROL/ADR | track number | index number | frame address |
---|---|---|---|---|---|
〈 BUSY〉 | ○/FFH | ○/FFH | ○/FFH | ○/FFH | ○/FFFFFFH |
〈 PAUSE〉 | ○ | ○ | ○ | ○ | ○ |
〈 STANDBY〉 | Value at pause | Value at pause | Value at pause | Value at pause | Value at pause |
When seeking home | FFH | FFH | FFH | FFH | FFFFFFH |
〈 PLAY〉 | ○ | ○ | ○ | ○ | ○ |
〈 SEEK〉 | ○ | Target position | Target position | Target position | Target position |
〈 SCAN〉 | ○ | ○ | ○ | ○ | ○ |
〈 OPEN〉 | FFH | FFH | FFH | FFH | FFFFFFH |
〈 NODISC〉 | FFH | FFH | FFH | FFH | FFFFFFH |
〈 RETRY〉 | ○ | ○ | ○ | ○ | ○ |
〈 ERROR〉 | FFH | FFH | FFH | FFH | FFFFFFH |
〈 FATAL〉 | Indeterminate | Indeterminate | Indeterminate | Indeterminate | Indeterminate |
The previous value for the repeat count is retained. Transitioning to another state reverts to the held value.
From Seek Home〈 PAUSE〉 When the state changes, it moves to the beginning of the disk (FAD = 150).
〈 ERROR〉 The previous value is retained.<PAUSE> When transitioning to a state, it reverts to its retained value.
When the state transitions, the<BUSY> The state may return an invalid value.
surely〈 BUSY〉 Please refer to the CD report contents after confirming that the status is other than that.