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

📄 fmd.hxx

📁 我自己编译的armv4i wince60模拟器的bps源文件,已经验证可以使用,欢迎下载
💻 HXX
字号:
//
// Copyright (c) Microsoft Corporation.  All rights reserved.
//
//
// Use of this sample source code is subject to the terms of the Microsoft
// license agreement under which you licensed this sample source code. If
// you did not accept the terms of the license agreement, you are not
// authorized to use this sample source code. For the terms of the license,
// please see the license agreement between you and Microsoft or, if applicable,
// see the LICENSE.RTF on your install media or the root of your tools installation.
// THE SAMPLE SOURCE CODE IS PROVIDED "AS IS", WITH NO WARRANTIES.
//

#ifndef __FMD_HXX_
#define __FMD_HXX_

#include <fmd.h>
#include <new.h>

#define VALID_FMD_HANDLE    ((PVOID)1)

class CFmd {
public:
    CFmd() {}
    virtual ~CFmd() {}

    virtual PVOID Init(LPCTSTR lpActiveReg, PPCI_REG_INFO pRegIn, PPCI_REG_INFO pRegOut) = 0;
    virtual BOOL  Deinit(PVOID pv) = 0;
    virtual BOOL  GetInfo(PFlashInfo pFlashInfo) = 0;
    virtual BOOL  GetInfoEx(PFlashInfoEx pFlashInfo, PDWORD pdwNumRegions) = 0;
    virtual VOID  GetPhysSectorAddr (DWORD dwSector, PSECTOR_ADDR pStartSectorAddr) = 0;
    virtual DWORD GetBlockStatus(BLOCK_ID blockID) = 0;
    virtual DWORD SetBlockStatus(BLOCK_ID blockID, DWORD dwStatus) = 0;
    virtual BOOL  EraseBlock(BLOCK_ID blockID) = 0;
    virtual BOOL  ReadSector(SECTOR_ADDR startSectorAddr, LPBYTE pSectorBuff, PSectorInfo pSectorInfoBuff, DWORD dwNumSectors) = 0;
    virtual BOOL  WriteSector(SECTOR_ADDR startSectorAddr, LPBYTE pSectorBuff, PSectorInfo pSectorInfoBuff, DWORD dwNumSectors) = 0;
    virtual BOOL  OEMIoControl(DWORD dwIoControlCode, PBYTE pInBuf, DWORD nInBufSize, PBYTE pOutBuf, DWORD nOutBufSize, PDWORD pBytesReturned) = 0;
    
    virtual VOID  PowerUp() {}
    virtual VOID  PowerDown() {}    
};

#endif // __FMD_HXX_

⌨️ 快捷键说明

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