📄 fs_fun.h
字号:
/******************************************************************************
*
* The information contained herein is the exclusive property of
* Sunplus Technology Co. And shall not be distributed, reproduced,
* or disclosed in whole in part without prior written permission.
*
* (C) COPYRIGHT 2006 SUNPLUS TECHNOLOGY CO.
* ALL RIGHTS RESERVED
*
* The entire notice above must be reproduced on all authorized copies.
*
*****************************************************************************/
/******************************************************************************
* Filename: FS_fun.h
* Author: Robin.Lau (eMail: xjliu@sunplus.com)
* Tel: 00885-028-87848688-5884
* Date: 2006-05-23
* Description: some useful fs functions
* Reference:
* Version history:
*-----------------------------------------------------------------------------
* Version YYYY-MM-DD-INDEX Modified By Description
* 1.0.0 2006-05-23 xjliu Create
*
*****************************************************************************/
#ifndef _FS_FUN_H_
#define _FS_FUN_H_
//#include "Sys_Global.h"
#include ".\System\SystemDefine\Sys_Define.h"
#include "ufat.h"
#define MAXFILENUM 256
typedef struct{
U32 ss :6;
U32 mm :6;
U32 hh :5;
U32 reserved :15;
}SPG_Time;
typedef struct{
U32 dd :5;
U32 mm :4;
U32 yy :23;
}SPG_Date;
//extern struct f_info g_stFileTbl[]; //note information of one type files(name,modify time&date,size)
//extern U16 g_nFileNum; //note the number of one type files
//extern SPG_Time g_stFileTime; //note modify time of an appointed file
//extern SPG_Date g_stFileDate; //note modify date of an appointed file
/**
* FS_ListFile - list all files in the storage device according to wildcard
* char *wildcard: the path and wildcard
*/
void FS_ListFile(char *wildcard);
/**
* FS_GetFileName - get the name of the appointed file
* U16 index: the index in the g_stFileTbl
* RETURN: the pointer of name string
* NULL: no such file
*/
char* FS_GetFileName(U16 index);
/**
* FS_GetModifyTime - get modify time of an appointed file
* U16 index: the index in the g_stFileTbl
*/
void FS_GetModifyTime(U16 index);
/**
* FS_GetModifyDate - get modify date of an appointed file
* U16 index: the index in the g_stFileTbl
*/
void FS_GetModifyDate(U16 index);
/**
* FS_GetFileSize - get the size of the appointed file
* U16 index: the index in the g_stFileTbl
* RETURN: file size(unit: Byte)
* 0xffffffff: no such file
*/
unsigned long FS_GetFileSize(U16 index);
/**
* FS_TotalSize - get the total size of storage device
* RETURN: total size(unit: Byte)
*/
//unsigned long FS_TotalSize(void);
/**
* FS_FreeSize - get the free size of storage device
* RETURN: free size(unit: Byte)
*/
//unsigned long FS_FreeSize(void);
#endif //_FS_FUN_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -