Return to previous page Return to menu Go to next page

  Title  
Function specifications
  Function  
Open tray
  Function Name  [SR] 
CDC_CdOpen
  No  
1.8

 Format  Sint32 CDC_CdOpen (void)
 Input  None
 Output  None
 Function value  Returns an error code.
 Function  Stops the CD drive and opens the tray.
. -Automatic type (front loading): The CD block automatically opens the tray.
. -Manual type (top loading): 〈BUSY〉 state until manually opened.
 Remarks  When the tray is opened, the TOC / session information and file information are initialized and an interrupt is required.
  The cause register's DCHG and EFLS flags are set to 1. (Same when manually opened)
  Refer to “5.5 Block Initialization” for details. 

  Title  
Function specifications
  Function  
Preparing for data transfer Wait
  Function Name  [-] 
CDC_DataReady
  No 
1.9

 Format  Sint32 CDC_DataReady (Sint32 dtype)
 Input  dtype: Waiting for transfer preparation type
 Output  None
 Function value  Returns an error code.
 Function  Wait until data transfer is ready. Data can be transferred after preparation is complete.
  After transferring the data, it is necessary to execute the end of data transfer (CDC_DataEnd). 

    (1) Transfer ready type

 constant name 
 description 
 CDC_DRDY_GET 
 Specify when retrieving data. (CD block to host) 
 CDC_DRDY_PUT 
 Specify when writing data. (Host → CD block) 

  (2) Processing contents waiting for transfer preparation  

待 ち Wait until the DRDY flag in the interrupt factor register becomes 1, and when it becomes 1, clear it to 0. When writing, if the empty sector cannot be secured, the EHST flag in the interrupt factor register will be set to 1. The In that case, a CDC_ERR_PUT error is returned.

Remarks If there is an error waiting for preparation, there is no need to execute data transfer termination. Inside this function Automatically executed.



Return to previous page Return to menu Go to next page