📄 blocktable.h
字号:
/**
* BlockTable.h
* These functions provide a simple interface for
* reading and writing the the Block Table of
* each sector.
*/
#ifndef _BLOCK_TABLE_H_
#define _BLOCK_TABLE_H_
#include "Ffs.h"
typedef struct {
BYTE bBlockStatus;
BYTE bCellStatus;
WORD wBlockIndex;
WORD wCellIndex;
} BLOCK_TABLE_ENTRY;
DMS_STATUS dms_BlockTableReadTable(WORD wSectorIndex, BLOCK_TABLE_ENTRY *apBlockTable, WORD wBlockCount);
DMS_STATUS dms_BlockTableReadEntry(WORD wSectorIndex, WORD awBlockIndex, BLOCK_TABLE_ENTRY *apEntry);
DMS_STATUS dms_BlockTableWriteBlockStatus(WORD awSectorIndex,WORD awSectorBlockIndex,DMS_BLOCK_STATUS aeBlockStatus);
DMS_STATUS dms_BlockTableWriteCellStatus(WORD awSectorIndex, WORD awSectorBlockIndex, DMS_CELL_STATUS aeCellStatus);
DMS_STATUS dms_BlockTableWriteCellIndex(WORD awSectorIndex, WORD awSectorBlockIndex, WORD awCellIndex);
DMS_STATUS dms_BlockTableWriteBlockIndex(WORD awSectorIndex, WORD awSectorBlockIndex, WORD awBlockIndex);
#endif /* _BLOCK_TABLE_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -