blocktable.h

来自「AMD公司官方版FLASH文件系统。有详细说明文档和Windows仿真测试环境。」· C头文件 代码 · 共 28 行

H
28
字号
/**
 * 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 + =
减小字号Ctrl + -
显示快捷键?