📄 celltable.h
字号:
/**
* CellTable.h
*/
#ifndef _CELL_TABLE_H_
#define _CELL_TABLE_H_
#include "Ffs.h"
DMS_STATUS dms_CellTableInitialize(WORD awCellCount);
void dms_CellTableFinalize(void);
DMS_STATUS dms_CellTableAddBlock(WORD awCellIndex,
WORD awBlockIndex,
BYTE abCellStatus,
WORD awSectorIndex,
WORD awSectorBlockIndex);
DMS_STATUS dms_CellTableAddAvailableBlock(WORD awSectorIndex, WORD awSectorBlockIndex);
void dms_CellTableAddGarbageBlock(WORD awSectorIndex, WORD awSectorBlockIndex);
DMS_STATUS dms_CellTableGetBestSectorToErase(WORD *apwSectorIndex);
BYTE dms_CellTableIsBlockAvailable(void);
DMS_STATUS dms_CellTableGetAvailableBlock(WORD awCellIndex, WORD awBlockIndex,
WORD *apwSectorIndex, WORD *apwSectorBlockIndex);
DMS_STATUS dms_CellTableCheckValidity(void);
DMS_STATUS dms_CellTableSetCellInProcess(WORD awCellIndex);
DMS_STATUS dms_CellTableMoveBlock(WORD awSectorIndex, WORD awSectorBlockIndex,
WORD awCellIndex,
WORD *apwNewSectorIndex, WORD *apwNewSectorBlockIndex);
WORD dms_CellTableDeleteCellInProcess(WORD *apwSectorIndex, WORD *apwSectorBlockIndex);
WORD dms_CellTableDeleteBlockInProcess(WORD *apwSectorIndex, WORD *apwSectorBlockIndex);
void dms_CellTableResetBlockPointer(WORD awCellIndex);
WORD dms_CellTableGetNextBlock(WORD *apwSectorIndex, WORD *apwSectorBlockIndex);
#endif /* _CELL_TABLE_H_ */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -