📄 fs_fat.h
字号:
/*
**********************************************************************
* Micrium, Inc.
* 949 Crestview Circle
* Weston, FL 33327-1848
*
* uC/FS
*
* (c) Copyright 2001 - 2003, Micrium, Inc.
* All rights reserved.
*
***********************************************************************
----------------------------------------------------------------------
File : fs_fat.h
Purpose : FAT File System Layer header
---------------------------END-OF-HEADER------------------------------
*/
#ifndef _FS_FAT_H_
#define _FS_FAT_H_
#if defined(__cplusplus)
extern "C" { /* Make sure we have C-declarations in C++ programs */
#endif
/*********************************************************************
*
* fat_in
*/
FS_SIZE_T FS_FAT_FRead(void *pData, FS_U32 NumBytes, FS_FILE *pFile);
/*********************************************************************
*
* fat_out
*/
FS_SIZE_T FS_FAT_FWrite(const void *pData, FS_U32 NumBytes, FS_FILE *pFile);
void FS_FAT_FClose(FS_FILE *pFile);
/*********************************************************************
*
* fat_open
*/
char FS_FAT_FOpen (const char *pFileName, FS_FILE *pFile, char DoDel, char DoOpen, char DoCreate);
/*********************************************************************
*
* fat_ioctl
*/
int FS_FAT_Ioctl(FS_VOLUME * pVolume, FS_I32 Cmd, FS_I32 Aux, void *pBuffer);
/*********************************************************************
*
* FAT_Move
*/
int FS_FAT_Move(const char * sOldName, const char * sNewName, FS_VOLUME * pVolume);
/*********************************************************************
*
* FS_FAT_DirEntry
*
*/
int FS_FAT_SetDirEntryInfo(FS_VOLUME * pVolume, const char * sName, const void * p, int Mask);
int FS_FAT_GetDirEntryInfo(FS_VOLUME * pVolume, const char * sName, void * p, int Mask);
/*********************************************************************
*
* FAT_Rename
*/
int FS_FAT_Rename(const char * sOldName, const char * sNewName, FS_VOLUME * pVolume);
/*********************************************************************
*
* fat_dir
*/
#if FS_POSIX_DIR_SUPPORT
FS_DIR *FS_FAT_OpenDir (const char *pDirName, FS_DIR *pDir);
int FS_FAT_CloseDir(FS_DIR *pDir);
FS_DIRENT *FS_FAT_ReadDir (FS_DIR *pDir);
int FS_FAT_RemoveDir(FS_VOLUME * pVolume, const char *pDirName);
int FS_FAT_CreateDir(FS_VOLUME * pVolume, const char *pDirName);
#endif /* FS_POSIX_DIR_SUPPORT */
#if defined(__cplusplus)
} /* Make sure we have C-declarations in C++ programs */
#endif
#endif /* _FS_FAT_H_ */
/*************************** End of file ****************************/
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -