Code:
CE_GOOD Con 0 ' No error
CE_ERASE_FAIL Con 1 ' An erase failed
CE_NOT_PRESENT Con 2 ' No device was present
CE_NOT_FORMATTED Con 3 ' The disk is of an unsupported format
CE_BAD_PARTITION Con 4 ' The boot record is bad
CE_UNSUPPORTED_FS Con 5 ' The file system type is unsupported
CE_INIT_ERROR Con 6 ' An initialization error has occured
CE_NOT_INIT Con 7 ' An operation was performed on an uninitialized device
CE_BAD_SECTOR_READ Con 8 ' A bad read of a sector occured
CE_WRITE_ERROR Con 9 ' Could not write to a sector
CE_INVALID_CLUSTER Con 10 ' Invalid cluster value > maxcls
CE_FILE_NOT_FOUND Con 11 ' Could not find the file on the device
CE_DIR_NOT_FOUND Con 12 ' Could not find the directory
CE_BAD_FILE Con 13 ' File is corrupted
CE_DONE Con 14 ' No more files in this directory
CE_COULD_NOT_GET_CLUSTER Con 15 ' Could not load/allocate next cluster in file
CE_FILENAME_2_LONG Con 16 ' A specified file name is too long to use
CE_FILENAME_EXISTS Con 17 ' A specified filename already exists on the device
CE_INVALID_FILENAME Con 18 ' Invalid file name
CE_DELETE_DIR Con 19 ' The user tried to delete a directory with FSremove
CE_DIR_FULL Con 20 ' All root dir entry are taken
CE_DISK_FULL Con 21 ' All clusters in partition are taken
CE_DIR_NOT_EMPTY Con 22 ' This directory is not empty yet, remove files b4 deleting
CE_NONSUPPORTED_SIZE Con 23 ' The disk is too big to format as FAT16
CE_WRITE_PROTECTED Con 24 ' Card is write protected
CE_FILENOTOPENED Con 25 ' File not opened for the write
CE_SEEK_ERROR Con 26 ' File location could not be changed successfully
CE_BADCACHEREAD Con 27 ' Bad cache read
CE_CARDFAT32 Con 28 ' FAT32 - card not supported
CE_READONLY Con 29 ' The file is read-only
CE_CARDFAT12 Con 30 ' FAT12 - card not supported
CE_WRITEONLY Con 31 ' The file is write-only
CE_INVALID_ARGUMENT Con 32 ' Invalid argument
CE_FAT_EOF Con 60 ' Attempt to read beyond the FAT's EOF
CE_EOF Con 61 ' End of file reached
Code:
sdcValid Con 0
sdcCardInitCommFailure Con 1
sdcCardNotInitFailure Con 2
sdcCardInitTimeout Con 3
'sdcCardTypeInvalid Con 4
sdcCardBadCmd Con 5
sdcCardTimeout Con 6
'sdcCardCRCError Con 7
sdcCardDataRejected Con 8
'sdcEraseTimedOut Con 9
Code:
SDC_FLOATING_BUS Con $ff
SDC_BAD_RESPONSE Con SDC_FLOATING_BUS
Well, the codes aren't much help.
Robert
Bookmarks