Title | Function | Function Name [SR] |
format Sint32 CDC_PutSctData (Sint32 filtno, Sint32 snum) Input filtno: Aperture number snum: Number of sectors Output None Function value Returns an error code. End flag EHST flag (Set to 1 after execution of the CDC_DataEnd function) Function Writes sector data to the specified aperture. The length of one sector can be changed by setting the sector length (CDC_SetSctLen). Remarks After executing the function, it is necessary to transfer and write the data. Even if data transfer is interrupted, data of the specified number of sectors will be written. Transferred data Values other than are undefined.<< Incorporation of sector data >> Sector data B> Sector data is incorporated into the section from the aperture after executing the end of data transfer (CDC_DataEnd). When all sectors have been incorporated, the EHST flag is set to 1.
<< Securing free space >> If there is not enough free space when issuing the command, WAIT is returned. (Free space
If an empty area cannot be secured after , the DRDY flag in the interrupt factor register remains 0 and EHST The flag is 1. (When free space is used in other device processing)
Title | Function | Function Name [SR] |
format Sint32 CDC_CopySctData (Sint32 srcbn, Sint32 spos, Sint32 snum, Sint32 dstfln) Input srcbn: Copy source buffer section number : spos: Sector position (CDC_SPOS_END: Indicates the last sector of the section) snum: Number of sectors (CDC_SNUM_END: Indicates the number of sectors from spos to the end of the partition) : dstfln: Copy destination aperture number Output None Function value Returns an error code. End flag ECPY flag Function Copies sector data from the specified sector range of the buffer partition to the aperture. (Copy between selectors) . The length of one sector is fixed at 2352 bytes. Remarks If there is not enough free space when issuing the command, WAIT is returned. (Free space: If there is no more free space during the process, the copy process will be canceled and an error will occur. (other (: When free space is used in device processing) To obtain error error information, execute sector data copy / move error acquisition (CDC_GetCopyErr).