Title | Function | Function Name [S-] | No |
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 .
∙ 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. |
(2) Relationship of transfer word countThe 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 | CD block transfer word count (cdwnum) | |||||||||
Ejecting (CD → Host) | Writing (Host → CD) | ||||||||||
Transfer interruption | Host 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.