4 unsigned char toUpperChar(unsigned char c
);
5 int fat_createFile(fat_driver
* fatd
, const unsigned char* fname
, char directory
, char escapeNotExist
, unsigned int* cluster
, unsigned int* sfnSector
, int* sfnOffset
);
6 int fat_deleteFile(fat_driver
* fatd
, const unsigned char* fname
, char directory
);
7 int fat_truncateFile(fat_driver
* fatd
, unsigned int cluster
, unsigned int sfnSector
, int sfnOffset
);
8 int fat_writeFile(fat_driver
* fatd
, fat_dir
* fatDir
, int* updateClusterIndices
, unsigned int filePos
, unsigned char* buffer
, int size
) ;
9 int fat_updateSfn(fat_driver
* fatd
, int size
, unsigned int sfnSector
, int sfnOffset
);
11 int fat_allocSector(fat_driver
* fatd
, unsigned int sector
, unsigned char** buf
);
12 int fat_writeSector(fat_driver
* fatd
, unsigned int sector
);
13 int fat_flushSectors(fat_driver
* fatd
);
14 #endif /* _FAT_WRITE_H */