?? osfile.h
字號:
** Function name: OSGetFileOffset
** Descriptions: 獲得文件當前讀寫位置位置
** input parameters: Handle:文件句柄
** err:用于返回出錯信息
** Returned value: 文件位置(偏移量)
** *err: RETURN_OK:成功
** 其它參考fat.h中關于返回值的說明
********************************************************************************************************/
extern uint8 OSGetDrive(char *Path);
/*********************************************************************************************************
** Function name: OSGetDrive
** Descriptions: 獲取指定目錄的驅動器
** input parameters: Path:路徑名
** Returned value: 驅動器號
********************************************************************************************************/
extern uint8 OSChangeDrive(char *Drive);
/*********************************************************************************************************
** Function name: OSChangeDrive
** Descriptions: 改變當前邏輯盤
** input parameters: Drive:邏輯盤符字符串
** Returned value: RETURN_OK:成功
** NOT_FIND_DISK:邏輯盤不存在
** PARAMETER_ERR:非法參數
********************************************************************************************************/
extern uint8 OSChangeDir(char *Path);
/*********************************************************************************************************
** Function name: OSChangeDir
** Descriptions: 改變當前目錄
** input parameters: Path:路徑名
** Returned value: RETURN_OK:成功
** 其它參考fat.h中關于返回值的說明
********************************************************************************************************/
extern uint8 OSMakeDir(char *Path);
/*********************************************************************************************************
** Function name: OSMakeDir
** Descriptions: 建立目錄
** input parameters: Path:路徑名
** Returned value: RETURN_OK:成功
** 其它參考fat.h中關于返回值的說明
********************************************************************************************************/
extern uint8 OSRemoveDir(char *Path);
/*********************************************************************************************************
** Function name: OSRemoveDir
** Descriptions: 刪除目錄
** input parameters: Path:路徑名
** Returned value: RETURN_OK:成功
** 其它參考fat.h中關于返回值的說明
********************************************************************************************************/
extern uint8 OSmount(char *DriveName);
/*********************************************************************************************************
** Function name: OSmount
** Descriptions: 加載卷(已分配盤符),允許讀寫
** input parameters: DriveName:包含邏輯盤的字符串
** Returned value: RETURN_OK:成功
** 其它參考fat.h中關于返回值的說明
********************************************************************************************************/
extern uint8 OSumount(char *DriveName);
/*********************************************************************************************************
** Function name: OSumount
** Descriptions: 卸載卷(已分配盤符),禁止讀寫。
** input parameters: DriveName:包含邏輯盤的字符串
** Returned value: RETURN_OK:成功
** 其它參考fat.h中關于返回值的說明
********************************************************************************************************/
extern void OSAddFileDriver(void *DiskCommand, void *RsvdForLow);
** Function name: OSAddFileDriver
** Descriptions: 增加物理盤
** input parameters: DiskCommand:驅動程序接口函數
** RsvdForLow:保留給底層的指針
********************************************************************************************************/
extern void OSRemoveFileDriver(void *DiskCommand, void *RsvdForLow);
/*********************************************************************************************************
** Function name: OSRemoveFileDriver
** Descriptions: 刪除一個物理盤
** input parameters: DiskCommand:驅動程序接口函數
** RsvdForLow:保留給底層的指針
** Returned value: none
********************************************************************************************************/
extern void OSAllCacheWriteBack(void);
/*********************************************************************************************************
** Function name: OSAllCacheWriteBack
** Descriptions: 把所有已改變的扇區寫回邏輯盤
** input parameters: none
** Returned value: none
********************************************************************************************************/
extern uint8 OSFindFirst(char *Name, char *Path);
/*********************************************************************************************************
** Function name: OSFindFirst
** Descriptions: 在指定目錄查看第一個文件/目錄名稱
** input parameters: Name: 保存查到的文件/目錄名稱
** Path: 路徑名稱
** Returned value: FIND_FILE: 找到文件
** FIND_DIR: 找到目錄
** FDT_EOF: 查找完畢
** 其它參考fat.h中關于返回值的說明
********************************************************************************************************/
extern int32 OSFindNext(char *Name);
/*********************************************************************************************************
** Function name: OSFindNext
** Descriptions: 在指定目錄查看下一個文件/目錄名稱
** input parameters: Name: 保存查到的文件/目錄名稱
** Returned value: FIND_FILE: 找到文件
** FIND_DIR: 找到目錄
** FDT_EOF: 查找完畢
** 其它參考fat.h中關于返回值的說明
********************************************************************************************************/
extern uint8 OSChangeCodePage(char *EncodeFile, char *DecodeFile, char *StruprFile, uint8 CodeWidth);
/*********************************************************************************************************
** Function name: OSChangeCodePage
** Descriptions: 改變本地編碼
** input parameters: EncodeFile: 本地編碼到Unicode編碼碼表文件名
** DecodeFile: Unicode編碼到本地編碼碼表文件名
** width: 本地編碼字符寬度
** StruprFile: 本地字符小寫轉大寫碼表
** Returned value: TRUE: 成功
** FALSE: 失敗
********************************************************************************************************/
extern char *OSStrupr(char *Str);
/*********************************************************************************************************
** Function name: OSStrupr
** Descriptions: 把字符串轉換成大寫
** input parameters: Str:字符串
** Returned value: Str
********************************************************************************************************/
extern uint8 OSFormat(char *DriveName, uint32 SecPerDisk, unsigned int BytsPerSec, unsigned int rsSecs);
/*********************************************************************************************************
** Function name: OSFormat
** Descriptions: 格式化邏輯卷
** input parameters: DriveName:包含驅動器名稱的字符串驅動器
** SecPerDisk:邏輯盤包含扇區數
** BytsPerSec:扇區包含字節數目
** Returned value: TRUE:成功
** FALSE:失敗
********************************************************************************************************/
extern void File_init(void);
/*********************************************************************************************************
** Function name: File_init
** Descriptions: 文件系統初始化
** input parameters: none
** Returned value: none
********************************************************************************************************/
extern void CFIDEInit(void);
/*********************************************************************************************************
** Function name: CFIDEInit
** Descriptions: CF卡IDE接口初始化
** input parameters: none
** Returned value: none
********************************************************************************************************/
extern void MassDriverIni(void);
/*********************************************************************************************************
** Function name: MassDriverIni
** Descriptions: 大容量設備驅動初始化,該函數在USB_Host_Stack_Initialize函數前調用
** Input:無
** Output :無
********************************************************************************************************/
extern void * GetUSBCommand(void);
/*********************************************************************************************************
** Function name: GetUSBCammand
** Descriptions: 獲取U盤驅動程序地址
** input parameters: none
** Returned value: U盤驅動程序地址
********************************************************************************************************/
extern void * GetCFCommand(void);
/*********************************************************************************************************
** Function name: GetCFCommand
** Descriptions: 獲取CF卡硬盤驅動程序地址
** input parameters: none
** Returned value: CF卡硬盤驅動程序地址
********************************************************************************************************/
extern void * GetFFSCommand(void);
/*********************************************************************************************************
** Function name: GetNandflashCommand
** Descriptions: 獲取 512Byte 扇區的 NandFlash 驅動程序地址
** input parameters: none
** Returned value: 驅動程序地址
********************************************************************************************************/
extern void *GetLFFSCommand(void);
/*********************************************************************************************************
** Function name: GetLFFSCommand
** Descriptions: 獲取 2K 扇區的 NandFlash 驅動程序地址(SAMSUNG芯片從128MByte開始全部為2K扇區)
** input parameters: none
** Returned value: 驅動程序地址
********************************************************************************************************/
extern void *GetFlashDriverInfo(void);
/*********************************************************************************************************
** Function name: GetFlashDriverInfo
** Descriptions: 獲取K9F2808U0M芯片信息地址(16M)
** input parameters: none
** Returned value: 芯片信息結構體
********************************************************************************************************/
#ifdef __cplusplus
}
#endif
#endif
/*********************************************************************************************************
** End Of File
********************************************************************************************************/
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -