CETYPE Enumeration

Microchip MDD File System Interface

MDDFS Interface Library Help
CETYPE Enumeration
C
typedef enum _CETYPE {
  CE_GOOD = 0,
  CE_ERASE_FAIL,
  CE_NOT_PRESENT,
  CE_NOT_FORMATTED,
  CE_BAD_PARTITION,
  CE_UNSUPPORTED_FS,
  CE_INIT_ERROR,
  CE_NOT_INIT,
  CE_BAD_SECTOR_READ,
  CE_WRITE_ERROR,
  CE_INVALID_CLUSTER,
  CE_FILE_NOT_FOUND,
  CE_DIR_NOT_FOUND,
  CE_BAD_FILE,
  CE_DONE,
  CE_COULD_NOT_GET_CLUSTER,
  CE_FILENAME_2_LONG,
  CE_FILENAME_EXISTS,
  CE_INVALID_FILENAME,
  CE_DELETE_DIR,
  CE_DIR_FULL,
  CE_DISK_FULL,
  CE_DIR_NOT_EMPTY,
  CE_NONSUPPORTED_SIZE,
  CE_WRITE_PROTECTED,
  CE_FILENOTOPENED,
  CE_SEEK_ERROR,
  CE_BADCACHEREAD,
  CE_CARDFAT32,
  CE_READONLY,
  CE_WRITEONLY,
  CE_INVALID_ARGUMENT,
  CE_TOO_MANY_FILES_OPEN
} CETYPE;
Description

The CETYPE enumeration is used to indicate different error conditions during device operation.

Members
Members 
Description 
CE_GOOD = 0 
No error 
CE_ERASE_FAIL 
An erase failed 
CE_NOT_PRESENT 
No device was present 
CE_NOT_FORMATTED 
The disk is of an unsupported format 
CE_BAD_PARTITION 
The boot record is bad 
CE_UNSUPPORTED_FS 
The file system type is unsupported 
CE_INIT_ERROR 
An initialization error has occured 
CE_NOT_INIT 
An operation was performed on an uninitialized device 
CE_BAD_SECTOR_READ 
A bad read of a sector occured 
CE_WRITE_ERROR 
Could not write to a sector 
CE_INVALID_CLUSTER 
Invalid cluster value > maxcls 
CE_FILE_NOT_FOUND 
Could not find the file on the device 
CE_DIR_NOT_FOUND 
Could not find the directory 
CE_BAD_FILE 
File is corrupted 
CE_DONE 
No more files in this directory 
CE_COULD_NOT_GET_CLUSTER 
Could not load/allocate next cluster in file 
CE_FILENAME_2_LONG 
A specified file name is too long to use 
CE_FILENAME_EXISTS 
A specified filename already exists on the device 
CE_INVALID_FILENAME 
Invalid file name 
CE_DELETE_DIR 
The user tried to delete a directory with FSremove 
CE_DIR_FULL 
All root dir entry are taken 
CE_DISK_FULL 
All clusters in partition are taken 
CE_DIR_NOT_EMPTY 
This directory is not empty yet, remove files before deleting 
CE_NONSUPPORTED_SIZE 
The disk is too big to format as FAT16 
CE_WRITE_PROTECTED 
Card is write protected 
CE_FILENOTOPENED 
File not opened for the write 
CE_SEEK_ERROR 
File location could not be changed successfully 
CE_BADCACHEREAD 
Bad cache read 
CE_CARDFAT32 
FAT 32 - card not supported 
CE_READONLY 
The file is read-only 
CE_WRITEONLY 
The file is write-only 
CE_INVALID_ARGUMENT 
Invalid argument 
CE_TOO_MANY_FILES_OPEN 
Too many files are already open 
Microchip MDD File System Interface 1.2.0 - [Aug 18, 2008]
Copyright © 2008 Microchip Technology, Inc.  All rights reserved.