Return to previous page Return to menu Go to next page

  Title  
Function specifications
  Function  
Initial CD block (1/3)
  Function Name  [SR] 
CDC_CdInit
 No
1.7

 Format  Sint32 CDC_CdInit (Sint32 iflag, Sint32 stnby, Sint32 ecc, Sint32 retry)
 Input  iflag: Initialization flag (lower 8 bits are valid)
 st  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)
 Output  None
 Function value  Returns an error code.
  End flag ESEL flag (valid only at software reset, only cleared to 0)
 Function  Initializes the CD block and pauses the CD drive at the current position. 

    (1) Initialization flag (A) Recognition of Mode 2 subheader is used for correction processing during CD-ROM decoding. Selector is always Recognizes the Mode2 subheader. (E.g., determining aperture and sector length conditions) (B) If Form 2 read retry is not performed, data will be output even if there is an error. (C) The CD-ROM data read speed is switched when the 〈PAUSE〉 status is entered. During playback of the CD-DA area Standard speed will be automatically set. When the CD-ROM area is entered, the original speed is restored.

    (2) Soft reset …… Please refer to “5.5 Initializing CD block”

 (a) When soft resetting, wait about 3ms in this function, Ignoring the CMOK flag and issuing the command 
. (It can be issued forcibly regardless of the normal communication procedure.)
(b) All commands are prohibited during software reset. Determine the end of the software reset by checking that the ESEL flag in the interrupt factor register is 1.
(c) Other input parameters (iflag bits 1 to 6, stnby, etc.) are ignored and become initial values.
(d) Can be executed in 〈OPEN〉 and 〈NODISC〉 states, but the CD drive state does not change.


Return to previous page Return to menu Go to next page