Quatech Syncdrive Plus User’s Manual Error codesRev 01 (2/6/2003) Page 32Error codesThe definitive source for error codes is the QuaDef.h include file. Theerror codes for Release 1.00 are duplicated here for convenience. Thesignificance of the error code depends on the function returning it.See the return code explanation for the API of interest in the document.Error message DescriptionERR_NO_ERROR Successful operation; operation varies, depending oncommandERR_BAD_RETURN_SIZE The (address/frame count/frame size/configuration/driver version) length returned did not match expectedERR_COULDN’T_CLOSE_DEVICE Unsuccessful closeERR_COULDN’T_OPEN_DEVICE Unsuccessful openERR_DATA_CRC A CRC error occurred during transferERR_DATA_OVERRUN A data overrun occurred because the caller buffer wastoo small for the frame receivedERR_DEVICE_NOT_OPENED Device was not opened with MPA-Open()ERR_ERROR_READING_DATA Error receiving frame occurredERR_ERROR_WRITING_DATA Error transmitting frame occurredERR_INCORRECT_NUM_BYTES_READ For non-overlapped I/O only; bytes received differ fromrequested; not necessarily an error if a larger buffer wasallocated than requiredERR_INCORRECT_NUM_BYTES_WRITTEN Number of bytes written differs from number expectedERR_INVALID_FOR_NON_OVERLAPPED This call is not valid for non-overlapped I/OERR_INVALID_PARAMETERS_PASSED Device opened as overlapped but storage for anoverlapped structure not passed in lpOverlapped;WAIT cannot be TRUE when overlapped is NULL;ERR_INVALID_STRUCT_SIZE The structure size in structLen did not match size in driverERR_IOCTL_ERROR Communication error occurred between DLL and SYSERR_IO_STILL_PROGRESSING I/O is still occurring in the background; Bytes-transferred is placed in pBytesTransferredERR_NOTHING_TO_DO Neither transmit nor receive frames were marked to beresetERR_READ_PENDING Receiving frame in the background since device openedas overlappedERR_TRANSFER_STATUS Driver failed to return the correct status to the DLL;probable hardware failureERR_WRITE_PENDING Returned when driver is set up for overlapped I/O;indicates that driver is still working on the last writeNote: The error code meaningmay vary, depending on theSyncdrive Plus command..