⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 device.h

📁 AMD公司官方版FLASH文件系统。有详细说明文档和Windows仿真测试环境。
💻 H
字号:
/**
 * Device.h
 */

#ifndef _DEVICE_H_
#define _DEVICE_H_

#ifdef cplusplus
extern "C"
{
#endif

#include "ffs.h"

DMS_STATUS dms_DeviceRead (DWORD adwAddress, WORD awByteCount, BYTE *apBuffer);
DMS_STATUS dms_DeviceWrite(DWORD adwAddress, WORD awByteCount, BYTE *apBuffer);
DMS_STATUS dms_DeviceErase(DWORD adwAddress);
DMS_STATUS dms_DeviceIsBusy(void *pAddress);
void  dms_DeviceFinalize(void);

#define AM29DL_PROGRAM_CMD               0xA0
#define AM29DL_ERASE_CMD1                0x80
#define AM29DL_ERASE_CMD2                0x30
#define AM29DL_UNLOCK1                   0xAA
#define AM29DL_UNLOCK2                   0x55

#define DS_READY    0       /* ready for action */
#define DS_BUSY     1       /* operation in progress */
#define DS_ERSUSP   2       /* erase suspended */
#define DS_TIMEOUT  3       /* operation timed out */
#define DS_ERROR    4       /* unclassified but unhappy status */

#ifdef cplusplus
} /*** #ifdef cplusplus ***/
#endif

#endif /* _DEVICE_H_ */


⌨️ 快捷键说明

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