Return to previous page Return to menu Go to next page

  Title  
Function specifications
  Function  
End data transfer
  Function Name  [S-] 
CDC_DataEnd
  No 
1.10

 Format  Sint32 CDC_DataEnd (Sint32 * cdwnum)
 Input  None
 Output  cdwnum: Number of transfer words of CD block
 Function value  Returns an error code.
 Function  Instructs the CD block to end data transfer. It is also possible to cancel data transfer in the middle
 . 

    (1) CD block transfer word count

    ∙ Returns the number of valid data words transferred by the CD block. Regular word count (all words to be transferred Number). In case of an error, the number of transfer words is as follows.

 constant name 
 description 
 CDC_DEND_ERR 
 An error occurred during data transfer. 
The end of data transfer was executed even though it was not during data transfer.

  (2) Relationship of transfer word count  

The number of words transferred by the host (the number of words transferred by the host before the end of data transfer) and CD The data transfer status can be checked by comparing the block transfer word count.

 Transfer status 
 Host transfer word count 
(Host word count)
 CD block transfer word count (cdwnum) 
 Ejecting (CD → Host) 
 Writing (Host → CD) 
 Transfer interruption 
 Host word count  
 cdwnum> number of host words 
 cdwnum = number of host words 
 All transfers 
 Number of host words = number of regular words 
 cdwnum = Regular word count = Host word count 
 Over transfer 
 Number of host words> Number of regular words 
 cdwnum = Regular word count 

-Transfer interruption: Data transfer is canceled halfway>
・ All transfer: Transfer all data
・ Excess transfer: Transfer exceeding the normal number of words (Dummy data is transferred if the limit is exceeded)  

Remarks The DRDY flag is cleared inside the function after issuing the command.



Return to previous page Return to menu Go to next page