fdebug.h

来自「嵌入式系统中文件系统源代码」· C头文件 代码 · 共 43 行

H
43
字号
#ifndef _FAT_DEBUG_H
#define _FAT_DEBUG_H

#include "../include/fat1x.h"

#define FAT1	1
#define FAT2	2
#define PFAT1	3
#define PFAT2	4

//void showFSInfo(void);
void showDriveInfo(short drive, int toWhere);
void showAllDriveInfo(int toWhere);
void showDriveFreeBegin(short drive, int toWhere);
void showAllDriveFreeBegin(int toWhere);
void showDiskInfo(int toWhere);
int showClusterChain(int fHandle, int toWhere);
int FATCompare(short drive);
int FATDump(short drive, int fatNO, int sector, int start, int end, int toWhere);
int ROOTDump(short drive, int sector, int start, int end, int toWhere);
int clusterDump(short drive, int cluster, int start, int end, int toWhere);
int bufferDump(void *buffer, int start, int end, int toWhere);
//void pause(void);

#ifdef FAT_CLUSTER_CACHE_ON
void showClusterCacheStatistics(int toWhere);
void showClusterCacheState(int toWhere);
#endif
#ifdef FAT_FAT_CACHE_ON
void showFATCacheStatistics(int toWhere);
void showFATCacheState(int toWhere);
#endif
#ifdef FAT_ROOT_CACHE_ON
void showROOTCacheStatistics(int toWhere);
void showROOTCacheState(int toWhere);
#endif
#ifdef FAT_ATA_CACHE_ON
void showATACacheStatistics(int toWhere);
void showATACacheState(int toWhere);
#endif

#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?